@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 +6 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -7
- package/dist/index.d.ts +6 -7
- package/dist/index.js +6 -9
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
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
|
-
*
|
|
2085
|
-
*
|
|
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
|
|
2398
|
-
*
|
|
2399
|
-
*
|
|
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
|
/**
|
|
@@ -3782,6 +3780,7 @@ type PrivateRoomApi = {
|
|
|
3782
3780
|
simulate: {
|
|
3783
3781
|
explicitClose(event: IWebSocketCloseEvent): void;
|
|
3784
3782
|
rawSend(data: string): void;
|
|
3783
|
+
incomingMessage(data: string): void;
|
|
3785
3784
|
};
|
|
3786
3785
|
attachmentUrlsStore: BatchStore<string, string>;
|
|
3787
3786
|
};
|
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
|
-
*
|
|
2085
|
-
*
|
|
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
|
|
2398
|
-
*
|
|
2399
|
-
*
|
|
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
|
/**
|
|
@@ -3782,6 +3780,7 @@ type PrivateRoomApi = {
|
|
|
3782
3780
|
simulate: {
|
|
3783
3781
|
explicitClose(event: IWebSocketCloseEvent): void;
|
|
3784
3782
|
rawSend(data: string): void;
|
|
3783
|
+
incomingMessage(data: string): void;
|
|
3785
3784
|
};
|
|
3786
3785
|
attachmentUrlsStore: BatchStore<string, string>;
|
|
3787
3786
|
};
|
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.
|
|
9
|
+
var PKG_VERSION = "3.15.2";
|
|
10
10
|
var PKG_FORMAT = "esm";
|
|
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
|
|
10496
|
+
function makeCreateSocketDelegateForRoom(roomId, baseUrl, WebSocketPolyfill) {
|
|
10496
10497
|
return (authValue) => {
|
|
10497
10498
|
const ws = 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
|
-
clientOptions.polyfills?.WebSocket
|
|
10642
|
-
options2.engine
|
|
10639
|
+
clientOptions.polyfills?.WebSocket
|
|
10643
10640
|
),
|
|
10644
10641
|
authenticate: makeAuthDelegateForRoom(roomId, authManager)
|
|
10645
10642
|
},
|