From 4f921bedaeb47912dbed616a56f825c30b6292b4 Mon Sep 17 00:00:00 2001 From: Simon Binder Date: Thu, 29 May 2025 18:36:39 +0200 Subject: [PATCH 1/4] chore(release): publish packages - powersync_core@1.3.1 - powersync@1.13.1 - powersync_sqlcipher@0.1.7 - powersync_attachments_helper@0.6.18+8 --- CHANGELOG.md | 38 +++++++++++++++++++ demos/benchmarks/pubspec.yaml | 2 +- demos/django-todolist/pubspec.yaml | 2 +- demos/firebase-nodejs-todolist/pubspec.yaml | 2 +- demos/supabase-anonymous-auth/pubspec.yaml | 2 +- .../supabase-edge-function-auth/pubspec.yaml | 2 +- demos/supabase-simple-chat/pubspec.yaml | 2 +- demos/supabase-todolist-drift/pubspec.yaml | 4 +- .../pubspec.yaml | 2 +- demos/supabase-todolist/pubspec.yaml | 4 +- demos/supabase-trello/pubspec.yaml | 2 +- packages/powersync/CHANGELOG.md | 4 ++ packages/powersync/pubspec.yaml | 4 +- .../powersync_attachments_helper/CHANGELOG.md | 4 ++ .../powersync_attachments_helper/pubspec.yaml | 4 +- packages/powersync_core/CHANGELOG.md | 4 ++ packages/powersync_core/lib/src/version.dart | 2 +- packages/powersync_core/pubspec.yaml | 2 +- packages/powersync_sqlcipher/CHANGELOG.md | 4 ++ .../powersync_sqlcipher/example/pubspec.yaml | 2 +- packages/powersync_sqlcipher/pubspec.yaml | 4 +- 21 files changed, 75 insertions(+), 21 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 38aad3cc..2ef687a2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,44 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## 2025-05-29 + +### Changes + +--- + +Packages with breaking changes: + + - There are no breaking changes in this release. + +Packages with other changes: + + - [`powersync_core` - `v1.3.1`](#powersync_core---v131) + - [`powersync` - `v1.13.1`](#powersync---v1131) + - [`powersync_sqlcipher` - `v0.1.7`](#powersync_sqlcipher---v017) + - [`powersync_attachments_helper` - `v0.6.18+8`](#powersync_attachments_helper---v06188) + +Packages with dependency updates only: + +> 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. + + - `powersync_attachments_helper` - `v0.6.18+8` + +--- + +#### `powersync_core` - `v1.3.1` + + - http, creds, params + +#### `powersync` - `v1.13.1` + + - Bump "powersync" to `1.13.1`. + +#### `powersync_sqlcipher` - `v0.1.7` + + - Allow subclassing open factory for SQLCipher. + + ## 2025-05-07 ### Changes diff --git a/demos/benchmarks/pubspec.yaml b/demos/benchmarks/pubspec.yaml index e6ff8e5f..2f6eadb7 100644 --- a/demos/benchmarks/pubspec.yaml +++ b/demos/benchmarks/pubspec.yaml @@ -10,7 +10,7 @@ environment: dependencies: flutter: sdk: flutter - powersync: ^1.13.0 + powersync: ^1.13.1 path_provider: ^2.1.1 path: ^1.8.3 logging: ^1.2.0 diff --git a/demos/django-todolist/pubspec.yaml b/demos/django-todolist/pubspec.yaml index 255989a9..e32bb29d 100644 --- a/demos/django-todolist/pubspec.yaml +++ b/demos/django-todolist/pubspec.yaml @@ -10,7 +10,7 @@ environment: dependencies: flutter: sdk: flutter - powersync: ^1.13.0 + powersync: ^1.13.1 path_provider: ^2.1.1 path: ^1.8.3 logging: ^1.2.0 diff --git a/demos/firebase-nodejs-todolist/pubspec.yaml b/demos/firebase-nodejs-todolist/pubspec.yaml index 57af76ff..f25b160e 100644 --- a/demos/firebase-nodejs-todolist/pubspec.yaml +++ b/demos/firebase-nodejs-todolist/pubspec.yaml @@ -11,7 +11,7 @@ dependencies: flutter: sdk: flutter - powersync: ^1.13.0 + powersync: ^1.13.1 path_provider: ^2.1.1 supabase_flutter: ^2.0.1 path: ^1.8.3 diff --git a/demos/supabase-anonymous-auth/pubspec.yaml b/demos/supabase-anonymous-auth/pubspec.yaml index b68ff0ce..d2a94276 100644 --- a/demos/supabase-anonymous-auth/pubspec.yaml +++ b/demos/supabase-anonymous-auth/pubspec.yaml @@ -11,7 +11,7 @@ dependencies: flutter: sdk: flutter - powersync: ^1.13.0 + powersync: ^1.13.1 path_provider: ^2.1.1 supabase_flutter: ^2.0.2 path: ^1.8.3 diff --git a/demos/supabase-edge-function-auth/pubspec.yaml b/demos/supabase-edge-function-auth/pubspec.yaml index 45b99a1e..80795385 100644 --- a/demos/supabase-edge-function-auth/pubspec.yaml +++ b/demos/supabase-edge-function-auth/pubspec.yaml @@ -11,7 +11,7 @@ dependencies: flutter: sdk: flutter - powersync: ^1.13.0 + powersync: ^1.13.1 path_provider: ^2.1.1 supabase_flutter: ^2.0.2 path: ^1.8.3 diff --git a/demos/supabase-simple-chat/pubspec.yaml b/demos/supabase-simple-chat/pubspec.yaml index 894d0a45..306144f9 100644 --- a/demos/supabase-simple-chat/pubspec.yaml +++ b/demos/supabase-simple-chat/pubspec.yaml @@ -37,7 +37,7 @@ dependencies: supabase_flutter: ^2.0.2 timeago: ^3.6.0 - powersync: ^1.13.0 + powersync: ^1.13.1 path_provider: ^2.1.1 path: ^1.8.3 logging: ^1.2.0 diff --git a/demos/supabase-todolist-drift/pubspec.yaml b/demos/supabase-todolist-drift/pubspec.yaml index 4b542330..15b0d197 100644 --- a/demos/supabase-todolist-drift/pubspec.yaml +++ b/demos/supabase-todolist-drift/pubspec.yaml @@ -9,8 +9,8 @@ environment: dependencies: flutter: sdk: flutter - powersync_attachments_helper: ^0.6.18+7 - powersync: ^1.13.0 + powersync_attachments_helper: ^0.6.18+8 + powersync: ^1.13.1 path_provider: ^2.1.1 supabase_flutter: ^2.0.1 path: ^1.8.3 diff --git a/demos/supabase-todolist-optional-sync/pubspec.yaml b/demos/supabase-todolist-optional-sync/pubspec.yaml index fd628618..fb0912bb 100644 --- a/demos/supabase-todolist-optional-sync/pubspec.yaml +++ b/demos/supabase-todolist-optional-sync/pubspec.yaml @@ -10,7 +10,7 @@ environment: dependencies: flutter: sdk: flutter - powersync: ^1.13.0 + powersync: ^1.13.1 path_provider: ^2.1.1 supabase_flutter: ^2.0.1 path: ^1.8.3 diff --git a/demos/supabase-todolist/pubspec.yaml b/demos/supabase-todolist/pubspec.yaml index dc2735c3..3eb30540 100644 --- a/demos/supabase-todolist/pubspec.yaml +++ b/demos/supabase-todolist/pubspec.yaml @@ -10,8 +10,8 @@ environment: dependencies: flutter: sdk: flutter - powersync_attachments_helper: ^0.6.18+7 - powersync: ^1.13.0 + powersync_attachments_helper: ^0.6.18+8 + powersync: ^1.13.1 path_provider: ^2.1.1 supabase_flutter: ^2.0.1 path: ^1.8.3 diff --git a/demos/supabase-trello/pubspec.yaml b/demos/supabase-trello/pubspec.yaml index d0a5a88b..f6a8c7dd 100644 --- a/demos/supabase-trello/pubspec.yaml +++ b/demos/supabase-trello/pubspec.yaml @@ -36,7 +36,7 @@ dependencies: random_name_generator: ^1.5.0 flutter_dotenv: ^5.2.1 logging: ^1.3.0 - powersync: ^1.13.0 + powersync: ^1.13.1 sqlite_async: ^0.11.0 path_provider: ^2.1.5 supabase_flutter: ^2.8.3 diff --git a/packages/powersync/CHANGELOG.md b/packages/powersync/CHANGELOG.md index 986b7ea8..d0ea3fb8 100644 --- a/packages/powersync/CHANGELOG.md +++ b/packages/powersync/CHANGELOG.md @@ -1,3 +1,7 @@ +## 1.13.1 + + - Bump "powersync" to `1.13.1`. + ## 1.13.0 * Report real-time progress information about downloads through `SyncStatus.downloadProgress`. diff --git a/packages/powersync/pubspec.yaml b/packages/powersync/pubspec.yaml index 70abda69..71cdee2e 100644 --- a/packages/powersync/pubspec.yaml +++ b/packages/powersync/pubspec.yaml @@ -1,5 +1,5 @@ name: powersync -version: 1.13.0 +version: 1.13.1 homepage: https://powersync.com repository: https://github.com/powersync-ja/powersync.dart description: PowerSync Flutter SDK. Sync Postgres, MongoDB or MySQL with SQLite in your Flutter app @@ -12,7 +12,7 @@ dependencies: sdk: flutter sqlite3_flutter_libs: ^0.5.23 - powersync_core: ^1.3.0 + powersync_core: ^1.3.1 powersync_flutter_libs: ^0.4.8 collection: ^1.17.0 diff --git a/packages/powersync_attachments_helper/CHANGELOG.md b/packages/powersync_attachments_helper/CHANGELOG.md index 39c78cb9..21e28fa5 100644 --- a/packages/powersync_attachments_helper/CHANGELOG.md +++ b/packages/powersync_attachments_helper/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.6.18+8 + + - Update a dependency to the latest release. + ## 0.6.18+7 - Update a dependency to the latest release. diff --git a/packages/powersync_attachments_helper/pubspec.yaml b/packages/powersync_attachments_helper/pubspec.yaml index b3d3fd33..099b47db 100644 --- a/packages/powersync_attachments_helper/pubspec.yaml +++ b/packages/powersync_attachments_helper/pubspec.yaml @@ -1,6 +1,6 @@ name: powersync_attachments_helper description: A helper library for handling attachments when using PowerSync. -version: 0.6.18+7 +version: 0.6.18+8 repository: https://github.com/powersync-ja/powersync.dart homepage: https://www.powersync.com/ environment: @@ -10,7 +10,7 @@ dependencies: flutter: sdk: flutter - powersync_core: ^1.3.0 + powersync_core: ^1.3.1 logging: ^1.2.0 sqlite_async: ^0.11.0 path_provider: ^2.0.13 diff --git a/packages/powersync_core/CHANGELOG.md b/packages/powersync_core/CHANGELOG.md index 1380d345..1068f1b2 100644 --- a/packages/powersync_core/CHANGELOG.md +++ b/packages/powersync_core/CHANGELOG.md @@ -1,3 +1,7 @@ +## 1.3.1 + + - http, creds, params + ## 1.3.0 * Report real-time progress information about downloads through `SyncStatus.downloadProgress`. diff --git a/packages/powersync_core/lib/src/version.dart b/packages/powersync_core/lib/src/version.dart index 728d1e63..84f01174 100644 --- a/packages/powersync_core/lib/src/version.dart +++ b/packages/powersync_core/lib/src/version.dart @@ -1 +1 @@ -const String libraryVersion = '1.3.0'; +const String libraryVersion = '1.3.1'; diff --git a/packages/powersync_core/pubspec.yaml b/packages/powersync_core/pubspec.yaml index 372d904d..ff6d9567 100644 --- a/packages/powersync_core/pubspec.yaml +++ b/packages/powersync_core/pubspec.yaml @@ -1,5 +1,5 @@ name: powersync_core -version: 1.3.0 +version: 1.3.1 homepage: https://powersync.com repository: https://github.com/powersync-ja/powersync.dart description: PowerSync Dart SDK - sync engine for building local-first apps. diff --git a/packages/powersync_sqlcipher/CHANGELOG.md b/packages/powersync_sqlcipher/CHANGELOG.md index ddbeffa2..f95785cb 100644 --- a/packages/powersync_sqlcipher/CHANGELOG.md +++ b/packages/powersync_sqlcipher/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.1.7 + + - Allow subclassing open factory for SQLCipher. + ## 0.1.6 * Report real-time progress information about downloads through `SyncStatus.downloadProgress`. diff --git a/packages/powersync_sqlcipher/example/pubspec.yaml b/packages/powersync_sqlcipher/example/pubspec.yaml index c7943ec4..45b7b887 100644 --- a/packages/powersync_sqlcipher/example/pubspec.yaml +++ b/packages/powersync_sqlcipher/example/pubspec.yaml @@ -13,7 +13,7 @@ dependencies: path: ^1.9.1 path_provider: ^2.1.5 - powersync_sqlcipher: ^0.1.6 + powersync_sqlcipher: ^0.1.7 dev_dependencies: flutter_test: diff --git a/packages/powersync_sqlcipher/pubspec.yaml b/packages/powersync_sqlcipher/pubspec.yaml index 33ae31d2..12c31713 100644 --- a/packages/powersync_sqlcipher/pubspec.yaml +++ b/packages/powersync_sqlcipher/pubspec.yaml @@ -1,5 +1,5 @@ name: powersync_sqlcipher -version: 0.1.6 +version: 0.1.7 homepage: https://powersync.com repository: https://github.com/powersync-ja/powersync.dart description: PowerSync Flutter SDK - sync engine for building local-first apps. @@ -12,7 +12,7 @@ dependencies: flutter: sdk: flutter - powersync_core: ^1.3.0 + powersync_core: ^1.3.1 powersync_flutter_libs: ^0.4.8 sqlcipher_flutter_libs: ^0.6.4 sqlite3_web: ^0.3.0 From 14314f36a2ba89ef4e8122e219adc02d981fa25b Mon Sep 17 00:00:00 2001 From: Simon Binder Date: Thu, 29 May 2025 18:40:24 +0200 Subject: [PATCH 2/4] Fix changelog --- CHANGELOG.md | 8 ++++++-- packages/powersync/CHANGELOG.md | 4 +++- packages/powersync_core/CHANGELOG.md | 4 +++- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2ef687a2..d97f1932 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -30,11 +30,15 @@ Packages with dependency updates only: #### `powersync_core` - `v1.3.1` - - http, creds, params +- Use `package:http` instead of `package:fetch_client` on the web (since the former now uses fetch as well). +- Allow disconnecting in the credentials callback of a connector. +- Deprecate retry and CRUD upload durations as fields and independent parameters. Use the new `SyncOptions` class instead. #### `powersync` - `v1.13.1` - - Bump "powersync" to `1.13.1`. +- Use `package:http` instead of `package:fetch_client` on the web (since the former now uses fetch as well). +- Allow disconnecting in the credentials callback of a connector. +- Deprecate retry and CRUD upload durations as fields and independent parameters. Use the new `SyncOptions` class instead. #### `powersync_sqlcipher` - `v0.1.7` diff --git a/packages/powersync/CHANGELOG.md b/packages/powersync/CHANGELOG.md index d0ea3fb8..1a485307 100644 --- a/packages/powersync/CHANGELOG.md +++ b/packages/powersync/CHANGELOG.md @@ -1,6 +1,8 @@ ## 1.13.1 - - Bump "powersync" to `1.13.1`. +- Use `package:http` instead of `package:fetch_client` on the web (since the former now uses fetch as well). +- Allow disconnecting in the credentials callback of a connector. +- Deprecate retry and CRUD upload durations as fields and independent parameters. Use the new `SyncOptions` class instead. ## 1.13.0 diff --git a/packages/powersync_core/CHANGELOG.md b/packages/powersync_core/CHANGELOG.md index 1068f1b2..8691ebad 100644 --- a/packages/powersync_core/CHANGELOG.md +++ b/packages/powersync_core/CHANGELOG.md @@ -1,6 +1,8 @@ ## 1.3.1 - - http, creds, params +- Use `package:http` instead of `package:fetch_client` on the web (since the former now uses fetch as well). +- Allow disconnecting in the credentials callback of a connector. +- Deprecate retry and CRUD upload durations as fields and independent parameters. Use the new `SyncOptions` class instead. ## 1.3.0 From 83791cc8e6076ab53f4c8c5b85d8574adcd516c4 Mon Sep 17 00:00:00 2001 From: Simon Binder Date: Thu, 29 May 2025 19:06:06 +0200 Subject: [PATCH 3/4] Attempt to deflake test --- packages/powersync_core/test/watch_test.dart | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/powersync_core/test/watch_test.dart b/packages/powersync_core/test/watch_test.dart index 4aa9a4d4..afd1a115 100644 --- a/packages/powersync_core/test/watch_test.dart +++ b/packages/powersync_core/test/watch_test.dart @@ -83,9 +83,10 @@ void main() { lastCount = count; } - // The number of read queries must not be greater than the number of writes overall. + // The number of read queries must not be greater than the number of + //writes overall, plus one for an initial read. expect(numberOfQueries, - lessThanOrEqualTo(results.last.first['count'] as int)); + lessThanOrEqualTo((results.last.first['count'] as int) + 1)); DateTime? lastTime; for (var r in times) { From 0eb0ccf77f173449c1252bc0cf8878fa2457170c Mon Sep 17 00:00:00 2001 From: Simon Binder Date: Mon, 2 Jun 2025 15:26:05 +0200 Subject: [PATCH 4/4] Update changelog --- CHANGELOG.md | 2 ++ packages/powersync/CHANGELOG.md | 1 + packages/powersync_core/CHANGELOG.md | 1 + 3 files changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index d97f1932..396c080f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -33,12 +33,14 @@ Packages with dependency updates only: - Use `package:http` instead of `package:fetch_client` on the web (since the former now uses fetch as well). - Allow disconnecting in the credentials callback of a connector. - Deprecate retry and CRUD upload durations as fields and independent parameters. Use the new `SyncOptions` class instead. +- Fix sync progress report after a compaction or defragmentation on the sync service. #### `powersync` - `v1.13.1` - Use `package:http` instead of `package:fetch_client` on the web (since the former now uses fetch as well). - Allow disconnecting in the credentials callback of a connector. - Deprecate retry and CRUD upload durations as fields and independent parameters. Use the new `SyncOptions` class instead. +- Fix sync progress report after a compaction or defragmentation on the sync service. #### `powersync_sqlcipher` - `v0.1.7` diff --git a/packages/powersync/CHANGELOG.md b/packages/powersync/CHANGELOG.md index 1a485307..b25f507c 100644 --- a/packages/powersync/CHANGELOG.md +++ b/packages/powersync/CHANGELOG.md @@ -3,6 +3,7 @@ - Use `package:http` instead of `package:fetch_client` on the web (since the former now uses fetch as well). - Allow disconnecting in the credentials callback of a connector. - Deprecate retry and CRUD upload durations as fields and independent parameters. Use the new `SyncOptions` class instead. +- Fix sync progress report after a compaction or defragmentation on the sync service. ## 1.13.0 diff --git a/packages/powersync_core/CHANGELOG.md b/packages/powersync_core/CHANGELOG.md index 8691ebad..2f1a64df 100644 --- a/packages/powersync_core/CHANGELOG.md +++ b/packages/powersync_core/CHANGELOG.md @@ -3,6 +3,7 @@ - Use `package:http` instead of `package:fetch_client` on the web (since the former now uses fetch as well). - Allow disconnecting in the credentials callback of a connector. - Deprecate retry and CRUD upload durations as fields and independent parameters. Use the new `SyncOptions` class instead. +- Fix sync progress report after a compaction or defragmentation on the sync service. ## 1.3.0