@liveblocks/core 3.13.0-vincent2 → 3.13.0-vincent3

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.13.0-vincent2";
9
+ var PKG_VERSION = "3.13.0-vincent3";
10
10
  var PKG_FORMAT = "cjs";
11
11
 
12
12
  // src/dupe-detection.ts
@@ -3094,6 +3094,8 @@ var ServerMsgCode = Object.freeze({
3094
3094
  // Only sent in V7
3095
3095
  STORAGE_CHUNK: 210,
3096
3096
  // Used in V8+
3097
+ STORAGE_STREAM_END: 211,
3098
+ // Used in V8+
3097
3099
  UPDATE_STORAGE: 201,
3098
3100
  // For Yjs Docs
3099
3101
  UPDATE_YDOC: 300,
@@ -9540,13 +9542,12 @@ function createRoom(options, config) {
9540
9542
  updates.others.push(onRoomStateMessage(message));
9541
9543
  break;
9542
9544
  }
9543
- case ServerMsgCode.STORAGE_CHUNK: {
9545
+ case ServerMsgCode.STORAGE_CHUNK:
9544
9546
  partialNodes.append(compactNodesToNodeStream(message.nodes));
9545
- if (message.done) {
9546
- processInitialStorage(partialNodes.clear());
9547
- }
9548
9547
  break;
9549
- }
9548
+ case ServerMsgCode.STORAGE_STREAM_END:
9549
+ processInitialStorage(partialNodes.clear());
9550
+ break;
9550
9551
  case ServerMsgCode.UPDATE_STORAGE: {
9551
9552
  const applyResult = applyOps(
9552
9553
  message.ops,