@liveblocks/redux
Advanced tools
Comparing version 2.18.3 to 2.18.4-uns1
@@ -1,9 +0,9 @@ | ||
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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; }// src/index.ts | ||
// src/index.ts | ||
import { | ||
detectDupes, | ||
legacy_patchImmutableObject, | ||
lsonToJson, | ||
patchLiveObjectKey | ||
} from "@liveblocks/core"; | ||
var _core = require('@liveblocks/core'); | ||
// src/errors.ts | ||
@@ -37,7 +37,7 @@ var ERROR_PREFIX = "Invalid @liveblocks/redux middleware config."; | ||
var PKG_NAME = "@liveblocks/redux"; | ||
var PKG_VERSION = "2.18.3"; | ||
var PKG_FORMAT = "cjs"; | ||
var PKG_VERSION = "2.18.4-uns1"; | ||
var PKG_FORMAT = "esm"; | ||
// src/index.ts | ||
_core.detectDupes.call(void 0, PKG_NAME, PKG_VERSION, PKG_FORMAT); | ||
detectDupes(PKG_NAME, PKG_VERSION, PKG_FORMAT); | ||
var ACTION_TYPES = { | ||
@@ -209,5 +209,5 @@ ENTER: "@@LIVEBLOCKS/ENTER", | ||
updates[key] = store.getState()[key]; | ||
_core.patchLiveObjectKey.call(void 0, root, key, void 0, store.getState()[key]); | ||
patchLiveObjectKey(root, key, void 0, store.getState()[key]); | ||
} else { | ||
updates[key] = _core.lsonToJson.call(void 0, liveblocksStatePart); | ||
updates[key] = lsonToJson(liveblocksStatePart); | ||
} | ||
@@ -254,3 +254,3 @@ } | ||
function leaveRoom2() { | ||
_optionalChain([lastLeaveFn, 'optionalCall', _ => _()]); | ||
lastLeaveFn?.(); | ||
} | ||
@@ -302,3 +302,3 @@ function newDispatch(action) { | ||
const newVal = newState[key]; | ||
_core.patchLiveObjectKey.call(void 0, root, key, oldVal, newVal); | ||
patchLiveObjectKey(root, key, oldVal, newVal); | ||
} | ||
@@ -339,3 +339,3 @@ } | ||
} | ||
const patched = _core.legacy_patchImmutableObject.call(void 0, partialState, updates); | ||
const patched = legacy_patchImmutableObject(partialState, updates); | ||
const result = {}; | ||
@@ -364,6 +364,6 @@ for (const key in mapping) { | ||
} | ||
exports.actions = actions; exports.liveblocksEnhancer = liveblocksEnhancer; | ||
export { | ||
actions, | ||
liveblocksEnhancer | ||
}; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@liveblocks/redux", | ||
"version": "2.18.3", | ||
"version": "2.18.4-uns1", | ||
"description": "A store enhancer to integrate Liveblocks into Redux stores. Liveblocks is the all-in-one toolkit to build collaborative products like Figma, Notion, and more.", | ||
"license": "Apache-2.0", | ||
"type": "commonjs", | ||
"main": "./dist/index.js", | ||
"types": "./dist/index.d.ts", | ||
"type": "module", | ||
"main": "./dist/index.cjs", | ||
"types": "./dist/index.d.cts", | ||
"exports": { | ||
".": { | ||
"import": { | ||
"types": "./dist/index.d.mts", | ||
"default": "./dist/index.mjs" | ||
"types": "./dist/index.d.ts", | ||
"default": "./dist/index.js" | ||
}, | ||
"require": { | ||
"types": "./dist/index.d.ts", | ||
"module": "./dist/index.mjs", | ||
"default": "./dist/index.js" | ||
"types": "./dist/index.d.cts", | ||
"module": "./dist/index.js", | ||
"default": "./dist/index.cjs" | ||
} | ||
@@ -36,4 +36,4 @@ } | ||
"dependencies": { | ||
"@liveblocks/client": "2.18.3", | ||
"@liveblocks/core": "2.18.3" | ||
"@liveblocks/client": "2.18.4-uns1", | ||
"@liveblocks/core": "2.18.4-uns1" | ||
}, | ||
@@ -40,0 +40,0 @@ "peerDependencies": { |
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
67209
Yes
1
+ Added@liveblocks/client@2.18.4-uns1(transitive)
+ Added@liveblocks/core@2.18.4-uns1(transitive)
- Removed@liveblocks/client@2.18.3(transitive)
- Removed@liveblocks/core@2.18.3(transitive)
Updated@liveblocks/core@2.18.4-uns1