@liveblocks/react
Advanced tools
Comparing version 1.9.5 to 1.9.6-clafix
@@ -8,3 +8,3 @@ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }"use client"; | ||
var PKG_NAME = "@liveblocks/react"; | ||
var PKG_VERSION = "1.9.5"; | ||
var PKG_VERSION = "1.9.6-clafix"; | ||
var PKG_FORMAT = "cjs"; | ||
@@ -45,3 +45,2 @@ | ||
var _shim = require('use-sync-external-store/shim'); | ||
@@ -330,3 +329,3 @@ | ||
const revalidateCache = useRevalidateCache(manager, fetcher); | ||
const status = _shim.useSyncExternalStore.call(void 0, | ||
const status = useSyncExternalStore3( | ||
room.events.status.subscribe, | ||
@@ -1240,3 +1239,3 @@ room.getStatus, | ||
var superfluous_unstable_batchedUpdates = "You don\u2019t need to pass unstable_batchedUpdates to RoomProvider anymore, since you\u2019re on React 18+ already."; | ||
function useSyncExternalStore5(s, gs, gss) { | ||
function useSyncExternalStore3(s, gs, gss) { | ||
return _withselectorjs.useSyncExternalStoreWithSelector.call(void 0, s, gs, gss, identity); | ||
@@ -1393,3 +1392,3 @@ } | ||
const getServerSnapshot = room.getStatus; | ||
return useSyncExternalStore5(subscribe2, getSnapshot2, getServerSnapshot); | ||
return useSyncExternalStore3(subscribe2, getSnapshot2, getServerSnapshot); | ||
} | ||
@@ -1400,3 +1399,3 @@ function useMyPresence() { | ||
const getSnapshot2 = room.getPresence; | ||
const presence = useSyncExternalStore5(subscribe2, getSnapshot2, getSnapshot2); | ||
const presence = useSyncExternalStore3(subscribe2, getSnapshot2, getSnapshot2); | ||
const setPresence = room.updatePresence; | ||
@@ -1540,3 +1539,3 @@ return [presence, setPresence]; | ||
const getServerSnapshot = alwaysNull; | ||
return useSyncExternalStore5(subscribe2, getSnapshot2, getServerSnapshot); | ||
return useSyncExternalStore3(subscribe2, getSnapshot2, getServerSnapshot); | ||
} | ||
@@ -1559,3 +1558,3 @@ function useStorageRoot() { | ||
const canUndo = room.history.canUndo; | ||
return useSyncExternalStore5(subscribe2, canUndo, canUndo); | ||
return useSyncExternalStore3(subscribe2, canUndo, canUndo); | ||
} | ||
@@ -1566,3 +1565,3 @@ function useCanRedo() { | ||
const canRedo = room.history.canRedo; | ||
return useSyncExternalStore5(subscribe2, canRedo, canRedo); | ||
return useSyncExternalStore3(subscribe2, canRedo, canRedo); | ||
} | ||
@@ -1569,0 +1568,0 @@ function useBatch() { |
{ | ||
"name": "@liveblocks/react", | ||
"version": "1.9.5", | ||
"version": "1.9.6-clafix", | ||
"description": "A set of React hooks and providers to use Liveblocks declaratively. Liveblocks is the all-in-one toolkit to build collaborative products like Figma, Notion, and more.", | ||
@@ -37,4 +37,4 @@ "license": "Apache-2.0", | ||
"dependencies": { | ||
"@liveblocks/client": "1.9.5", | ||
"@liveblocks/core": "1.9.5", | ||
"@liveblocks/client": "1.9.6-clafix", | ||
"@liveblocks/core": "1.9.6-clafix", | ||
"nanoid": "^3", | ||
@@ -41,0 +41,0 @@ "use-sync-external-store": "^1.2.0" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
595321
5326
1
+ Added@liveblocks/client@1.9.6-clafix(transitive)
+ Added@liveblocks/core@1.9.6-clafix(transitive)
- Removed@liveblocks/client@1.9.5(transitive)
- Removed@liveblocks/core@1.9.5(transitive)