@syncular/react 0.15.25 → 0.15.26

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 +8 -2
  2. package/package.json +4 -4
package/README.md CHANGED
@@ -99,7 +99,10 @@ const clientResource = createSyncClientResource(() => createClient());
99
99
  ```
100
100
 
101
101
  Call `await clientResource.dispose()` from the application's real lifecycle
102
- owner, not from a StrictMode-sensitive child effect.
102
+ owner, not from a StrictMode-sensitive child effect. Resource disposal and
103
+ provider-effect cleanup are safe in either order: provider teardown treats
104
+ window release as best effort when the owned client has already closed. Callers
105
+ do not need to stage a provider unmount before disposing its resource.
103
106
 
104
107
  If the application requires authentication or signed quarantine processing
105
108
  before protected data is visible, complete the concrete client's security
@@ -155,7 +158,10 @@ createClient)`. It retains a `{ schemaVersion, resource }` record, reuses it for
155
158
  same-schema HMR, and awaits old-resource disposal before creating a schema-bump
156
159
  replacement. Request `hot.invalidate()` only when its `schemaChanged` result is
157
160
  true and `disposalError` is absent; the official example and full explanation
158
- are in the [Vite guide](https://syncular.dev/guide-vite/).
161
+ are in the [Vite guide](https://syncular.dev/guide-vite/). The helper may close
162
+ the retained client before React runs cleanup for the old provider; Syncular
163
+ absorbs that teardown-only window-release race while still surfacing failures
164
+ from closing the resource itself.
159
165
 
160
166
  ## `useMutation`
161
167
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@syncular/react",
3
- "version": "0.15.25",
3
+ "version": "0.15.26",
4
4
  "description": "React hooks for Syncular offline-first sync",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Benjamin Kniffler",
@@ -48,15 +48,15 @@
48
48
  "test": "bun test --preload ./test/setup.ts"
49
49
  },
50
50
  "dependencies": {
51
- "@syncular/client": "0.15.25"
51
+ "@syncular/client": "0.15.26"
52
52
  },
53
53
  "peerDependencies": {
54
54
  "react": ">=18.0.0"
55
55
  },
56
56
  "devDependencies": {
57
57
  "@happy-dom/global-registrator": "^20.0.0",
58
- "@syncular/core": "0.15.25",
59
- "@syncular/server": "0.15.25",
58
+ "@syncular/core": "0.15.26",
59
+ "@syncular/server": "0.15.26",
60
60
  "@testing-library/react": "^16.1.0",
61
61
  "@types/react": "^18.3.0",
62
62
  "react": "^18.3.1",