@liveblocks/core 0.18.5 → 0.19.0-beta0
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.ts +2 -2
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -238,7 +238,7 @@ declare type ImmutableMap = ReadonlyMap<string, Immutable>;
|
|
|
238
238
|
* ToImmutable<string> // string
|
|
239
239
|
* ToImmutable<string | LiveList<number>> // string | readonly number[]
|
|
240
240
|
* ToImmutable<LiveMap<string, LiveList<number>>>
|
|
241
|
-
* //
|
|
241
|
+
* // ReadonlyMap<string, readonly number[]>
|
|
242
242
|
* ToImmutable<LiveObject<{ a: number, b: LiveList<string>, c?: number }>>
|
|
243
243
|
* // { readonly a: null, readonly b: readonly string[], readonly c?: number }
|
|
244
244
|
*
|
|
@@ -1324,7 +1324,7 @@ declare function throwUsageError(message: string): void;
|
|
|
1324
1324
|
declare function errorIf(condition: unknown, message: string): void;
|
|
1325
1325
|
|
|
1326
1326
|
declare function lsonToJson(value: Lson): Json;
|
|
1327
|
-
declare function patchLiveObjectKey<O extends LsonObject, K extends keyof O, V extends
|
|
1327
|
+
declare function patchLiveObjectKey<O extends LsonObject, K extends keyof O, V extends Json>(liveObject: LiveObject<O>, key: K, prev?: V, next?: V): void;
|
|
1328
1328
|
declare function legacy_patchImmutableObject<S extends JsonObject>(state: S, updates: StorageUpdate[]): S;
|
|
1329
1329
|
|
|
1330
1330
|
declare function makePosition(before?: string, after?: string): string;
|
package/dist/index.js
CHANGED
|
@@ -3793,7 +3793,7 @@ function prepareCreateWebSocket(liveblocksServer, WebSocketPolyfill) {
|
|
|
3793
3793
|
const ws = WebSocketPolyfill || WebSocket;
|
|
3794
3794
|
return (token) => {
|
|
3795
3795
|
return new ws(
|
|
3796
|
-
`${liveblocksServer}/?token=${token}&version=${true ? "0.
|
|
3796
|
+
`${liveblocksServer}/?token=${token}&version=${true ? "0.19.0-beta0" : "dev"}`
|
|
3797
3797
|
);
|
|
3798
3798
|
};
|
|
3799
3799
|
}
|