@liveblocks/node 2.25.0-aiprivatebeta8 → 3.0.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/dist/index.cjs CHANGED
@@ -3,7 +3,7 @@ var _core = require('@liveblocks/core');
3
3
 
4
4
  // src/version.ts
5
5
  var PKG_NAME = "@liveblocks/node";
6
- var PKG_VERSION = "2.25.0-aiprivatebeta8";
6
+ var PKG_VERSION = "3.0.0";
7
7
  var PKG_FORMAT = "cjs";
8
8
 
9
9
  // src/client.ts
@@ -475,13 +475,6 @@ var Liveblocks = class {
475
475
  startingAfter: params.startingAfter,
476
476
  userId: params.userId,
477
477
  groupIds: params.groupIds ? params.groupIds.join(",") : void 0,
478
- // "Flatten" {metadata: {foo: "bar"}} to {"metadata.foo": "bar"}
479
- ...Object.fromEntries(
480
- Object.entries(_nullishCoalesce(params.metadata, () => ( {}))).map(([key, val]) => [
481
- `metadata.${key}`,
482
- val
483
- ])
484
- ),
485
478
  query
486
479
  };
487
480
  const res = await this.#get(path, queryParams, options);
@@ -1414,17 +1407,6 @@ var Liveblocks = class {
1414
1407
  cursor = nextCursor;
1415
1408
  }
1416
1409
  }
1417
- /**
1418
- * @deprecated Renamed to `getRoomSubscriptionSettings`
1419
- *
1420
- * Gets the user's room subscription settings.
1421
- * @param params.userId The user ID to get the room subscription settings from.
1422
- * @param params.roomId The room ID to get the room subscription settings from.
1423
- * @param options.signal (optional) An abort signal to cancel the request.
1424
- */
1425
- async getRoomNotificationSettings(params, options) {
1426
- return this.getRoomSubscriptionSettings(params, options);
1427
- }
1428
1410
  /**
1429
1411
  * Returns all room subscription settings for a user.
1430
1412
  * @param params.userId The user ID to get the room subscription settings from.
@@ -1465,18 +1447,6 @@ var Liveblocks = class {
1465
1447
  }
1466
1448
  return await res.json();
1467
1449
  }
1468
- /**
1469
- * @deprecated Renamed to `updateRoomSubscriptionSettings`
1470
- *
1471
- * Updates the user's room subscription settings.
1472
- * @param params.userId The user ID to update the room subscription settings for.
1473
- * @param params.roomId The room ID to update the room subscription settings for.
1474
- * @param params.data The new room subscription settings for the user.
1475
- * @param options.signal (optional) An abort signal to cancel the request.
1476
- */
1477
- async updateRoomNotificationSettings(params, options) {
1478
- return this.updateRoomSubscriptionSettings(params, options);
1479
- }
1480
1450
  /**
1481
1451
  * Updates the user's room subscription settings.
1482
1452
  * @param params.userId The user ID to update the room subscription settings for.
@@ -1496,17 +1466,6 @@ var Liveblocks = class {
1496
1466
  }
1497
1467
  return await res.json();
1498
1468
  }
1499
- /**
1500
- * @deprecated Renamed to `deleteRoomSubscriptionSettings`
1501
- *
1502
- * Delete the user's room subscription settings.
1503
- * @param params.userId The user ID to delete the room subscription settings from.
1504
- * @param params.roomId The room ID to delete the room subscription settings from.
1505
- * @param options.signal (optional) An abort signal to cancel the request.
1506
- */
1507
- async deleteRoomNotificationSettings(params, options) {
1508
- return this.deleteRoomSubscriptionSettings(params, options);
1509
- }
1510
1469
  /**
1511
1470
  * Delete the user's room subscription settings.
1512
1471
  * @param params.userId The user ID to delete the room subscription settings from.
@@ -1959,5 +1918,5 @@ _core.detectDupes.call(void 0, PKG_NAME, PKG_VERSION, PKG_FORMAT);
1959
1918
 
1960
1919
 
1961
1920
 
1962
- exports.LiveList = _core.LiveList; exports.LiveMap = _core.LiveMap; exports.LiveObject = _core.LiveObject; exports.Liveblocks = Liveblocks; exports.LiveblocksError = LiveblocksError; exports.WebhookHandler = WebhookHandler; exports.getMentionedIdsFromCommentBody = _core.getMentionedIdsFromCommentBody; exports.isCustomNotificationEvent = isCustomNotificationEvent; exports.isNotificationChannelEnabled = _core.isNotificationChannelEnabled; exports.isTextMentionNotificationEvent = isTextMentionNotificationEvent; exports.isThreadNotificationEvent = isThreadNotificationEvent; exports.stringifyCommentBody = _core.stringifyCommentBody;
1921
+ exports.LiveList = _core.LiveList; exports.LiveMap = _core.LiveMap; exports.LiveObject = _core.LiveObject; exports.Liveblocks = Liveblocks; exports.LiveblocksError = LiveblocksError; exports.WebhookHandler = WebhookHandler; exports.getMentionsFromCommentBody = _core.getMentionsFromCommentBody; exports.isCustomNotificationEvent = isCustomNotificationEvent; exports.isNotificationChannelEnabled = _core.isNotificationChannelEnabled; exports.isTextMentionNotificationEvent = isTextMentionNotificationEvent; exports.isThreadNotificationEvent = isThreadNotificationEvent; exports.stringifyCommentBody = _core.stringifyCommentBody;
1963
1922
  //# sourceMappingURL=index.cjs.map