Skip to content

Commit 73380f0

Browse files
authored
Merge pull request #130 from powersync-ja/feat/download-sqlite-wasm-with-script
Add script to download correct sqlite3 wasm file
2 parents c0da79f + 6625a69 commit 73380f0

File tree

25 files changed

+505
-86
lines changed

25 files changed

+505
-86
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@ jobs:
4141
tag="${{ github.ref_name }}"
4242
body="Release $tag"
4343
gh release create --draft "$tag" --title "$tag" --notes "$body" --generate-notes --prerelease
44-
gh release upload "${{ github.ref_name }}" assets/powersync_db.worker.js
44+
gh release upload "${{ github.ref_name }}" packages/powersync/assets/powersync_db.worker.js

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,13 @@ pubspec_overrides.yaml
1111
build
1212

1313
# Shared assets
14-
assets
14+
assets/*
15+
# exception to the rule
16+
!assets/.gitkeep
1517

1618
# Web assets
1719
powersync_db.worker.js
20+
powersync_db.worker.js*
1821
sqlite3.wasm
1922

2023
#Core binaries

CHANGELOG.md

Lines changed: 30 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,31 @@
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-07-30
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+
- [`powersync` - `v1.6.2`](#powersync---v162)
19+
- [`powersync_attachments_helper` - `v0.6.2`](#powersync_attachments_helper---v062)
20+
21+
---
22+
23+
#### `powersync` - `v1.6.2`
24+
25+
- **FEAT**: Introduces a custom script to download the sqlite3 wasm and powersync worker files. The command `dart run powersync:setup_web` must be run in the application's folder.
26+
27+
#### `powersync_attachments_helper` - `v0.6.2`
28+
29+
- Update a dependency to the latest release.
30+
631
## 2024-07-29
732

833
### Changes
@@ -11,23 +36,22 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
1136

1237
Packages with breaking changes:
1338

14-
- There are no breaking changes in this release.
39+
- There are no breaking changes in this release.
1540

1641
Packages with other changes:
1742

18-
- [`powersync` - `v1.6.1`](#powersync---v161)
19-
- [`powersync_attachments_helper` - `v0.6.1`](#powersync_attachments_helper---v061)
43+
- [`powersync` - `v1.6.1`](#powersync---v161)
44+
- [`powersync_attachments_helper` - `v0.6.1`](#powersync_attachments_helper---v061)
2045

2146
---
2247

2348
#### `powersync` - `v1.6.1`
2449

25-
- **FIX**: Reintroduce waitForFirstSync.
50+
- **FIX**: Reintroduce waitForFirstSync.
2651

2752
#### `powersync_attachments_helper` - `v0.6.1`
2853

29-
- Update a dependency to the latest release.
30-
54+
- Update a dependency to the latest release.
3155

3256
## 2024-07-25
3357

demos/django-todolist/pubspec.lock

Lines changed: 49 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
# Generated by pub
22
# See https://dart.dev/tools/pub/glossary#lockfile
33
packages:
4+
args:
5+
dependency: transitive
6+
description:
7+
name: args
8+
sha256: "7cf60b9f0cc88203c5a190b4cd62a99feea42759a7fa695010eb5de1c0b2252a"
9+
url: "https://pub.dev"
10+
source: hosted
11+
version: "2.5.0"
412
async:
513
dependency: transitive
614
description:
@@ -25,6 +33,14 @@ packages:
2533
url: "https://pub.dev"
2634
source: hosted
2735
version: "1.3.0"
36+
checked_yaml:
37+
dependency: transitive
38+
description:
39+
name: checked_yaml
40+
sha256: feb6bed21949061731a7a75fc5d2aa727cf160b91af9a3e464c5e3a32e28b5ff
41+
url: "https://pub.dev"
42+
source: hosted
43+
version: "2.0.3"
2844
clock:
2945
dependency: transitive
3046
description:
@@ -144,6 +160,14 @@ packages:
144160
url: "https://pub.dev"
145161
source: hosted
146162
version: "0.7.1"
163+
json_annotation:
164+
dependency: transitive
165+
description:
166+
name: json_annotation
167+
sha256: "1ce844379ca14835a50d2f019a3099f419082cfdd231cd86a142af94dd5c6bb1"
168+
url: "https://pub.dev"
169+
source: hosted
170+
version: "4.9.0"
147171
leak_tracker:
148172
dependency: transitive
149173
description:
@@ -294,14 +318,30 @@ packages:
294318
path: "../../packages/powersync"
295319
relative: true
296320
source: path
297-
version: "1.6.0"
321+
version: "1.6.1"
298322
powersync_flutter_libs:
299323
dependency: "direct overridden"
300324
description:
301325
path: "../../packages/powersync_flutter_libs"
302326
relative: true
303327
source: path
304328
version: "0.1.0"
329+
pub_semver:
330+
dependency: transitive
331+
description:
332+
name: pub_semver
333+
sha256: "40d3ab1bbd474c4c2328c91e3a7df8c6dd629b79ece4c4bd04bee496a224fb0c"
334+
url: "https://pub.dev"
335+
source: hosted
336+
version: "2.1.4"
337+
pubspec_parse:
338+
dependency: transitive
339+
description:
340+
name: pubspec_parse
341+
sha256: c799b721d79eb6ee6fa56f00c04b472dcd44a30d258fac2174a6ec57302678f8
342+
url: "https://pub.dev"
343+
source: hosted
344+
version: "1.3.0"
305345
shared_preferences:
306346
dependency: "direct main"
307347
description:
@@ -515,6 +555,14 @@ packages:
515555
url: "https://pub.dev"
516556
source: hosted
517557
version: "1.0.4"
558+
yaml:
559+
dependency: transitive
560+
description:
561+
name: yaml
562+
sha256: "75769501ea3489fca56601ff33454fe45507ea3bfb014161abc3b43ae25989d5"
563+
url: "https://pub.dev"
564+
source: hosted
565+
version: "3.1.2"
518566
sdks:
519567
dart: ">=3.4.0 <4.0.0"
520568
flutter: ">=3.22.0"

demos/django-todolist/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ environment:
1010
dependencies:
1111
flutter:
1212
sdk: flutter
13-
powersync: ^1.6.1
13+
powersync: ^1.6.2
1414
path_provider: ^2.1.1
1515
path: ^1.8.3
1616
logging: ^1.2.0

demos/supabase-anonymous-auth/pubspec.lock

Lines changed: 49 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@ packages:
99
url: "https://pub.dev"
1010
source: hosted
1111
version: "4.0.1"
12+
args:
13+
dependency: transitive
14+
description:
15+
name: args
16+
sha256: "7cf60b9f0cc88203c5a190b4cd62a99feea42759a7fa695010eb5de1c0b2252a"
17+
url: "https://pub.dev"
18+
source: hosted
19+
version: "2.5.0"
1220
async:
1321
dependency: transitive
1422
description:
@@ -33,6 +41,14 @@ packages:
3341
url: "https://pub.dev"
3442
source: hosted
3543
version: "1.3.0"
44+
checked_yaml:
45+
dependency: transitive
46+
description:
47+
name: checked_yaml
48+
sha256: feb6bed21949061731a7a75fc5d2aa727cf160b91af9a3e464c5e3a32e28b5ff
49+
url: "https://pub.dev"
50+
source: hosted
51+
version: "2.0.3"
3652
clock:
3753
dependency: transitive
3854
description:
@@ -176,6 +192,14 @@ packages:
176192
url: "https://pub.dev"
177193
source: hosted
178194
version: "0.7.1"
195+
json_annotation:
196+
dependency: transitive
197+
description:
198+
name: json_annotation
199+
sha256: "1ce844379ca14835a50d2f019a3099f419082cfdd231cd86a142af94dd5c6bb1"
200+
url: "https://pub.dev"
201+
source: hosted
202+
version: "4.9.0"
179203
jwt_decode:
180204
dependency: transitive
181205
description:
@@ -350,14 +374,30 @@ packages:
350374
path: "../../packages/powersync"
351375
relative: true
352376
source: path
353-
version: "1.6.0"
377+
version: "1.6.1"
354378
powersync_flutter_libs:
355379
dependency: "direct overridden"
356380
description:
357381
path: "../../packages/powersync_flutter_libs"
358382
relative: true
359383
source: path
360384
version: "0.1.0"
385+
pub_semver:
386+
dependency: transitive
387+
description:
388+
name: pub_semver
389+
sha256: "40d3ab1bbd474c4c2328c91e3a7df8c6dd629b79ece4c4bd04bee496a224fb0c"
390+
url: "https://pub.dev"
391+
source: hosted
392+
version: "2.1.4"
393+
pubspec_parse:
394+
dependency: transitive
395+
description:
396+
name: pubspec_parse
397+
sha256: c799b721d79eb6ee6fa56f00c04b472dcd44a30d258fac2174a6ec57302678f8
398+
url: "https://pub.dev"
399+
source: hosted
400+
version: "1.3.0"
361401
realtime_client:
362402
dependency: transitive
363403
description:
@@ -691,6 +731,14 @@ packages:
691731
url: "https://pub.dev"
692732
source: hosted
693733
version: "1.0.4"
734+
yaml:
735+
dependency: transitive
736+
description:
737+
name: yaml
738+
sha256: "75769501ea3489fca56601ff33454fe45507ea3bfb014161abc3b43ae25989d5"
739+
url: "https://pub.dev"
740+
source: hosted
741+
version: "3.1.2"
694742
yet_another_json_isolate:
695743
dependency: transitive
696744
description:

demos/supabase-anonymous-auth/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ dependencies:
1111
flutter:
1212
sdk: flutter
1313

14-
powersync: ^1.6.1
14+
powersync: ^1.6.2
1515
path_provider: ^2.1.1
1616
supabase_flutter: ^2.0.2
1717
path: ^1.8.3

demos/supabase-edge-function-auth/pubspec.lock

Lines changed: 49 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@ packages:
99
url: "https://pub.dev"
1010
source: hosted
1111
version: "4.0.1"
12+
args:
13+
dependency: transitive
14+
description:
15+
name: args
16+
sha256: "7cf60b9f0cc88203c5a190b4cd62a99feea42759a7fa695010eb5de1c0b2252a"
17+
url: "https://pub.dev"
18+
source: hosted
19+
version: "2.5.0"
1220
async:
1321
dependency: transitive
1422
description:
@@ -33,6 +41,14 @@ packages:
3341
url: "https://pub.dev"
3442
source: hosted
3543
version: "1.3.0"
44+
checked_yaml:
45+
dependency: transitive
46+
description:
47+
name: checked_yaml
48+
sha256: feb6bed21949061731a7a75fc5d2aa727cf160b91af9a3e464c5e3a32e28b5ff
49+
url: "https://pub.dev"
50+
source: hosted
51+
version: "2.0.3"
3652
clock:
3753
dependency: transitive
3854
description:
@@ -176,6 +192,14 @@ packages:
176192
url: "https://pub.dev"
177193
source: hosted
178194
version: "0.7.1"
195+
json_annotation:
196+
dependency: transitive
197+
description:
198+
name: json_annotation
199+
sha256: "1ce844379ca14835a50d2f019a3099f419082cfdd231cd86a142af94dd5c6bb1"
200+
url: "https://pub.dev"
201+
source: hosted
202+
version: "4.9.0"
179203
jwt_decode:
180204
dependency: transitive
181205
description:
@@ -350,14 +374,30 @@ packages:
350374
path: "../../packages/powersync"
351375
relative: true
352376
source: path
353-
version: "1.6.0"
377+
version: "1.6.1"
354378
powersync_flutter_libs:
355379
dependency: "direct overridden"
356380
description:
357381
path: "../../packages/powersync_flutter_libs"
358382
relative: true
359383
source: path
360384
version: "0.1.0"
385+
pub_semver:
386+
dependency: transitive
387+
description:
388+
name: pub_semver
389+
sha256: "40d3ab1bbd474c4c2328c91e3a7df8c6dd629b79ece4c4bd04bee496a224fb0c"
390+
url: "https://pub.dev"
391+
source: hosted
392+
version: "2.1.4"
393+
pubspec_parse:
394+
dependency: transitive
395+
description:
396+
name: pubspec_parse
397+
sha256: c799b721d79eb6ee6fa56f00c04b472dcd44a30d258fac2174a6ec57302678f8
398+
url: "https://pub.dev"
399+
source: hosted
400+
version: "1.3.0"
361401
realtime_client:
362402
dependency: transitive
363403
description:
@@ -691,6 +731,14 @@ packages:
691731
url: "https://pub.dev"
692732
source: hosted
693733
version: "1.0.4"
734+
yaml:
735+
dependency: transitive
736+
description:
737+
name: yaml
738+
sha256: "75769501ea3489fca56601ff33454fe45507ea3bfb014161abc3b43ae25989d5"
739+
url: "https://pub.dev"
740+
source: hosted
741+
version: "3.1.2"
694742
yet_another_json_isolate:
695743
dependency: transitive
696744
description:

demos/supabase-edge-function-auth/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ dependencies:
1111
flutter:
1212
sdk: flutter
1313

14-
powersync: ^1.6.1
14+
powersync: ^1.6.2
1515
path_provider: ^2.1.1
1616
supabase_flutter: ^2.0.2
1717
path: ^1.8.3

0 commit comments

Comments
 (0)