Skip to content

Commit d78e0c5

Browse files
committed
Merge tag 'sqlite_async-v0.11.4' into get_all_connections
# Conflicts: # packages/drift_sqlite_async/lib/src/executor.dart # packages/sqlite_async/lib/src/web/database.dart # packages/sqlite_async/lib/src/web/database/web_sqlite_database.dart
2 parents 09f6c50 + 3a0b54a commit d78e0c5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+2407
-756
lines changed

.github/workflows/test.yaml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,23 +30,24 @@ jobs:
3030
test:
3131
runs-on: ubuntu-latest
3232
strategy:
33+
fail-fast: false
3334
matrix:
3435
include:
3536
- sqlite_version: "3440200"
3637
sqlite_url: "https://www.sqlite.org/2023/sqlite-autoconf-3440200.tar.gz"
37-
dart_sdk: 3.4.0
38+
dart_sdk: stable
3839
- sqlite_version: "3430200"
3940
sqlite_url: "https://www.sqlite.org/2023/sqlite-autoconf-3430200.tar.gz"
40-
dart_sdk: 3.4.0
41+
dart_sdk: stable
4142
- sqlite_version: "3420000"
4243
sqlite_url: "https://www.sqlite.org/2023/sqlite-autoconf-3420000.tar.gz"
43-
dart_sdk: 3.4.0
44+
dart_sdk: stable
4445
- sqlite_version: "3410100"
4546
sqlite_url: "https://www.sqlite.org/2023/sqlite-autoconf-3410100.tar.gz"
46-
dart_sdk: 3.4.0
47+
dart_sdk: stable
4748
- sqlite_version: "3380000"
4849
sqlite_url: "https://www.sqlite.org/2022/sqlite-autoconf-3380000.tar.gz"
49-
dart_sdk: 3.4.0
50+
dart_sdk: stable
5051
steps:
5152
- uses: actions/checkout@v3
5253
- uses: dart-lang/setup-dart@v1
@@ -67,3 +68,4 @@ jobs:
6768
run: |
6869
export LD_LIBRARY_PATH=$(pwd)/sqlite-autoconf-${{ matrix.sqlite_version }}/.libs
6970
melos test
71+
melos test_build

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,5 @@ doc
2222
*.iml
2323

2424
build
25+
26+
.DS_store

CHANGELOG.md

Lines changed: 133 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,139 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
## 2024-11-06
7+
8+
### Changes
9+
10+
---
11+
12+
Packages with breaking changes:
13+
14+
- There are no breaking changes in this release.
15+
16+
Packages with other changes:
17+
18+
- [`drift_sqlite_async` - `v0.2.0`](#drift_sqlite_async---v020)
19+
20+
---
21+
22+
#### `drift_sqlite_async` - `v0.2.0`
23+
24+
- Automatically run Drift migrations
25+
26+
27+
## 2024-11-06
28+
29+
### Changes
30+
31+
---
32+
33+
Packages with breaking changes:
34+
35+
- There are no breaking changes in this release.
36+
37+
Packages with other changes:
38+
39+
- [`sqlite_async` - `v0.11.0`](#sqlite_async---v0110)
40+
- [`drift_sqlite_async` - `v0.2.0-alpha.4`](#drift_sqlite_async---v020-alpha4)
41+
42+
Packages with dependency updates only:
43+
44+
> Packages listed below depend on other packages in this workspace that have had changes. Their versions have been incremented to bump the minimum dependency versions of the packages they depend upon in this project.
45+
46+
- `drift_sqlite_async` - `v0.2.0-alpha.4`
47+
48+
---
49+
50+
#### `sqlite_async` - `v0.11.0`
51+
52+
- Automatically flush IndexedDB storage to fix durability issues
53+
54+
55+
## 2024-11-01
56+
57+
### Changes
58+
59+
---
60+
61+
Packages with breaking changes:
62+
63+
- There are no breaking changes in this release.
64+
65+
Packages with other changes:
66+
67+
- [`sqlite_async` - `v0.10.1`](#sqlite_async---v0101)
68+
- [`drift_sqlite_async` - `v0.2.0-alpha.3`](#drift_sqlite_async---v020-alpha3)
69+
70+
---
71+
72+
#### `sqlite_async` - `v0.10.1`
73+
74+
- For database setups not using a shared worker, use a `BroadcastChannel` to share updates across different tabs.
75+
76+
#### `drift_sqlite_async` - `v0.2.0-alpha.3`
77+
78+
- Bump `sqlite_async` to v0.10.1
79+
80+
81+
## 2024-10-28
82+
83+
### Changes
84+
85+
---
86+
87+
Packages with breaking changes:
88+
89+
- There are no breaking changes in this release.
90+
91+
Packages with other changes:
92+
93+
- [`drift_sqlite_async` - `v0.2.0-alpha.2`](#drift_sqlite_async---v020-alpha2)
94+
- [`sqlite_async` - `v0.10.0`](#sqlite_async---v0100)
95+
96+
---
97+
98+
#### `drift_sqlite_async` - `v0.2.0-alpha.2`
99+
100+
- Bump sqlite_async to v0.10.0
101+
102+
#### `sqlite_async` - `v0.10.0`
103+
104+
- Add the `exposeEndpoint()` method available on web databases. It returns a serializable
105+
description of the database endpoint that can be sent across workers.
106+
This allows sharing an opened database connection across workers.
107+
108+
109+
## 2024-09-03
110+
111+
### Changes
112+
113+
---
114+
115+
Packages with breaking changes:
116+
117+
- There are no breaking changes in this release.
118+
119+
Packages with other changes:
120+
121+
- [`sqlite_async` - `v0.9.0`](#sqlite_async---v090)
122+
- [`drift_sqlite_async` - `v0.1.0-alpha.7`](#drift_sqlite_async---v010-alpha7)
123+
124+
Packages with dependency updates only:
125+
126+
> Packages listed below depend on other packages in this workspace that have had changes. Their versions have been incremented to bump the minimum dependency versions of the packages they depend upon in this project.
127+
128+
- `drift_sqlite_async` - `v0.1.0-alpha.7`
129+
130+
---
131+
132+
#### `sqlite_async` - `v0.9.0`
133+
134+
- Support the latest version of package:web and package:sqlite3_web
135+
136+
- Export sqlite3 `open` for packages that depend on `sqlite_async`
137+
138+
6139
## 2024-08-21
7140

8141
### Changes

melos.yaml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,16 @@ scripts:
3232
description: Analyze Dart code in packages.
3333
run: dart analyze packages --fatal-infos
3434

35-
# TODO: Temporarily setting the exit-code-threshold to 10 until drift_sqlite_async dependencies are updated.
35+
# TODO: Temporarily setting the exit-code-threshold to 20 until drift_sqlite_async dependencies are updated.
3636
analyze:packages:pana:
3737
description: Analyze Dart packages with Pana
38-
exec: dart pub global run pana --no-warning --exit-code-threshold 10
38+
exec: dart pub global run pana --no-warning --exit-code-threshold 20
3939
packageFilters:
4040
noPrivate: true
4141

4242
test:
4343
description: Run tests in a specific package.
44-
run: dart test -p chrome,vm
44+
run: dart test -p chrome,vm --compiler dart2js,dart2wasm
4545
exec:
4646
concurrency: 1
4747
packageFilters:
@@ -51,3 +51,11 @@ scripts:
5151
# as they could change the behaviour of how tests filter packages.
5252
env:
5353
MELOS_TEST: true
54+
55+
test_build:
56+
description: Runs tests with build_test
57+
run: dart run build_runner test -- -p chrome
58+
exec:
59+
concurrency: 1
60+
packageFilters:
61+
dependsOn: build_test

packages/drift_sqlite_async/CHANGELOG.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,32 @@
1+
## 0.2.1
2+
3+
- Fix lints.
4+
5+
## 0.2.0
6+
7+
- Automatically run Drift migrations
8+
9+
## 0.2.0-alpha.4
10+
11+
- Update a dependency to the latest release.
12+
13+
## 0.2.0-alpha.3
14+
15+
- Bump `sqlite_async` to v0.10.1
16+
17+
## 0.2.0-alpha.2
18+
19+
- Bump `sqlite_async` to v0.10.0
20+
21+
## 0.2.0-alpha.1
22+
23+
- Support `drift` version >=2.19 and `web` v1.0.0.
24+
- **BREAKING CHANGE**: Nested transactions through drift no longer create SAVEPOINTs. When nesting a drift `transaction`, the transaction is reused ([#65](https://github.com/powersync-ja/sqlite_async.dart/pull/65)).
25+
26+
## 0.1.0-alpha.7
27+
28+
- Update a dependency to the latest release.
29+
130
## 0.1.0-alpha.6
231

332
- Update a dependency to the latest release.

packages/drift_sqlite_async/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Supported functionality:
88
2. Transactions and nested transactions.
99
3. Table updates are propagated between sqlite_async and Drift - watching queries works using either API.
1010
4. Select queries can run concurrently with writes and other select statements.
11+
5. Drift migrations are supported (optional).
1112

1213
## Usage
1314

File renamed without changes.

0 commit comments

Comments
 (0)