github liveblocks/liveblocks v3.25.0
3.25.0

2 hours ago

@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 now readonly, 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 hasThreads query filter to getRooms() and iterRooms(). Use true
    or false to filter rooms with or without threads, or "unresolved" or
    "resolved" to filter by thread state.

@liveblocks/react

  • Add reload() to useInboxNotifications() to refresh notifications immediately.
  • Fix inbox notifications remaining visible after room access is revoked or a
    room is deleted.

Don't miss a new liveblocks release

NewReleases is sending notifications on new releases.