@liveblocks/redux
Advanced tools
Comparing version 2.15.2 to 2.16.0-rc1
@@ -5,6 +5,6 @@ import { JsonObject, BaseUserMeta, User, Status } from '@liveblocks/client'; | ||
declare type Mapping<T> = { | ||
type Mapping<T> = { | ||
[K in keyof T]?: boolean; | ||
}; | ||
declare type LiveblocksContext<P extends JsonObject, U extends BaseUserMeta> = { | ||
type LiveblocksContext<P extends JsonObject, U extends BaseUserMeta> = { | ||
/** | ||
@@ -26,3 +26,3 @@ * Other users in the room. Empty no room is currently synced | ||
*/ | ||
declare type WithLiveblocks<TState, P extends JsonObject, U extends BaseUserMeta> = TState & { | ||
type WithLiveblocks<TState, P extends JsonObject, U extends BaseUserMeta> = TState & { | ||
readonly liveblocks: LiveblocksContext<P, U>; | ||
@@ -57,6 +57,6 @@ }; | ||
client: OpaqueClient; | ||
storageMapping?: Mapping<TState> | undefined; | ||
presenceMapping?: Mapping<TState> | undefined; | ||
storageMapping?: Mapping<TState>; | ||
presenceMapping?: Mapping<TState>; | ||
}) => StoreEnhancer; | ||
export { type Mapping, type WithLiveblocks, actions, liveblocksEnhancer }; |
@@ -37,3 +37,3 @@ "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 | ||
var PKG_NAME = "@liveblocks/redux"; | ||
var PKG_VERSION = "2.15.2"; | ||
var PKG_VERSION = "2.16.0-rc1"; | ||
var PKG_FORMAT = "cjs"; | ||
@@ -40,0 +40,0 @@ |
{ | ||
"name": "@liveblocks/redux", | ||
"version": "2.15.2", | ||
"version": "2.16.0-rc1", | ||
"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.", | ||
@@ -36,4 +36,4 @@ "license": "Apache-2.0", | ||
"dependencies": { | ||
"@liveblocks/client": "2.15.2", | ||
"@liveblocks/core": "2.15.2" | ||
"@liveblocks/client": "2.16.0-rc1", | ||
"@liveblocks/core": "2.16.0-rc1" | ||
}, | ||
@@ -48,3 +48,3 @@ "peerDependencies": { | ||
"@testing-library/jest-dom": "^6.4.6", | ||
"msw": "^0.36.4", | ||
"msw": "^1.3.5", | ||
"redux": "^4.1.2" | ||
@@ -58,3 +58,3 @@ }, | ||
"type": "git", | ||
"url": "https://github.com/liveblocks/liveblocks.git", | ||
"url": "git+https://github.com/liveblocks/liveblocks.git", | ||
"directory": "packages/liveblocks-redux" | ||
@@ -61,0 +61,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
67203
1
+ Added@liveblocks/client@2.16.0-rc1(transitive)
+ Added@liveblocks/core@2.16.0-rc1(transitive)
- Removed@liveblocks/client@2.15.2(transitive)
- Removed@liveblocks/core@2.15.2(transitive)
Updated@liveblocks/core@2.16.0-rc1