Skip to content

Release v1.8.0 #155

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Sep 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion demos/django-todolist/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion demos/django-todolist/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion demos/supabase-anonymous-auth/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion demos/supabase-anonymous-auth/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion demos/supabase-edge-function-auth/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion demos/supabase-edge-function-auth/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion demos/supabase-simple-chat/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion demos/supabase-simple-chat/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions demos/supabase-todolist-drift/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions demos/supabase-todolist-drift/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions demos/supabase-todolist/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions demos/supabase-todolist/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
13 changes: 13 additions & 0 deletions packages/powersync/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<String, String> userAgentHeaders() {
Expand Down
2 changes: 1 addition & 1 deletion packages/powersync/lib/src/user_agent/user_agent_web.dart
Original file line number Diff line number Diff line change
@@ -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<String, String> userAgentHeaders() {
Expand Down
2 changes: 1 addition & 1 deletion packages/powersync/lib/src/version.dart
Original file line number Diff line number Diff line change
@@ -1 +1 @@
const String libraryVersion = '1.6.4';
const String libraryVersion = '1.8.0';
2 changes: 1 addition & 1 deletion packages/powersync/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 4 additions & 0 deletions packages/powersync_attachments_helper/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 2 additions & 2 deletions packages/powersync_attachments_helper/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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
Expand Down
Loading