@liveblocks/core 2.0.0-alpha2 → 2.0.0-alpha3

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 = "2.0.0-alpha2";
9
+ var PKG_VERSION = "2.0.0-alpha3";
10
10
  var PKG_FORMAT = "esm";
11
11
 
12
12
  // src/dupe-detection.ts
@@ -2591,7 +2591,7 @@ function compareNodePosition(itemA, itemB) {
2591
2591
  return posA === posB ? 0 : posA < posB ? -1 : 1;
2592
2592
  }
2593
2593
  var LiveList = class _LiveList extends AbstractCrdt {
2594
- constructor(items = []) {
2594
+ constructor(items) {
2595
2595
  super();
2596
2596
  this._items = [];
2597
2597
  this._implicitlyDeletedItems = /* @__PURE__ */ new WeakSet();
@@ -2607,7 +2607,7 @@ var LiveList = class _LiveList extends AbstractCrdt {
2607
2607
  }
2608
2608
  /** @internal */
2609
2609
  static _deserialize([id], parentToChildren, pool) {
2610
- const list = new _LiveList();
2610
+ const list = new _LiveList([]);
2611
2611
  list._attach(id, pool);
2612
2612
  const children = parentToChildren.get(id);
2613
2613
  if (children === void 0) {
@@ -4481,7 +4481,7 @@ function creationOpToLson(op) {
4481
4481
  case 7 /* CREATE_MAP */:
4482
4482
  return new LiveMap();
4483
4483
  case 2 /* CREATE_LIST */:
4484
- return new LiveList();
4484
+ return new LiveList([]);
4485
4485
  default:
4486
4486
  return assertNever(op, "Unknown creation Op");
4487
4487
  }