diff --git a/CHANGELOG.md b/CHANGELOG.md index 34c629a0..cd08c20f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,35 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## 2024-09-06 + +### Changes + +--- + +Packages with breaking changes: + + - There are no breaking changes in this release. + +Packages with other changes: + + - [`powersync` - `v1.8.0`](#powersync---v180) + +--- + +#### `powersync` - `v1.8.0` + + - Requires `journeyapps/powersync-service` v0.5.0 or later when self-hosting + - Use powersync-sqlite-core v0.2.1 + - Customize `User-Agent` header + - Add `client_id` parameter to sync requests + - Persist `lastSyncedAt` + - Emit update notifications for watch queries on `disconnectAndClear()` + - Validate that the `powersync-sqlite-core` version number is in a compatible range of `^0.2.0` + - Always cast `target_op` (write checkpoints) to ensure it's an integer + - Sync optimizations for MOVE and REMOVE operations + + ## 2024-08-23 ### Changes diff --git a/demos/django-todolist/pubspec.lock b/demos/django-todolist/pubspec.lock index ab8807e7..ab337cb5 100644 --- a/demos/django-todolist/pubspec.lock +++ b/demos/django-todolist/pubspec.lock @@ -310,7 +310,7 @@ packages: path: "../../packages/powersync" relative: true source: path - version: "1.6.7" + version: "1.7.0" powersync_flutter_libs: dependency: "direct overridden" description: diff --git a/demos/django-todolist/pubspec.yaml b/demos/django-todolist/pubspec.yaml index 14e5a754..0b6298a9 100644 --- a/demos/django-todolist/pubspec.yaml +++ b/demos/django-todolist/pubspec.yaml @@ -10,7 +10,7 @@ environment: dependencies: flutter: sdk: flutter - powersync: ^1.6.7 + powersync: ^1.8.0 path_provider: ^2.1.1 path: ^1.8.3 logging: ^1.2.0 diff --git a/demos/supabase-anonymous-auth/pubspec.lock b/demos/supabase-anonymous-auth/pubspec.lock index f11e5741..9655ce3e 100644 --- a/demos/supabase-anonymous-auth/pubspec.lock +++ b/demos/supabase-anonymous-auth/pubspec.lock @@ -366,7 +366,7 @@ packages: path: "../../packages/powersync" relative: true source: path - version: "1.6.7" + version: "1.7.0" powersync_flutter_libs: dependency: "direct overridden" description: diff --git a/demos/supabase-anonymous-auth/pubspec.yaml b/demos/supabase-anonymous-auth/pubspec.yaml index 86de5407..4e8f7a11 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.6.7 + powersync: ^1.8.0 path_provider: ^2.1.1 supabase_flutter: ^2.0.2 path: ^1.8.3 diff --git a/demos/supabase-edge-function-auth/pubspec.lock b/demos/supabase-edge-function-auth/pubspec.lock index cdf25d0a..4b029e45 100644 --- a/demos/supabase-edge-function-auth/pubspec.lock +++ b/demos/supabase-edge-function-auth/pubspec.lock @@ -390,7 +390,7 @@ packages: path: "../../packages/powersync" relative: true source: path - version: "1.6.7" + version: "1.7.0" powersync_flutter_libs: dependency: "direct overridden" description: diff --git a/demos/supabase-edge-function-auth/pubspec.yaml b/demos/supabase-edge-function-auth/pubspec.yaml index ed16c8c7..199ab329 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.6.7 + powersync: ^1.8.0 path_provider: ^2.1.1 supabase_flutter: ^2.0.2 path: ^1.8.3 diff --git a/demos/supabase-simple-chat/pubspec.lock b/demos/supabase-simple-chat/pubspec.lock index 43de8716..76b638c4 100644 --- a/demos/supabase-simple-chat/pubspec.lock +++ b/demos/supabase-simple-chat/pubspec.lock @@ -406,7 +406,7 @@ packages: path: "../../packages/powersync" relative: true source: path - version: "1.6.7" + version: "1.7.0" powersync_flutter_libs: dependency: "direct overridden" description: diff --git a/demos/supabase-simple-chat/pubspec.yaml b/demos/supabase-simple-chat/pubspec.yaml index e880474d..0ae38e4d 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.6.7 + powersync: ^1.8.0 path_provider: ^2.1.1 path: ^1.8.3 logging: ^1.2.0 diff --git a/demos/supabase-todolist-drift/pubspec.lock b/demos/supabase-todolist-drift/pubspec.lock index 44ac759e..7600f9a1 100644 --- a/demos/supabase-todolist-drift/pubspec.lock +++ b/demos/supabase-todolist-drift/pubspec.lock @@ -686,14 +686,14 @@ packages: path: "../../packages/powersync" relative: true source: path - version: "1.6.7" + version: "1.7.0" powersync_attachments_helper: dependency: "direct main" description: path: "../../packages/powersync_attachments_helper" relative: true source: path - version: "0.6.5" + version: "0.6.5+1" powersync_flutter_libs: dependency: "direct overridden" description: diff --git a/demos/supabase-todolist-drift/pubspec.yaml b/demos/supabase-todolist-drift/pubspec.yaml index 2ca974e6..f889533c 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.5 - powersync: ^1.6.7 + powersync_attachments_helper: ^0.6.5+1 + powersync: ^1.8.0 path_provider: ^2.1.1 supabase_flutter: ^2.0.1 path: ^1.8.3 diff --git a/demos/supabase-todolist/pubspec.lock b/demos/supabase-todolist/pubspec.lock index edf3123c..b4ccc39e 100644 --- a/demos/supabase-todolist/pubspec.lock +++ b/demos/supabase-todolist/pubspec.lock @@ -470,14 +470,14 @@ packages: path: "../../packages/powersync" relative: true source: path - version: "1.6.7" + version: "1.7.0" powersync_attachments_helper: dependency: "direct main" description: path: "../../packages/powersync_attachments_helper" relative: true source: path - version: "0.6.5" + version: "0.6.5+1" powersync_flutter_libs: dependency: "direct overridden" description: diff --git a/demos/supabase-todolist/pubspec.yaml b/demos/supabase-todolist/pubspec.yaml index 2988e52a..63807b3b 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.5 - powersync: ^1.6.7 + powersync_attachments_helper: ^0.6.5+1 + powersync: ^1.8.0 path_provider: ^2.1.1 supabase_flutter: ^2.0.1 path: ^1.8.3 diff --git a/packages/powersync/CHANGELOG.md b/packages/powersync/CHANGELOG.md index c152e2fa..98d129b7 100644 --- a/packages/powersync/CHANGELOG.md +++ b/packages/powersync/CHANGELOG.md @@ -1,3 +1,16 @@ +## 1.8.0 + + - Requires `journeyapps/powersync-service` v0.5.0 or later when self-hosting + - Use powersync-sqlite-core v0.2.1 + - Customize `User-Agent` header + - Add `client_id` parameter to sync requests + - Persist `lastSyncedAt` + - Emit update notifications for watch queries on `disconnectAndClear()` + - Validate that the `powersync-sqlite-core` version number is in a compatible range of `^0.2.0` + - Always cast `target_op` (write checkpoints) to ensure it's an integer + - Sync optimizations for MOVE and REMOVE operations + + ## 1.7.0 - **FEAT**: Include schema validation check diff --git a/packages/powersync/lib/src/user_agent/user_agent_native.dart b/packages/powersync/lib/src/user_agent/user_agent_native.dart index 49771c54..018ddf87 100644 --- a/packages/powersync/lib/src/user_agent/user_agent_native.dart +++ b/packages/powersync/lib/src/user_agent/user_agent_native.dart @@ -10,7 +10,7 @@ String powerSyncUserAgent() { } // Ideally we'd get an OS version as well, but that's a little complex. // Platform.operatingSystemVersion is very verbose. - return 'powersync-dart/$libraryVersion ($dart; ${Platform.operatingSystem})'; + return 'powersync-dart/$libraryVersion $dart ${Platform.operatingSystem}'; } Map userAgentHeaders() { diff --git a/packages/powersync/lib/src/user_agent/user_agent_web.dart b/packages/powersync/lib/src/user_agent/user_agent_web.dart index 28dc7012..fb9a9d6c 100644 --- a/packages/powersync/lib/src/user_agent/user_agent_web.dart +++ b/packages/powersync/lib/src/user_agent/user_agent_web.dart @@ -1,7 +1,7 @@ import 'package:powersync/src/version.dart'; String powerSyncUserAgent() { - return 'powersync-dart/$libraryVersion (flutter-web)'; + return 'powersync-dart/$libraryVersion Dart (flutter-web)'; } Map userAgentHeaders() { diff --git a/packages/powersync/lib/src/version.dart b/packages/powersync/lib/src/version.dart index afd23634..48de2711 100644 --- a/packages/powersync/lib/src/version.dart +++ b/packages/powersync/lib/src/version.dart @@ -1 +1 @@ -const String libraryVersion = '1.6.4'; +const String libraryVersion = '1.8.0'; diff --git a/packages/powersync/pubspec.yaml b/packages/powersync/pubspec.yaml index 8f456dcc..b8e7ee97 100644 --- a/packages/powersync/pubspec.yaml +++ b/packages/powersync/pubspec.yaml @@ -1,5 +1,5 @@ name: powersync -version: 1.6.7 +version: 1.8.0 homepage: https://powersync.com repository: https://github.com/powersync-ja/powersync.dart description: PowerSync Flutter SDK - keep PostgreSQL databases in sync with on-device SQLite databases. diff --git a/packages/powersync_attachments_helper/CHANGELOG.md b/packages/powersync_attachments_helper/CHANGELOG.md index 07615d02..84be3436 100644 --- a/packages/powersync_attachments_helper/CHANGELOG.md +++ b/packages/powersync_attachments_helper/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.6.5+1 + + - Update a dependency to the latest release. + ## 0.6.5 - Update a dependency to the latest release. diff --git a/packages/powersync_attachments_helper/pubspec.yaml b/packages/powersync_attachments_helper/pubspec.yaml index a4c8da8e..60f67c0c 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.5 +version: 0.6.5+1 repository: https://github.com/powersync-ja/powersync.dart homepage: https://www.powersync.com/ environment: @@ -10,7 +10,7 @@ dependencies: flutter: sdk: flutter - powersync: ^1.6.7 + powersync: ^1.7.0 logging: ^1.2.0 sqlite_async: ^0.8.1 path_provider: ^2.0.13