@liveblocks/core 1.7.1 → 1.8.1

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/dist/index.mjs CHANGED
@@ -6,7 +6,7 @@ var __export = (target, all) => {
6
6
 
7
7
  // src/version.ts
8
8
  var PKG_NAME = "@liveblocks/core";
9
- var PKG_VERSION = "1.7.1";
9
+ var PKG_VERSION = "1.8.1";
10
10
  var PKG_FORMAT = "esm";
11
11
 
12
12
  // src/dupe-detection.ts
@@ -5751,7 +5751,9 @@ ${Array.from(traces).join("\n\n")}`
5751
5751
  return returnValue;
5752
5752
  }
5753
5753
  function pauseHistory() {
5754
- context.pausedHistory = [];
5754
+ if (context.pausedHistory === null) {
5755
+ context.pausedHistory = [];
5756
+ }
5755
5757
  }
5756
5758
  function resumeHistory() {
5757
5759
  const historyOps = context.pausedHistory;
@@ -6168,10 +6170,9 @@ function toPlainLson(lson) {
6168
6170
  return {
6169
6171
  liveblocksType: "LiveObject",
6170
6172
  data: Object.fromEntries(
6171
- Object.entries(lson.toObject()).map(([key, value]) => [
6172
- key,
6173
- value ? toPlainLson(value) : ""
6174
- ])
6173
+ Object.entries(lson.toObject()).flatMap(
6174
+ ([key, value]) => value !== void 0 ? [[key, toPlainLson(value)]] : []
6175
+ )
6175
6176
  )
6176
6177
  };
6177
6178
  } else if (lson instanceof LiveMap) {