@liveblocks/core 1.5.0-test2 → 1.5.0-test3

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
@@ -1735,8 +1735,6 @@ declare type Room<TPresence extends JsonObject, TStorage extends LsonObject, TUs
1735
1735
  */
1736
1736
  getStorageSnapshot(): LiveObject<TStorage> | null;
1737
1737
  readonly events: {
1738
- /** @deprecated Prefer `status` instead. */
1739
- readonly connection: Observable<LegacyConnectionStatus>;
1740
1738
  readonly status: Observable<Status>;
1741
1739
  readonly lostConnection: Observable<LostConnectionEvent>;
1742
1740
  readonly customEvent: Observable<RoomEventMessage<TPresence, TUserMeta, TRoomEvent>>;
package/dist/index.d.ts CHANGED
@@ -1735,8 +1735,6 @@ declare type Room<TPresence extends JsonObject, TStorage extends LsonObject, TUs
1735
1735
  */
1736
1736
  getStorageSnapshot(): LiveObject<TStorage> | null;
1737
1737
  readonly events: {
1738
- /** @deprecated Prefer `status` instead. */
1739
- readonly connection: Observable<LegacyConnectionStatus>;
1740
1738
  readonly status: Observable<Status>;
1741
1739
  readonly lostConnection: Observable<LostConnectionEvent>;
1742
1740
  readonly customEvent: Observable<RoomEventMessage<TPresence, TUserMeta, TRoomEvent>>;
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.5.0-test2";
9
+ var PKG_VERSION = "1.5.0-test3";
10
10
  var PKG_FORMAT = "cjs";
11
11
 
12
12
  // src/dupe-detection.ts
@@ -4842,7 +4842,6 @@ function createRoom(options, config) {
4842
4842
  }
4843
4843
  batchUpdates(() => {
4844
4844
  eventHub.status.notify(newStatus);
4845
- eventHub.connection.notify(newToLegacyStatus(newStatus));
4846
4845
  notifySelfChanged(doNotBatchUpdates);
4847
4846
  });
4848
4847
  }
@@ -5761,10 +5760,7 @@ ${Array.from(traces).join("\n\n")}`
5761
5760
  (others) => others.map((other, index) => userToTreeNode(`Other ${index}`, other))
5762
5761
  );
5763
5762
  const events = {
5764
- connection: eventHub.connection.observable,
5765
- // Old/deprecated API
5766
5763
  status: eventHub.status.observable,
5767
- // New/recommended API
5768
5764
  lostConnection: eventHub.lostConnection.observable,
5769
5765
  customEvent: eventHub.customEvent.observable,
5770
5766
  others: eventHub.others.observable,
@@ -5893,10 +5889,12 @@ function makeClassicSubscribeFn(events) {
5893
5889
  }
5894
5890
  case "error":
5895
5891
  return events.error.subscribe(callback);
5896
- case "connection":
5897
- return events.connection.subscribe(
5898
- callback
5892
+ case "connection": {
5893
+ const cb = callback;
5894
+ return events.status.subscribe(
5895
+ (status) => cb(newToLegacyStatus(status))
5899
5896
  );
5897
+ }
5900
5898
  case "status":
5901
5899
  return events.status.subscribe(callback);
5902
5900
  case "lost-connection":