@liveblocks/client 0.14.3 → 0.14.4

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/lib/cjs/room.js CHANGED
@@ -1030,6 +1030,7 @@ function createRoom(options, context) {
1030
1030
  const state = defaultState(options.defaultPresence, options.defaultStorageRoot);
1031
1031
  const machine = makeStateMachine(state, context);
1032
1032
  const room = {
1033
+ id: context.room,
1033
1034
  /////////////
1034
1035
  // Core //
1035
1036
  /////////////
@@ -167,6 +167,10 @@ export declare type OthersEvent<T extends Presence = Presence> = {
167
167
  type: "reset";
168
168
  };
169
169
  export declare type Room = {
170
+ /**
171
+ * The id of the room.
172
+ */
173
+ readonly id: string;
170
174
  getConnectionState(): ConnectionState;
171
175
  subscribe: {
172
176
  /**
package/lib/esm/room.js CHANGED
@@ -1025,6 +1025,7 @@ export function createRoom(options, context) {
1025
1025
  const state = defaultState(options.defaultPresence, options.defaultStorageRoot);
1026
1026
  const machine = makeStateMachine(state, context);
1027
1027
  const room = {
1028
+ id: context.room,
1028
1029
  /////////////
1029
1030
  // Core //
1030
1031
  /////////////
@@ -167,6 +167,10 @@ export declare type OthersEvent<T extends Presence = Presence> = {
167
167
  type: "reset";
168
168
  };
169
169
  export declare type Room = {
170
+ /**
171
+ * The id of the room.
172
+ */
173
+ readonly id: string;
170
174
  getConnectionState(): ConnectionState;
171
175
  subscribe: {
172
176
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@liveblocks/client",
3
- "version": "0.14.3",
3
+ "version": "0.14.4",
4
4
  "description": "",
5
5
  "main": "./lib/cjs/index.js",
6
6
  "module": "./lib/esm/index.js",