@syncular/react 0.15.38 → 0.15.40

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.
package/dist/client.js CHANGED
@@ -11,7 +11,7 @@
11
11
  * value → read it) and wraps every result in `Promise.resolve`, so a hook
12
12
  * never has to care which core it holds.
13
13
  */
14
- import { linkRealtimeSupervisorObservation } from '@syncular/client';
14
+ import { linkRealtimeSupervisorObservation } from '@syncular/client/realtime-supervisor-observation';
15
15
  /**
16
16
  * Read a member by key that is EITHER a value getter (SyncClient) or a
17
17
  * method returning a value/promise (SyncClientHandle). Read from the client
@@ -3,4 +3,4 @@
3
3
  * Vite HMR uses it to replace a worker owner after a Syncular package upgrade
4
4
  * even when the application's generated schema version did not change.
5
5
  */
6
- export declare const SYNCULAR_REACT_RUNTIME_VERSION = "0.15.38";
6
+ export declare const SYNCULAR_REACT_RUNTIME_VERSION = "0.15.40";
@@ -3,4 +3,4 @@
3
3
  * Vite HMR uses it to replace a worker owner after a Syncular package upgrade
4
4
  * even when the application's generated schema version did not change.
5
5
  */
6
- export const SYNCULAR_REACT_RUNTIME_VERSION = '0.15.38';
6
+ export const SYNCULAR_REACT_RUNTIME_VERSION = '0.15.40';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@syncular/react",
3
- "version": "0.15.38",
3
+ "version": "0.15.40",
4
4
  "description": "React hooks for Syncular offline-first sync",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Benjamin Kniffler",
@@ -55,15 +55,15 @@
55
55
  "test": "bun test --preload ./test/setup.ts"
56
56
  },
57
57
  "dependencies": {
58
- "@syncular/client": "0.15.38"
58
+ "@syncular/client": "0.15.40"
59
59
  },
60
60
  "peerDependencies": {
61
61
  "react": ">=18.0.0"
62
62
  },
63
63
  "devDependencies": {
64
64
  "@happy-dom/global-registrator": "^20.0.0",
65
- "@syncular/core": "0.15.38",
66
- "@syncular/server": "0.15.38",
65
+ "@syncular/core": "0.15.40",
66
+ "@syncular/server": "0.15.40",
67
67
  "@testing-library/react": "^16.1.0",
68
68
  "@types/react": "^18.3.0",
69
69
  "react": "^18.3.1",
package/src/client.ts CHANGED
@@ -41,7 +41,7 @@ import type {
41
41
  WindowBase,
42
42
  WindowState,
43
43
  } from '@syncular/client';
44
- import { linkRealtimeSupervisorObservation } from '@syncular/client';
44
+ import { linkRealtimeSupervisorObservation } from '@syncular/client/realtime-supervisor-observation';
45
45
 
46
46
  /**
47
47
  * The structural union of `SyncClient` and `SyncClientHandle`. Members that
@@ -3,4 +3,4 @@
3
3
  * Vite HMR uses it to replace a worker owner after a Syncular package upgrade
4
4
  * even when the application's generated schema version did not change.
5
5
  */
6
- export const SYNCULAR_REACT_RUNTIME_VERSION = '0.15.38';
6
+ export const SYNCULAR_REACT_RUNTIME_VERSION = '0.15.40';