@sqlrooms/crdt 0.29.0-rc.1 → 0.29.0-rc.3
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/README.md +10 -3
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -33,8 +33,16 @@ const {roomStore, useRoomStore} = createRoomStore(
|
|
|
33
33
|
...createCrdtSlice({
|
|
34
34
|
schema: mirrorSchema,
|
|
35
35
|
bindings: [
|
|
36
|
-
{
|
|
37
|
-
|
|
36
|
+
{
|
|
37
|
+
key: 'room',
|
|
38
|
+
select: (s) => s.room?.config,
|
|
39
|
+
apply: (value) => set({room: {...get().room, config: value}}),
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
key: 'layout',
|
|
43
|
+
select: (s) => s.layout?.config,
|
|
44
|
+
apply: (value) => set({layout: {...get().layout, config: value}}),
|
|
45
|
+
},
|
|
38
46
|
],
|
|
39
47
|
storage: createLocalStorageDocStorage('sqlrooms-sync-demo'),
|
|
40
48
|
sync: createWebSocketSyncConnector({
|
|
@@ -69,4 +77,3 @@ See `examples/sync` for an end-to-end demonstration with the Python sync server.
|
|
|
69
77
|
- Mirror emits `tags` metadata; we tag store-origin writes as `from-store` to avoid loops. Log `mirror.subscribe` in your app if you need deeper inspection.
|
|
70
78
|
- Use the `storage` hook to inject an in-memory or temp store in tests; pass a fake `sync` connector that captures `subscribeLocalUpdates` traffic for assertions.
|
|
71
79
|
- The websocket connector exposes `onStatus` for basic connection logging; attach console logs or telemetry there during development.
|
|
72
|
-
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sqlrooms/crdt",
|
|
3
|
-
"version": "0.29.0-rc.
|
|
3
|
+
"version": "0.29.0-rc.3",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"repository": {
|
|
12
12
|
"type": "git",
|
|
13
|
-
"url": "https://github.com/sqlrooms/sqlrooms.git"
|
|
13
|
+
"url": "git+https://github.com/sqlrooms/sqlrooms.git"
|
|
14
14
|
},
|
|
15
15
|
"files": [
|
|
16
16
|
"dist"
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"zustand": "^5.0.8"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@jest/globals": "^30.
|
|
28
|
+
"@jest/globals": "^30.3.0",
|
|
29
29
|
"@types/jest": "^30.0.0",
|
|
30
30
|
"jest": "^30.1.3",
|
|
31
31
|
"ts-jest": "^29.4.4"
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"typecheck": "tsc --noEmit",
|
|
42
42
|
"typedoc": "typedoc"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "089c926fc0cf71fc3bc7db4da8f3509f84485f94"
|
|
45
45
|
}
|