@liveblocks/client 0.18.0-beta3 → 0.18.0
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/.built-by-link-script +1 -1
- package/{index-29762efc.d.ts → index-2601cea5.d.ts} +2 -3
- package/index.d.ts +2 -2
- package/index.js +1 -1
- package/internal.d.ts +2 -2
- package/package.json +1 -1
package/.built-by-link-script
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
ebe9946f6d9eb1239fe6e5030f0513b345984c2f
|
|
@@ -191,7 +191,6 @@ declare type ImmutableObject = {
|
|
|
191
191
|
readonly [key: string]: Immutable | undefined;
|
|
192
192
|
};
|
|
193
193
|
declare type ImmutableMap = ReadonlyMap<string, Immutable>;
|
|
194
|
-
declare type ImmutableRef = Exclude<Immutable, Scalar>;
|
|
195
194
|
/**
|
|
196
195
|
* Helper type to convert any valid Lson type to the equivalent Json type.
|
|
197
196
|
*
|
|
@@ -319,7 +318,7 @@ declare class LiveList<TItem extends Lson> extends AbstractCrdt {
|
|
|
319
318
|
*/
|
|
320
319
|
some(predicate: (value: TItem, index: number) => unknown): boolean;
|
|
321
320
|
[Symbol.iterator](): IterableIterator<TItem>;
|
|
322
|
-
toImmutable():
|
|
321
|
+
toImmutable(): readonly ToImmutable<TItem>[];
|
|
323
322
|
}
|
|
324
323
|
|
|
325
324
|
declare type BaseUserMeta = {
|
|
@@ -867,4 +866,4 @@ declare enum WebsocketCloseCodes {
|
|
|
867
866
|
CLOSE_WITHOUT_RETRY = 4999
|
|
868
867
|
}
|
|
869
868
|
|
|
870
|
-
export { BaseUserMeta as B, ClientOptions as C, History as H, Immutable as I, Json as J, LiveList as L, Others as O, Room as R, StorageUpdate as S, ToJson as T, User as U, WebsocketCloseCodes as W, Client as a, LiveMap as b, LiveObject as c, BroadcastOptions as d,
|
|
869
|
+
export { BaseUserMeta as B, ClientOptions as C, History as H, Immutable as I, Json as J, LiveList as L, Others as O, Room as R, StorageUpdate as S, ToJson as T, User as U, WebsocketCloseCodes as W, Client as a, LiveMap as b, LiveObject as c, BroadcastOptions as d, JsonObject as e, LiveStructure as f, Lson as g, LsonObject as h, asArrayWithLegacyMethods as i, LiveNode as j, Resolve as k, RoomInitializers as l, ToImmutable as m, isJsonArray as n, isJsonObject as o, isJsonScalar as p };
|
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as ClientOptions, a as Client } from './index-
|
|
2
|
-
export { B as BaseUserMeta, d as BroadcastOptions, a as Client, H as History, I as Immutable,
|
|
1
|
+
import { C as ClientOptions, a as Client } from './index-2601cea5.js';
|
|
2
|
+
export { B as BaseUserMeta, d as BroadcastOptions, a as Client, H as History, I as Immutable, J as Json, e as JsonObject, L as LiveList, b as LiveMap, c as LiveObject, f as LiveStructure, g as Lson, h as LsonObject, O as Others, R as Room, S as StorageUpdate, U as User } from './index-2601cea5.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Create a client that will be responsible to communicate with liveblocks servers.
|
package/index.js
CHANGED
|
@@ -1322,7 +1322,7 @@ function prepareCreateWebSocket(liveblocksServer, WebSocketPolyfill) {
|
|
|
1322
1322
|
const ws = WebSocketPolyfill || WebSocket;
|
|
1323
1323
|
return (token) => {
|
|
1324
1324
|
return new ws(
|
|
1325
|
-
`${liveblocksServer}/?token=${token}&version=${true ? "0.18.0
|
|
1325
|
+
`${liveblocksServer}/?token=${token}&version=${true ? "0.18.0" : "dev"}`
|
|
1326
1326
|
);
|
|
1327
1327
|
};
|
|
1328
1328
|
}
|
package/internal.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { e as JsonObject, J as Json, B as BaseUserMeta, g as Lson, h as LsonObject, c as LiveObject, S as StorageUpdate } from './index-2601cea5.js';
|
|
2
|
+
export { j as LiveNode, k as Resolve, l as RoomInitializers, m as ToImmutable, T as ToJson, W as WebsocketCloseCodes, i as asArrayWithLegacyMethods, n as isJsonArray, o as isJsonObject, p as isJsonScalar } from './index-2601cea5.js';
|
|
3
3
|
|
|
4
4
|
declare enum OpCode {
|
|
5
5
|
INIT = 0,
|