Skip to content

Commit fa0e426

Browse files
committed
Merge branch 'main' into offline-demo
2 parents 4116f5d + 90d303c commit fa0e426

File tree

194 files changed

+9569
-229
lines changed

Some content is hidden

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

194 files changed

+9569
-229
lines changed

.github/workflows/publish.yml

Lines changed: 37 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
name: Publish packages
2-
on: workflow_dispatch
2+
on:
3+
push:
4+
tags:
5+
- "powersync-v[0-9]+.[0-9]+.[0-9]+"
6+
- "powersync_attachments_helper-v[0-9]+.[0-9]+.[0-9]+*"
7+
- "powersync_flutter_libs-v[0-9]+.[0-9]+.[0-9]+*"
8+
workflow_dispatch:
39

410
jobs:
511
publish-packages:
@@ -9,11 +15,34 @@ jobs:
915
id-token: write # Required for authentication using OIDC
1016
runs-on: [ubuntu-latest]
1117
steps:
12-
- uses: actions/checkout@v3
13-
- uses: subosito/flutter-action@v2
14-
with:
15-
flutter-version: '3.x'
16-
channel: 'stable'
17-
- uses: bluefireteam/melos-action@v3
18+
- uses: actions/checkout@v4
19+
20+
- uses: dart-lang/setup-dart@v1 # Creates and configures token for publishing
21+
22+
- name: Install Flutter
23+
uses: subosito/flutter-action@v2
1824
with:
19-
publish: true
25+
flutter-version: "3.x"
26+
channel: "stable"
27+
28+
- name: Install melos
29+
run: flutter pub global activate melos
30+
31+
- name: Install dependencies
32+
run: melos bootstrap
33+
34+
- name: Get package name from tag
35+
env:
36+
GITHUBREF: ${{ github.ref }}
37+
run: |
38+
PACKAGE_NAME=$(sed -E 's/refs\/tags\/([a-z0-9_]+)-v([0-9]+\.[0-9]+\.[0-9]+)/\1/' <<< $GITHUBREF) && \
39+
echo "PACKAGE_NAME=$PACKAGE_NAME" >> $GITHUB_ENV
40+
echo "Package name: $PACKAGE_NAME"
41+
42+
- name: Publish packages dry run
43+
run: |
44+
melos publish --yes --scope=$PACKAGE_NAME
45+
46+
- name: Publish packages
47+
run: |
48+
melos publish --no-dry-run --yes --scope=$PACKAGE_NAME

.github/workflows/release.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@ name: Compile Assets and Create Draft Release
44
on:
55
push:
66
tags:
7-
# Trigger on tags beginning with 'v'
8-
# Note that `melos version ...` adds the package name as a suffix
9-
# This action is not compatible with tags such as `powersync-v1.1.1`
10-
# marvinpinto/action-automatic-releases struggles to generate changelogs
11-
# Be sure to manually tag the commit to trigger this action
127
- "powersync-v[0-9]+.[0-9]+.[0-9]+"
138

149
jobs:
@@ -40,5 +35,5 @@ jobs:
4035
run: |
4136
tag="${{ github.ref_name }}"
4237
body="Release $tag"
43-
gh release create --draft "$tag" --title "$tag" --notes "$body" --generate-notes --prerelease
38+
gh release create --draft "$tag" --title "$tag" --notes "$body" --generate-notes
4439
gh release upload "${{ github.ref_name }}" packages/powersync/assets/powersync_db.worker.js

CHANGELOG.md

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,67 @@
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-08-19
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.5`](#powersync---v165)
19+
- [`powersync_attachments_helper` - `v0.6.3+2`](#powersync_attachments_helper---v0632)
20+
- [`powersync_flutter_libs` - `v0.2.0`](#powersync_flutter_libs---v020)
21+
22+
Packages with dependency updates only:
23+
24+
> 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.
25+
26+
- `powersync_attachments_helper` - `v0.6.3+2`
27+
28+
---
29+
30+
#### `powersync` - `v1.6.5`
31+
32+
- **CHORE**: Update dependency `powersync_flutter_libs`
33+
34+
#### `powersync_flutter_libs` - `v0.2.0`
35+
36+
- **FEAT**: Prebundle downloaded core binaries
37+
38+
39+
## 2024-08-06
40+
41+
### Changes
42+
43+
---
44+
45+
Packages with breaking changes:
46+
47+
- There are no breaking changes in this release.
48+
49+
Packages with other changes:
50+
51+
- [`powersync` - `v1.6.4`](#powersync---v164)
52+
- [`powersync_attachments_helper` - `v0.6.3+1`](#powersync_attachments_helper---v0631)
53+
54+
Packages with dependency updates only:
55+
56+
> 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.
57+
58+
- `powersync_attachments_helper` - `v0.6.3+1`
59+
60+
---
61+
62+
#### `powersync` - `v1.6.4`
63+
64+
- **FIX**: `hasSynced` status should be reset after `disconnectAndClear` has been called. ([5e12a079](https://github.com/powersync-ja/powersync.dart/commit/5e12a07918ca16d3dcf90f26a42c5a61c09fb978))
65+
66+
667
## 2024-07-31
768

869
### Changes

RELEASING.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Preparing Release
2+
3+
Bump the version of the packages to be released using `melos`:
4+
5+
```
6+
melos version
7+
```
8+
9+
if melos does not pick up changes or does not bump the version correctly, you can manually version the packages using
10+
11+
```
12+
melos version -V ${PACKAGE_NAME}:M.M.P
13+
for e.g melos version -V powersync:1.6.3
14+
```
15+
16+
This will create a tag for all packages updated in the format of ${PACKAGE_NAME}-vM.M.P
17+
18+
```
19+
e.g powersync-v1.6.4, powersync_attachments_helper-v0.6.3+1, etc.
20+
```
21+
22+
# Perform Release
23+
24+
```
25+
git push --follow-tags
26+
```
27+
28+
A version bump and tag push for `powersync` will also create a draft github release for the powersync web worker. The worker needs to be manually published in the GitHub [releases](https://github.com/powersync-ja/powersync.dart/releases).

demos/django-todolist/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Then deploy the following sync rules:
6060
bucket_definitions:
6161
user_lists:
6262
# Separate bucket per todo list
63-
parameters: select id as list_id from lists where owner_id = token_parameters.user_id
63+
parameters: select id as list_id from lists where owner_id = request.user_id()
6464
data:
6565
- select * from lists where id = bucket.list_id
6666
- select * from todos where list_id = bucket.list_id

demos/django-todolist/pubspec.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,14 +310,14 @@ packages:
310310
path: "../../packages/powersync"
311311
relative: true
312312
source: path
313-
version: "1.6.3"
313+
version: "1.6.5"
314314
powersync_flutter_libs:
315315
dependency: "direct overridden"
316316
description:
317317
path: "../../packages/powersync_flutter_libs"
318318
relative: true
319319
source: path
320-
version: "0.1.0"
320+
version: "0.2.0"
321321
pub_semver:
322322
dependency: transitive
323323
description:

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.3
13+
powersync: ^1.6.5
1414
path_provider: ^2.1.1
1515
path: ^1.8.3
1616
logging: ^1.2.0

demos/supabase-anonymous-auth/pubspec.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -366,14 +366,14 @@ packages:
366366
path: "../../packages/powersync"
367367
relative: true
368368
source: path
369-
version: "1.6.3"
369+
version: "1.6.5"
370370
powersync_flutter_libs:
371371
dependency: "direct overridden"
372372
description:
373373
path: "../../packages/powersync_flutter_libs"
374374
relative: true
375375
source: path
376-
version: "0.1.0"
376+
version: "0.2.0"
377377
pub_semver:
378378
dependency: transitive
379379
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.3
14+
powersync: ^1.6.5
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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -366,14 +366,14 @@ packages:
366366
path: "../../packages/powersync"
367367
relative: true
368368
source: path
369-
version: "1.6.3"
369+
version: "1.6.5"
370370
powersync_flutter_libs:
371371
dependency: "direct overridden"
372372
description:
373373
path: "../../packages/powersync_flutter_libs"
374374
relative: true
375375
source: path
376-
version: "0.1.0"
376+
version: "0.2.0"
377377
pub_semver:
378378
dependency: transitive
379379
description:

0 commit comments

Comments
 (0)