@liveblocks/core 1.11.0-test1 → 1.11.1

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.mts CHANGED
@@ -1349,7 +1349,7 @@ declare type OthersEvent<TPresence extends JsonObject, TUserMeta extends BaseUse
1349
1349
  }>;
1350
1350
 
1351
1351
  declare type PartialNullable<T> = {
1352
- [P in keyof T]?: T[P] | null | undefined;
1352
+ [P in keyof T]?: T[P] | null;
1353
1353
  };
1354
1354
 
1355
1355
  declare type RoomThreadsNotificationSettings = "all" | "replies_and_mentions" | "none";
package/dist/index.d.ts CHANGED
@@ -1349,7 +1349,7 @@ declare type OthersEvent<TPresence extends JsonObject, TUserMeta extends BaseUse
1349
1349
  }>;
1350
1350
 
1351
1351
  declare type PartialNullable<T> = {
1352
- [P in keyof T]?: T[P] | null | undefined;
1352
+ [P in keyof T]?: T[P] | null;
1353
1353
  };
1354
1354
 
1355
1355
  declare type RoomThreadsNotificationSettings = "all" | "replies_and_mentions" | "none";
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 = "1.11.0-test1";
9
+ var PKG_VERSION = "1.11.1";
10
10
  var PKG_FORMAT = "cjs";
11
11
 
12
12
  // src/dupe-detection.ts
@@ -782,9 +782,13 @@ function logPrematureErrorOrCloseEvent(e) {
782
782
  };
783
783
  }
784
784
  function logCloseEvent(event) {
785
+ const details = [`code: ${event.code}`];
786
+ if (event.reason) {
787
+ details.push(`reason: ${event.reason}`);
788
+ }
785
789
  return (ctx) => {
786
790
  warn(
787
- `Connection to Liveblocks websocket server closed (code: ${event.code}). Retrying in ${ctx.backoffDelay}ms.`
791
+ `Connection to Liveblocks websocket server closed (${details.join(", ")}). Retrying in ${ctx.backoffDelay}ms.`
788
792
  );
789
793
  };
790
794
  }