@liveblocks/core 2.4.0-test1 → 2.4.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.d.mts CHANGED
@@ -1741,7 +1741,7 @@ declare type CommentsApi<M extends BaseMetadata> = {
1741
1741
  requestedAt: Date;
1742
1742
  }>;
1743
1743
  /**
1744
- * Returns the modified and deleted threads and their associated inbox notifications since the requested date.
1744
+ * Returns the updated and deleted threads and their associated inbox notifications since the requested date.
1745
1745
  *
1746
1746
  * @example
1747
1747
  * const result = await room.getThreads();
@@ -1752,11 +1752,11 @@ declare type CommentsApi<M extends BaseMetadata> = {
1752
1752
  since: Date;
1753
1753
  }): Promise<{
1754
1754
  threads: {
1755
- modified: ThreadData<M>[];
1755
+ updated: ThreadData<M>[];
1756
1756
  deleted: ThreadDeleteInfo[];
1757
1757
  };
1758
1758
  inboxNotifications: {
1759
- modified: InboxNotificationData[];
1759
+ updated: InboxNotificationData[];
1760
1760
  deleted: InboxNotificationDeleteInfo[];
1761
1761
  };
1762
1762
  requestedAt: Date;
@@ -2435,7 +2435,7 @@ declare type NotificationsApi<M extends BaseMetadata> = {
2435
2435
  requestedAt: Date;
2436
2436
  }>;
2437
2437
  /**
2438
- * Gets the modified and deleted inbox notifications and their associated threads since the requested date.
2438
+ * Gets the updated and deleted inbox notifications and their associated threads since the requested date.
2439
2439
  *
2440
2440
  * @example
2441
2441
  * const result = await client.getInboxNotifications();
@@ -2446,11 +2446,11 @@ declare type NotificationsApi<M extends BaseMetadata> = {
2446
2446
  since: Date;
2447
2447
  }): Promise<{
2448
2448
  inboxNotifications: {
2449
- modified: InboxNotificationData[];
2449
+ updated: InboxNotificationData[];
2450
2450
  deleted: InboxNotificationDeleteInfo[];
2451
2451
  };
2452
2452
  threads: {
2453
- modified: ThreadData<M>[];
2453
+ updated: ThreadData<M>[];
2454
2454
  deleted: ThreadDeleteInfo[];
2455
2455
  };
2456
2456
  requestedAt: Date;
package/dist/index.d.ts CHANGED
@@ -1741,7 +1741,7 @@ declare type CommentsApi<M extends BaseMetadata> = {
1741
1741
  requestedAt: Date;
1742
1742
  }>;
1743
1743
  /**
1744
- * Returns the modified and deleted threads and their associated inbox notifications since the requested date.
1744
+ * Returns the updated and deleted threads and their associated inbox notifications since the requested date.
1745
1745
  *
1746
1746
  * @example
1747
1747
  * const result = await room.getThreads();
@@ -1752,11 +1752,11 @@ declare type CommentsApi<M extends BaseMetadata> = {
1752
1752
  since: Date;
1753
1753
  }): Promise<{
1754
1754
  threads: {
1755
- modified: ThreadData<M>[];
1755
+ updated: ThreadData<M>[];
1756
1756
  deleted: ThreadDeleteInfo[];
1757
1757
  };
1758
1758
  inboxNotifications: {
1759
- modified: InboxNotificationData[];
1759
+ updated: InboxNotificationData[];
1760
1760
  deleted: InboxNotificationDeleteInfo[];
1761
1761
  };
1762
1762
  requestedAt: Date;
@@ -2435,7 +2435,7 @@ declare type NotificationsApi<M extends BaseMetadata> = {
2435
2435
  requestedAt: Date;
2436
2436
  }>;
2437
2437
  /**
2438
- * Gets the modified and deleted inbox notifications and their associated threads since the requested date.
2438
+ * Gets the updated and deleted inbox notifications and their associated threads since the requested date.
2439
2439
  *
2440
2440
  * @example
2441
2441
  * const result = await client.getInboxNotifications();
@@ -2446,11 +2446,11 @@ declare type NotificationsApi<M extends BaseMetadata> = {
2446
2446
  since: Date;
2447
2447
  }): Promise<{
2448
2448
  inboxNotifications: {
2449
- modified: InboxNotificationData[];
2449
+ updated: InboxNotificationData[];
2450
2450
  deleted: InboxNotificationDeleteInfo[];
2451
2451
  };
2452
2452
  threads: {
2453
- modified: ThreadData<M>[];
2453
+ updated: ThreadData<M>[];
2454
2454
  deleted: ThreadDeleteInfo[];
2455
2455
  };
2456
2456
  requestedAt: Date;
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 = "2.4.0-test1";
9
+ var PKG_VERSION = "2.4.0";
10
10
  var PKG_FORMAT = "cjs";
11
11
 
12
12
  // src/dupe-detection.ts
@@ -2094,11 +2094,11 @@ function createNotificationsApi({
2094
2094
  });
2095
2095
  return {
2096
2096
  threads: {
2097
- modified: json.threads.map(convertToThreadData),
2097
+ updated: json.threads.map(convertToThreadData),
2098
2098
  deleted: json.deletedThreads.map(convertToThreadDeleteInfo)
2099
2099
  },
2100
2100
  inboxNotifications: {
2101
- modified: json.inboxNotifications.map(convertToInboxNotificationData),
2101
+ updated: json.inboxNotifications.map(convertToInboxNotificationData),
2102
2102
  deleted: json.deletedInboxNotifications.map(
2103
2103
  convertToInboxNotificationDeleteInfo
2104
2104
  )
@@ -5189,11 +5189,11 @@ function createCommentsApi(roomId, getAuthValue, fetchClientApi) {
5189
5189
  const json = await response.json();
5190
5190
  return {
5191
5191
  threads: {
5192
- modified: json.data.map(convertToThreadData),
5192
+ updated: json.data.map(convertToThreadData),
5193
5193
  deleted: json.deletedThreads.map(convertToThreadDeleteInfo)
5194
5194
  },
5195
5195
  inboxNotifications: {
5196
- modified: json.inboxNotifications.map(convertToInboxNotificationData),
5196
+ updated: json.inboxNotifications.map(convertToInboxNotificationData),
5197
5197
  deleted: json.deletedInboxNotifications.map(
5198
5198
  convertToInboxNotificationDeleteInfo
5199
5199
  )
@@ -5203,11 +5203,11 @@ function createCommentsApi(roomId, getAuthValue, fetchClientApi) {
5203
5203
  } else if (response.status === 404) {
5204
5204
  return {
5205
5205
  threads: {
5206
- modified: [],
5206
+ updated: [],
5207
5207
  deleted: []
5208
5208
  },
5209
5209
  inboxNotifications: {
5210
- modified: [],
5210
+ updated: [],
5211
5211
  deleted: []
5212
5212
  },
5213
5213
  requestedAt: /* @__PURE__ */ new Date()