@liveblocks/zustand 0.18.1 → 0.18.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/index.js +2 -2
- package/package.json +2 -2
- package/.built-by-link-script +0 -1
package/index.js
CHANGED
|
@@ -228,7 +228,7 @@ function broadcastInitialPresence(room, state, mapping) {
|
|
|
228
228
|
function updatePresence(room, oldState, newState, presenceMapping) {
|
|
229
229
|
for (const key in presenceMapping) {
|
|
230
230
|
if (typeof newState[key] === "function") {
|
|
231
|
-
throw mappingToFunctionIsNotAllowed(
|
|
231
|
+
throw mappingToFunctionIsNotAllowed(key);
|
|
232
232
|
}
|
|
233
233
|
if (oldState[key] !== newState[key]) {
|
|
234
234
|
const val = newState[key];
|
|
@@ -239,7 +239,7 @@ function updatePresence(room, oldState, newState, presenceMapping) {
|
|
|
239
239
|
function patchLiveblocksStorage(root, oldState, newState, mapping) {
|
|
240
240
|
for (const key in mapping) {
|
|
241
241
|
if (process.env.NODE_ENV !== "production" && typeof newState[key] === "function") {
|
|
242
|
-
throw mappingToFunctionIsNotAllowed(
|
|
242
|
+
throw mappingToFunctionIsNotAllowed(key);
|
|
243
243
|
}
|
|
244
244
|
if (oldState[key] !== newState[key]) {
|
|
245
245
|
const oldVal = oldState[key];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@liveblocks/zustand",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.3",
|
|
4
4
|
"description": "A middleware to integrate Liveblocks into Zustand stores.",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"module": "./index.mjs",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"directory": "packages/liveblocks-zustand"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
|
-
"@liveblocks/client": "0.18.
|
|
30
|
+
"@liveblocks/client": "0.18.3",
|
|
31
31
|
"zustand": "^3"
|
|
32
32
|
},
|
|
33
33
|
"sideEffects": false
|
package/.built-by-link-script
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
b69420daa60afd688c5f130b53e357e3f7c2f0b7
|