@liveblocks/core 3.15.1 → 3.15.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/dist/index.d.cts CHANGED
@@ -2081,9 +2081,8 @@ type EnterOptions<P extends JsonObject = DP, S extends LsonObject = DS> = Resolv
2081
2081
  */
2082
2082
  autoConnect?: boolean;
2083
2083
  /**
2084
- * Preferred storage engine version to use when creating the room. Only
2085
- * takes effect if the room doesn't exist yet. Version 2 can support larger
2086
- * documents, is more performant, and will become the default in the future.
2084
+ * @deprecated This flag no longer has any effect and will be removed in
2085
+ * a future version. All rooms now use the v2 storage engine by default.
2087
2086
  */
2088
2087
  engine?: 1 | 2;
2089
2088
  } & PartialUnless<P, {
@@ -2394,10 +2393,9 @@ type ClientOptions<U extends BaseUserMeta = DU> = {
2394
2393
  backgroundKeepAliveTimeout?: number;
2395
2394
  polyfills?: Polyfills;
2396
2395
  /**
2397
- * @deprecated For new rooms, use `engine: 2` instead. Rooms on the v2
2398
- * Storage engine have native support for streaming. This flag will be
2399
- * removed in a future version, but will continue to work for existing engine
2400
- * v1 rooms for now.
2396
+ * @deprecated All rooms will be migrated to the v2 storage engine in the
2397
+ * future, which has native support for streaming. After that migration, this
2398
+ * flag will no longer have any effect and will be removed in a future version.
2401
2399
  */
2402
2400
  unstable_streamData?: boolean;
2403
2401
  /**
package/dist/index.d.ts CHANGED
@@ -2081,9 +2081,8 @@ type EnterOptions<P extends JsonObject = DP, S extends LsonObject = DS> = Resolv
2081
2081
  */
2082
2082
  autoConnect?: boolean;
2083
2083
  /**
2084
- * Preferred storage engine version to use when creating the room. Only
2085
- * takes effect if the room doesn't exist yet. Version 2 can support larger
2086
- * documents, is more performant, and will become the default in the future.
2084
+ * @deprecated This flag no longer has any effect and will be removed in
2085
+ * a future version. All rooms now use the v2 storage engine by default.
2087
2086
  */
2088
2087
  engine?: 1 | 2;
2089
2088
  } & PartialUnless<P, {
@@ -2394,10 +2393,9 @@ type ClientOptions<U extends BaseUserMeta = DU> = {
2394
2393
  backgroundKeepAliveTimeout?: number;
2395
2394
  polyfills?: Polyfills;
2396
2395
  /**
2397
- * @deprecated For new rooms, use `engine: 2` instead. Rooms on the v2
2398
- * Storage engine have native support for streaming. This flag will be
2399
- * removed in a future version, but will continue to work for existing engine
2400
- * v1 rooms for now.
2396
+ * @deprecated All rooms will be migrated to the v2 storage engine in the
2397
+ * future, which has native support for streaming. After that migration, this
2398
+ * flag will no longer have any effect and will be removed in a future version.
2401
2399
  */
2402
2400
  unstable_streamData?: boolean;
2403
2401
  /**
package/dist/index.js 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.15.1";
9
+ var PKG_VERSION = "3.15.2";
10
10
  var PKG_FORMAT = "esm";
11
11
 
12
12
  // src/dupe-detection.ts
@@ -10493,7 +10493,7 @@ function makeAuthDelegateForRoom(roomId, authManager) {
10493
10493
  return authManager.getAuthValue({ requestedScope: "room:read", roomId });
10494
10494
  };
10495
10495
  }
10496
- function makeCreateSocketDelegateForRoom(roomId, baseUrl, WebSocketPolyfill, engine) {
10496
+ function makeCreateSocketDelegateForRoom(roomId, baseUrl, WebSocketPolyfill) {
10497
10497
  return (authValue) => {
10498
10498
  const ws = WebSocketPolyfill ?? (typeof WebSocket === "undefined" ? void 0 : WebSocket);
10499
10499
  if (ws === void 0) {
@@ -10513,9 +10513,6 @@ function makeCreateSocketDelegateForRoom(roomId, baseUrl, WebSocketPolyfill, eng
10513
10513
  return assertNever(authValue, "Unhandled case");
10514
10514
  }
10515
10515
  url2.searchParams.set("version", PKG_VERSION || "dev");
10516
- if (engine !== void 0) {
10517
- url2.searchParams.set("e", String(engine));
10518
- }
10519
10516
  return new ws(url2.toString());
10520
10517
  };
10521
10518
  }
@@ -10639,8 +10636,7 @@ function createClient(options) {
10639
10636
  createSocket: makeCreateSocketDelegateForRoom(
10640
10637
  roomId,
10641
10638
  baseUrl,
10642
- clientOptions.polyfills?.WebSocket,
10643
- options2.engine
10639
+ clientOptions.polyfills?.WebSocket
10644
10640
  ),
10645
10641
  authenticate: makeAuthDelegateForRoom(roomId, authManager)
10646
10642
  },