github liveblocks/liveblocks v1.10.0-beta1
1.10.0-beta1

latest releases: v2.12.2, v2.12.1-test3, v2.12.1-test2...
pre-release9 months ago

This release introduces Notifications (and unread indicators) for Comments.

@liveblocks/client

  • Add options to createClient: resolveUsers, resolveMentionSuggestions
    (both were previously defined on createRoomContext from
    @liveblocks/react), and the new resolveRoomsInfo.

@liveblocks/react

  • Add new LiveblocksContext accessible with createLiveblocksContext,
    similarly to createRoomContext. This context is meant to live at the root
    since it handles things outside of rooms, like notifications. It contains
    LiveblocksProvider, useUser, useRoomInfo, useInboxNotifications,
    useUnreadInboxNotificationsCount, useMarkInboxNotificationAsRead, and
    useMarkAllInboxNotificationsAsRead.
  • Add new hooks to createRoomContext: useMarkThreadAsRead,
    useThreadSubscription, useRoomInfo, useRoomNotificationSettings, and
    useUpdateRoomNotificationSettings.
  • Make some hooks usable interchangeably between createLiveblocksContext and
    createRoomContext: useUser, and useRoomInfo.

@liveblocks/react-comments

  • Add new default components: InboxNotification and InboxNotificationList.
  • Add unread indicators to the default Thread component.

@liveblocks/node

  • Add the Notifications REST APIs as fully typed methods. (includes
    getInboxNotification, getRoomNotificationSettings,
    updateRoomNotificationSettings, and deleteRoomNotificationSettings
    methods)
  • Add email notification webhook event for threads:
    ThreadEmailNotificationEvent.

Don't miss a new liveblocks release

NewReleases is sending notifications on new releases.