@liveblocks/redux 0.15.11 → 0.16.2

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/README.md CHANGED
@@ -18,6 +18,8 @@
18
18
  </a>
19
19
  </p>
20
20
 
21
+ A [store enhancer](https://redux.js.org/understanding/thinking-in-redux/glossary#store-enhancer) to integrate [Liveblocks](https://liveblocks.io) into [Redux](https://redux-toolkit.js.org/) stores.
22
+
21
23
  ## Installation
22
24
 
23
25
  ```
@@ -36,7 +36,7 @@ var __spreadValues = (a, b) => {
36
36
  return a;
37
37
  };
38
38
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
39
- const { patchImmutableObject, patchLiveObjectKey, liveNodeToJson } = internals;
39
+ const { patchImmutableObject, patchLiveObjectKey, lsonToJson } = internals;
40
40
  const ACTION_TYPES = {
41
41
  ENTER: "@@LIVEBLOCKS/ENTER",
42
42
  LEAVE: "@@LIVEBLOCKS/LEAVE",
@@ -155,7 +155,7 @@ const internalEnhancer = (options) => {
155
155
  updates[key] = storageInitialState[key];
156
156
  patchLiveObjectKey(root, key, void 0, storageInitialState[key]);
157
157
  } else {
158
- updates[key] = liveNodeToJson(liveblocksStatePart);
158
+ updates[key] = lsonToJson(liveblocksStatePart);
159
159
  }
160
160
  }
161
161
  });
@@ -36,7 +36,7 @@ var __spreadValues = (a, b) => {
36
36
  return a;
37
37
  };
38
38
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
39
- const { patchImmutableObject, patchLiveObjectKey, liveNodeToJson } = internals;
39
+ const { patchImmutableObject, patchLiveObjectKey, lsonToJson } = internals;
40
40
  const ACTION_TYPES = {
41
41
  ENTER: "@@LIVEBLOCKS/ENTER",
42
42
  LEAVE: "@@LIVEBLOCKS/LEAVE",
@@ -155,7 +155,7 @@ const internalEnhancer = (options) => {
155
155
  updates[key] = storageInitialState[key];
156
156
  patchLiveObjectKey(root, key, void 0, storageInitialState[key]);
157
157
  } else {
158
- updates[key] = liveNodeToJson(liveblocksStatePart);
158
+ updates[key] = lsonToJson(liveblocksStatePart);
159
159
  }
160
160
  }
161
161
  });
File without changes
@@ -79,7 +79,7 @@ function mappingToFunctionIsNotAllowed(key) {
79
79
 
80
80
  var patchImmutableObject = client.internals.patchImmutableObject,
81
81
  patchLiveObjectKey = client.internals.patchLiveObjectKey,
82
- liveNodeToJson = client.internals.liveNodeToJson;
82
+ lsonToJson = client.internals.lsonToJson;
83
83
  var ACTION_TYPES = {
84
84
  ENTER: "@@LIVEBLOCKS/ENTER",
85
85
  LEAVE: "@@LIVEBLOCKS/LEAVE",
@@ -224,7 +224,7 @@ var internalEnhancer = function internalEnhancer(options) {
224
224
  updates[_key] = storageInitialState[_key];
225
225
  patchLiveObjectKey(root, _key, undefined, storageInitialState[_key]);
226
226
  } else {
227
- updates[_key] = liveNodeToJson(liveblocksStatePart);
227
+ updates[_key] = lsonToJson(liveblocksStatePart);
228
228
  }
229
229
  }
230
230
  });
package/package.json CHANGED
@@ -1,19 +1,19 @@
1
1
  {
2
2
  "name": "@liveblocks/redux",
3
- "version": "0.15.11",
3
+ "version": "0.16.2",
4
4
  "sideEffects": false,
5
- "description": "",
6
- "main": "./lib/index.js",
7
- "types": "./lib/index.d.ts",
5
+ "description": "A store enhancer to integrate Liveblocks into Redux stores.",
6
+ "main": "./index.js",
7
+ "types": "./index.d.ts",
8
8
  "files": [
9
- "lib/"
9
+ "**"
10
10
  ],
11
11
  "exports": {
12
12
  ".": {
13
- "types": "./lib/index.d.ts",
14
- "module": "./lib/esm/index.js",
15
- "import": "./lib/esm/index.mjs",
16
- "default": "./lib/index.js"
13
+ "types": "./index.d.ts",
14
+ "module": "./esm/index.js",
15
+ "import": "./esm/index.mjs",
16
+ "default": "./index.js"
17
17
  }
18
18
  },
19
19
  "keywords": [
@@ -25,7 +25,7 @@
25
25
  "collaborative"
26
26
  ],
27
27
  "scripts": {
28
- "build": "rollup -c",
28
+ "build": "rollup -c && cp ./package.json ./README.md ./lib",
29
29
  "test": "jest --watch",
30
30
  "dtslint": "dtslint --localTs node_modules/typescript/lib --expectOnly types"
31
31
  },
@@ -36,7 +36,7 @@
36
36
  "directory": "packages/liveblocks-redux"
37
37
  },
38
38
  "peerDependencies": {
39
- "@liveblocks/client": "0.15.11",
39
+ "@liveblocks/client": "0.16.2",
40
40
  "redux": "^4"
41
41
  },
42
42
  "devDependencies": {