@liveblocks/redux
Advanced tools
Comparing version 0.16.4-beta1 to 0.16.4-beta2
@@ -1,7 +0,8 @@ | ||
import { Client, User, Presence } from "@liveblocks/client"; | ||
import { StoreEnhancer } from "redux"; | ||
export declare type Mapping<T> = Partial<{ | ||
import { Presence, User, Client } from '@liveblocks/client'; | ||
import { StoreEnhancer } from 'redux'; | ||
declare type Mapping<T> = Partial<{ | ||
[Property in keyof T]: boolean; | ||
}>; | ||
export declare type LiveblocksState<TState, TPresence extends Presence = Presence> = TState & { | ||
declare type LiveblocksState<TState, TPresence extends Presence = Presence> = TState & { | ||
/** | ||
@@ -28,3 +29,3 @@ * Liveblocks extra state attached by the enhancer | ||
*/ | ||
export declare const actions: { | ||
declare const actions: { | ||
/** | ||
@@ -51,3 +52,3 @@ * Enters a room and starts sync it with zustand state | ||
}; | ||
export declare const enhancer: <T>(options: { | ||
declare const enhancer: <T>(options: { | ||
client: Client; | ||
@@ -57,2 +58,3 @@ storageMapping?: Partial<{ [Property in keyof T]: boolean; }> | undefined; | ||
}) => StoreEnhancer; | ||
export {}; | ||
export { LiveblocksState, Mapping, actions, enhancer }; |
{ | ||
"name": "@liveblocks/redux", | ||
"version": "0.16.4-beta1", | ||
"sideEffects": false, | ||
"version": "0.16.4-beta2", | ||
"description": "A store enhancer to integrate Liveblocks into Redux stores.", | ||
"main": "./index.js", | ||
"module": "./index.mjs", | ||
"types": "./index.d.ts", | ||
@@ -11,10 +11,2 @@ "files": [ | ||
], | ||
"exports": { | ||
".": { | ||
"types": "./index.d.ts", | ||
"module": "./esm/index.js", | ||
"import": "./esm/index.mjs", | ||
"default": "./index.js" | ||
} | ||
}, | ||
"keywords": [ | ||
@@ -42,3 +34,3 @@ "redux", | ||
"peerDependencies": { | ||
"@liveblocks/client": "0.16.4-beta1", | ||
"@liveblocks/client": "0.16.4-beta2", | ||
"redux": "^4" | ||
@@ -54,2 +46,3 @@ }, | ||
"@rollup/plugin-node-resolve": "^13.1.3", | ||
"@rollup/plugin-replace": "^4.0.0", | ||
"@rollup/plugin-typescript": "^8.3.0", | ||
@@ -62,3 +55,2 @@ "@testing-library/jest-dom": "^5.16.1", | ||
"@typescript-eslint/parser": "^5.18.0", | ||
"esbuild": "0.14.11", | ||
"eslint": "^8.12.0", | ||
@@ -69,5 +61,7 @@ "jest": "^27.4.7", | ||
"rollup": "^2.64.0", | ||
"rollup-plugin-esbuild": "^4.8.2", | ||
"rollup-plugin-command": "^1.1.3", | ||
"rollup-plugin-dts": "^4.2.1", | ||
"whatwg-fetch": "^3.6.2" | ||
} | ||
}, | ||
"sideEffects": false | ||
} |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
10
28320
23
5
658
1