@liveblocks/core 3.15.1-rc4 → 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.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.15.1-rc4";
9
+ var PKG_VERSION = "3.15.2";
10
10
  var PKG_FORMAT = "cjs";
11
11
 
12
12
  // src/dupe-detection.ts
@@ -10298,9 +10298,10 @@ function createRoom(options, config) {
10298
10298
  getOthers_forDevTools: () => others_forDevTools.get(),
10299
10299
  // prettier-ignore
10300
10300
  simulate: {
10301
- // These exist only for our E2E testing app
10301
+ // These exist only for our E2E testing app and unit tests
10302
10302
  explicitClose: (event) => managedSocket._privateSendMachineEvent({ type: "EXPLICIT_SOCKET_CLOSE", event }),
10303
- rawSend: (data) => managedSocket.send(data)
10303
+ rawSend: (data) => managedSocket.send(data),
10304
+ incomingMessage: (data) => handleServerMessage(new MessageEvent("message", { data }))
10304
10305
  },
10305
10306
  attachmentUrlsStore: httpClient.getOrCreateAttachmentUrlsStore(roomId)
10306
10307
  },
@@ -10492,7 +10493,7 @@ function makeAuthDelegateForRoom(roomId, authManager) {
10492
10493
  return authManager.getAuthValue({ requestedScope: "room:read", roomId });
10493
10494
  };
10494
10495
  }
10495
- function makeCreateSocketDelegateForRoom(roomId, baseUrl, WebSocketPolyfill, engine) {
10496
+ function makeCreateSocketDelegateForRoom(roomId, baseUrl, WebSocketPolyfill) {
10496
10497
  return (authValue) => {
10497
10498
  const ws = _nullishCoalesce(WebSocketPolyfill, () => ( (typeof WebSocket === "undefined" ? void 0 : WebSocket)));
10498
10499
  if (ws === void 0) {
@@ -10512,9 +10513,6 @@ function makeCreateSocketDelegateForRoom(roomId, baseUrl, WebSocketPolyfill, eng
10512
10513
  return assertNever(authValue, "Unhandled case");
10513
10514
  }
10514
10515
  url2.searchParams.set("version", PKG_VERSION || "dev");
10515
- if (engine !== void 0) {
10516
- url2.searchParams.set("e", String(engine));
10517
- }
10518
10516
  return new ws(url2.toString());
10519
10517
  };
10520
10518
  }
@@ -10638,8 +10636,7 @@ function createClient(options) {
10638
10636
  createSocket: makeCreateSocketDelegateForRoom(
10639
10637
  roomId,
10640
10638
  baseUrl,
10641
- _optionalChain([clientOptions, 'access', _244 => _244.polyfills, 'optionalAccess', _245 => _245.WebSocket]),
10642
- options2.engine
10639
+ _optionalChain([clientOptions, 'access', _244 => _244.polyfills, 'optionalAccess', _245 => _245.WebSocket])
10643
10640
  ),
10644
10641
  authenticate: makeAuthDelegateForRoom(roomId, authManager)
10645
10642
  })),