@syncular/tauri 0.15.12 → 0.15.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +23 -0
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -28,6 +28,29 @@ for validating the server-authoritative directive, gating subscriptions before
28
28
  the purge, deleting app-owned drafts/files, and removing the corresponding key
29
29
  from the OS secure store after SQLite cleanup succeeds.
30
30
 
31
+ ## React availability guard
32
+
33
+ The Tauri bridge carries `currentSchemaVersion`, `schemaFloor`, and migration
34
+ status through the same public React boundary as the browser worker. Guard the
35
+ application once instead of parsing native error strings:
36
+
37
+ ```tsx
38
+ <SyncProvider
39
+ client={clientResource}
40
+ renderBoundary={(state, actions) => (
41
+ <SyncBlockedScreen state={state} onRetry={actions.retry} />
42
+ )}
43
+ >
44
+ <App />
45
+ </SyncProvider>
46
+ ```
47
+
48
+ The state is a discriminated union covering startup, migration,
49
+ `client-upgrade-required`, `server-behind`, and `incompatible-schema`.
50
+ Compatibility recovery automatically restores the provider's children. Live
51
+ queries report `phase === 'blocked'` with `isLoading === false` while retaining
52
+ previously safe rows for an explicitly read-only view.
53
+
31
54
  Part of [Syncular](https://syncular.dev) — an offline-first sync framework.
32
55
  See the [Syncular repository](https://github.com/syncular/syncular) for docs.
33
56
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@syncular/tauri",
3
- "version": "0.15.12",
3
+ "version": "0.15.14",
4
4
  "description": "Tauri integration for the Syncular client",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Benjamin Kniffler",
@@ -48,12 +48,12 @@
48
48
  "test": "bun test"
49
49
  },
50
50
  "dependencies": {
51
- "@syncular/client": "0.15.12"
51
+ "@syncular/client": "0.15.14"
52
52
  },
53
53
  "peerDependencies": {
54
54
  "@tauri-apps/api": ">=2.0.0"
55
55
  },
56
56
  "devDependencies": {
57
- "@syncular/react": "0.15.12"
57
+ "@syncular/react": "0.15.14"
58
58
  }
59
59
  }