Changelogv1.10.0
v1.10.0
This release introduces Notifications (and unread indicators) for Comments.
create-liveblocks-app
- Add
createLiveblocksContextand Notifications to--init. - Move resolver options from
createRoomContexttocreateClientand addresolveRoomsInfoto the list of resolvers.
@liveblocks/client
- Add options to
createClient:resolveUsers,resolveMentionSuggestions(both were previously defined oncreateRoomContextfrom@liveblocks/react), and the newresolveRoomsInfo.
@liveblocks/react
- Add new
LiveblocksContextaccessible withcreateLiveblocksContext, similarly tocreateRoomContext. This context is meant to live at the root since it handles things outside of rooms, like notifications. It containsLiveblocksProvider,useUser,useRoomInfo,useInboxNotifications,useUnreadInboxNotificationsCount,useMarkInboxNotificationAsRead, anduseMarkAllInboxNotificationsAsRead. - Add new hooks to
createRoomContext:useMarkThreadAsRead,useThreadSubscription,useRoomInfo,useRoomNotificationSettings, anduseUpdateRoomNotificationSettings. - Make some hooks usable interchangeably between
createLiveblocksContextandcreateRoomContext:useUser, anduseRoomInfo.
@liveblocks/react-comments
- Add new default components:
InboxNotificationandInboxNotificationList. - Add unread indicators to the default
Threadcomponent. - Support "@" in mentions. (e.g.
@user@email.comis now a valid mention and will triggerresolveMentionSuggestionswith"user@email.com")
@liveblocks/node
- Add the Notifications REST APIs as fully typed methods. (includes
getInboxNotification,getRoomNotificationSettings,updateRoomNotificationSettings, anddeleteRoomNotificationSettingsmethods) - Add notification webhook event:
NotificationEvent.