@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.
@@ -1 +1 @@
1
- b526e5e7b85bbb62bc81e1ed2fe6fb7e71aa7cc4
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(): ImmutableList;
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, ImmutableList as e, ImmutableMap as f, ImmutableObject as g, ImmutableRef as h, JsonObject as i, LiveStructure as j, Lson as k, LsonObject as l, asArrayWithLegacyMethods as m, LiveNode as n, Resolve as o, RoomInitializers as p, ToImmutable as q, isJsonArray as r, isJsonObject as s, isJsonScalar as t };
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-29762efc.js';
2
- export { B as BaseUserMeta, d as BroadcastOptions, a as Client, H as History, I as Immutable, e as ImmutableList, f as ImmutableMap, g as ImmutableObject, h as ImmutableRef, J as Json, i as JsonObject, L as LiveList, b as LiveMap, c as LiveObject, j as LiveStructure, k as Lson, l as LsonObject, O as Others, R as Room, S as StorageUpdate, U as User } from './index-29762efc.js';
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-beta3" : "dev"}`
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 { i as JsonObject, J as Json, B as BaseUserMeta, k as Lson, l as LsonObject, c as LiveObject, S as StorageUpdate } from './index-29762efc.js';
2
- export { n as LiveNode, o as Resolve, p as RoomInitializers, q as ToImmutable, T as ToJson, W as WebsocketCloseCodes, m as asArrayWithLegacyMethods, r as isJsonArray, s as isJsonObject, t as isJsonScalar } from './index-29762efc.js';
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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@liveblocks/client",
3
- "version": "0.18.0-beta3",
3
+ "version": "0.18.0",
4
4
  "description": "A client that lets you interact with Liveblocks servers.",
5
5
  "main": "./index.js",
6
6
  "module": "./index.mjs",