@liveblocks/client, @liveblocks/react, and @liveblocks/node
-
Potentially breaking: Plain JSON arrays and tuples in the return types of
.toJSON(),useStorage()selectors, and
getStorageDocument(roomId, "json")are nowreadonly, which is consistent
with all other values these APIs return.type Storage = { items: LiveList<string>; tags: string[]; }; const json = root.toJSON(); json.items; // ^^^^^ readonly string[] (✅ was already correct) json.tags; // ^^^^ before: string[] (❌ not consistent) // now: readonly string[] (✅ consistent)
@liveblocks/node
- Add
markInboxNotificationAsRead()method. - Add a
hasThreadsquery filter togetRooms()anditerRooms(). Usetrue
orfalseto filter rooms with or without threads, or"unresolved"or
"resolved"to filter by thread state.
@liveblocks/react
- Add
reload()touseInboxNotifications()to refresh notifications immediately. - Fix inbox notifications remaining visible after room access is revoked or a
room is deleted.