@liveblocks/core 3.14.0-pre5 → 3.14.0-pre6

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.cjs 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 = "3.14.0-pre5";
9
+ var PKG_VERSION = "3.14.0-pre6";
10
10
  var PKG_FORMAT = "cjs";
11
11
 
12
12
  // src/dupe-detection.ts
@@ -6544,7 +6544,9 @@ var LiveList = class _LiveList extends AbstractCrdt {
6544
6544
  item._toOps(this._id, parentKey2),
6545
6545
  void 0
6546
6546
  );
6547
- ops.push(...childOps);
6547
+ for (const childOp of childOps) {
6548
+ ops.push(childOp);
6549
+ }
6548
6550
  }
6549
6551
  return ops;
6550
6552
  }
@@ -7545,7 +7547,9 @@ var LiveMap = class _LiveMap extends AbstractCrdt {
7545
7547
  };
7546
7548
  ops.push(op);
7547
7549
  for (const [key, value] of this.#map) {
7548
- ops.push(...value._toOps(this._id, key));
7550
+ for (const childOp of value._toOps(this._id, key)) {
7551
+ ops.push(childOp);
7552
+ }
7549
7553
  }
7550
7554
  return ops;
7551
7555
  }
@@ -7944,7 +7948,9 @@ var LiveObject = (_class2 = class _LiveObject extends AbstractCrdt {
7944
7948
  ops.push(op);
7945
7949
  for (const [key, value] of this.#map) {
7946
7950
  if (isLiveNode(value)) {
7947
- ops.push(...value._toOps(this._id, key));
7951
+ for (const childOp of value._toOps(this._id, key)) {
7952
+ ops.push(childOp);
7953
+ }
7948
7954
  } else {
7949
7955
  op.data[key] = value;
7950
7956
  }
@@ -8113,7 +8119,9 @@ var LiveObject = (_class2 = class _LiveObject extends AbstractCrdt {
8113
8119
  for (const key in op.data) {
8114
8120
  const oldValue = this.#map.get(key);
8115
8121
  if (isLiveNode(oldValue)) {
8116
- reverse.push(...oldValue._toOps(id, key));
8122
+ for (const childOp of oldValue._toOps(id, key)) {
8123
+ reverse.push(childOp);
8124
+ }
8117
8125
  oldValue._detach();
8118
8126
  } else if (oldValue !== void 0) {
8119
8127
  reverseUpdate.data[key] = oldValue;
@@ -8337,7 +8345,9 @@ var LiveObject = (_class2 = class _LiveObject extends AbstractCrdt {
8337
8345
  }
8338
8346
  const oldValue = this.#map.get(key);
8339
8347
  if (isLiveNode(oldValue)) {
8340
- reverseOps.push(...oldValue._toOps(this._id, key));
8348
+ for (const childOp of oldValue._toOps(this._id, key)) {
8349
+ reverseOps.push(childOp);
8350
+ }
8341
8351
  oldValue._detach();
8342
8352
  } else if (oldValue === void 0) {
8343
8353
  reverseOps.push({ type: OpCode.DELETE_OBJECT_KEY, id: this._id, key });
@@ -8358,7 +8368,9 @@ var LiveObject = (_class2 = class _LiveObject extends AbstractCrdt {
8358
8368
  if (createCrdtOp) {
8359
8369
  this.#unackedOpsByKey.set(key, nn(createCrdtOp.opId));
8360
8370
  }
8361
- ops.push(...newAttachChildOps);
8371
+ for (const childOp of newAttachChildOps) {
8372
+ ops.push(childOp);
8373
+ }
8362
8374
  } else {
8363
8375
  updatedProps[key] = newValue;
8364
8376
  this.#unackedOpsByKey.set(key, opId);