Skip to content

Commit 3e5394d

Browse files
committed
Expand changeset
1 parent cbb20c0 commit 3e5394d

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed

.changeset/heavy-turkeys-end.md

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,31 @@
11
---
22
'@powersync/common': minor
3+
'@powersync/node': minor
4+
'@powersync/web': minor
5+
'@powersync/react-native': minor
36
---
47

5-
Add new experimental sync client based on the core extension.
8+
This adds a new (and currently experimental) sync client implementation
9+
implemented natively in the PowerSync SQLite extension.
10+
11+
This implementation will eventually become the default, but we encourage
12+
interested users to try it out. In particular, we expect that it can improve
13+
sync performance (especially on platforms with challenging JS performance,
14+
like React Native).
15+
16+
On all our JavaScript SDKs, the new implementation can be enabled with a
17+
sync option entry when connecting:
18+
19+
```JS
20+
await db.connect(new MyConnector(), {
21+
clientImplementation: SyncClientImplementation.RUST
22+
});
23+
```
24+
25+
Since the new client implements the same protocol, you can also migrate back
26+
to the JavaScript client later by removing the `clientImplementation` option.
27+
28+
__However__: After enabling the `RUST` client, you cannot downgrade your
29+
PowerSync SDK below this version. When enabled for the first time, databases
30+
will be migrated. The JavaScript sync client from this and later SDK versions
31+
understands the new format, but the client from an older SDK version will not!

0 commit comments

Comments
 (0)