Skip to content

Commit 12488fb

Browse files
authored
Merge pull request powersync-ja#292 from powersync-ja/prepare-release
Prepare release
2 parents a706aa0 + 48da58c commit 12488fb

File tree

24 files changed

+153
-26
lines changed

24 files changed

+153
-26
lines changed

CHANGELOG.md

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,60 @@
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+
## 2025-06-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_core` - `v1.4.0`](#powersync_core---v140)
19+
- [`powersync` - `v1.14.0`](#powersync---v1140)
20+
- [`powersync_sqlcipher` - `v0.1.8`](#powersync_sqlcipher---v018)
21+
- [`powersync_attachments_helper` - `v0.6.18+9`](#powersync_attachments_helper---v06189)
22+
23+
Packages with dependency updates only:
24+
25+
> 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.
26+
27+
- `powersync_attachments_helper` - `v0.6.18+9`
28+
29+
---
30+
31+
#### `powersync_core` - `v1.4.0`
32+
33+
#### `powersync` - `v1.14.0`
34+
35+
#### `powersync_sqlcipher` - `v0.1.8`
36+
37+
Add a new sync client implementation written in Rust instead of Dart. While
38+
this client is still experimental, we intend to make it the default in the
39+
future. The main benefit of this client is faster sync performance, but
40+
upcoming features will also require this client.
41+
We encourage interested users to try it out by passing `SyncOptions` to the
42+
`connect` method:
43+
44+
```dart
45+
database.connect(
46+
connector: YourConnector(),
47+
options: const SyncOptions(
48+
syncImplementation: SyncClientImplementation.rust,
49+
),
50+
);
51+
```
52+
53+
Switching between the clients can be done at any time without compatibility
54+
issues. If you run into issues with the new client, please reach out to us!
55+
56+
#### `powersync_flutter_libs` - `v0.4.9`
57+
58+
- Update PowerSync core extension to version 0.4.0.
59+
660
## 2025-05-29
761

862
### Changes

demos/benchmarks/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.13.1
13+
powersync: ^1.14.0
1414
path_provider: ^2.1.1
1515
path: ^1.8.3
1616
logging: ^1.2.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.13.1
13+
powersync: ^1.14.0
1414
path_provider: ^2.1.1
1515
path: ^1.8.3
1616
logging: ^1.2.0

demos/firebase-nodejs-todolist/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.13.1
14+
powersync: ^1.14.0
1515
path_provider: ^2.1.1
1616
supabase_flutter: ^2.0.1
1717
path: ^1.8.3

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.13.1
14+
powersync: ^1.14.0
1515
path_provider: ^2.1.1
1616
supabase_flutter: ^2.0.2
1717
path: ^1.8.3

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.13.1
14+
powersync: ^1.14.0
1515
path_provider: ^2.1.1
1616
supabase_flutter: ^2.0.2
1717
path: ^1.8.3

demos/supabase-simple-chat/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ dependencies:
3737

3838
supabase_flutter: ^2.0.2
3939
timeago: ^3.6.0
40-
powersync: ^1.13.1
40+
powersync: ^1.14.0
4141
path_provider: ^2.1.1
4242
path: ^1.8.3
4343
logging: ^1.2.0

demos/supabase-todolist-drift/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ environment:
99
dependencies:
1010
flutter:
1111
sdk: flutter
12-
powersync_attachments_helper: ^0.6.18+8
13-
powersync: ^1.13.1
12+
powersync_attachments_helper: ^0.6.18+9
13+
powersync: ^1.14.0
1414
path_provider: ^2.1.1
1515
supabase_flutter: ^2.0.1
1616
path: ^1.8.3

demos/supabase-todolist-optional-sync/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.13.1
13+
powersync: ^1.14.0
1414
path_provider: ^2.1.1
1515
supabase_flutter: ^2.0.1
1616
path: ^1.8.3

demos/supabase-todolist/lib/powersync.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,8 @@ Future<String> getDatabasePath() async {
153153
return join(dir.path, dbFilename);
154154
}
155155

156+
const options = SyncOptions(syncImplementation: SyncClientImplementation.rust);
157+
156158
Future<void> openDatabase() async {
157159
// Open the local database
158160
db = PowerSyncDatabase(
@@ -167,15 +169,15 @@ Future<void> openDatabase() async {
167169
// If the user is already logged in, connect immediately.
168170
// Otherwise, connect once logged in.
169171
currentConnector = SupabaseConnector();
170-
db.connect(connector: currentConnector);
172+
db.connect(connector: currentConnector, options: options);
171173
}
172174

173175
Supabase.instance.client.auth.onAuthStateChange.listen((data) async {
174176
final AuthChangeEvent event = data.event;
175177
if (event == AuthChangeEvent.signedIn) {
176178
// Connect to PowerSync when the user is signed in
177179
currentConnector = SupabaseConnector();
178-
db.connect(connector: currentConnector!);
180+
db.connect(connector: currentConnector!, options: options);
179181
} else if (event == AuthChangeEvent.signedOut) {
180182
// Implicit sign out - disconnect, but don't delete data
181183
currentConnector = null;

0 commit comments

Comments
 (0)