v1.12.0 @liveblocks/react- Add support for custom notification kinds.
- Add new
useInboxNotificationThreadhook tocreateLiveblocksContext, which can be used to retrieve threads within thread notifications for more flexibility. - Add support for
startsWithoperator touseThreadswhen filtering based on metadata.
@liveblocks/react-comments- Add support for custom notification kinds to the
InboxNotificationcomponent via thekindsprop and theInboxNotification.Customcomponent. - Add destructive color tokens. (
--lb-destructive,--lb-destructive-foreground, and--lb-destructive-contrast)
@liveblocks/node- Add
triggerInboxNotificationmethod that lets you trigger custom notification kinds. - Enable filtering rooms by room ID in the
getRoomsmethod. This works viaquery.roomId,metadatais deprecated and is nowquery.metadata. - Add support for our query language when filtering with the
getRoomsandgetThreadsmethods. - Add support for an alternative object-based query notation to the
getRoomsandgetThreadsmethods, which supports exact matches and thestartsWithoperator.
v1.11.3 @liveblocks/client- Fixes a potential
RangeError: Maximum call stack size exceededin applications that produce many operations
@liveblocks/node- Add missing
updatedAtproperty toYDocUpdatedEventtype. (@alexlande)
- Fixes a potential
v1.11.2 create-liveblocks-app- Add support for the updated Starter Kit.
v1.11.1 @liveblocks/react-comments- Fix the composer’s placeholder to appear instantly instead of being initially invisible.
- Fix the default composer’s actions not being disabled when the composer is.
@liveblocks/node- Fix "
processis undefined" issue in Vite builds. This issue was already fixed for@liveblocks/core, but not for@liveblocks/nodeyet.
DevTools
- Improve tree view to visualize Y.js documents and inspect Y.js awareness.
v1.11.0 @liveblocks/node- Add
updateRoomIdmethod that lets you update the room ID of the specified room. - Add an optional
guidparameter tosendYjsBinaryUpdateandgetYjsDocumentAsBinaryUpdateto point to a Yjs subdocument with the specified guid.
@liveblocks/react- Add
scrollOnLoadoption touseThreads: enabled by default, this option controls whether to scroll to a comment on load based on the URL hash. useUseranduseRoomInfono longer support returning nothing. Returningundefinedwill now be treated as an error.- Fix bug where
useUseranduseRoomInforeturned an extradatasuperfluous property. - Fix bug where customizing types on
createLiveblocksContextwould conflict with the providedClient.
@liveblocks/react-comments- Add actions to
InboxNotificationwith a single action for now: marking as read. - Improve actions hover behavior in
Comment/Thread. - Change
Commentbackground color when it’s linked to or being edited.
- Add
v1.10.4 - Fix bundling issue in Vite projects, where
process is not definedcould happen
- Fix bundling issue in Vite projects, where
v1.10.3 @liveblocks/react-comments- Add support for Emoji v15.1 in emoji picker, along two additional locales:
Bengali (
bn) and Hindi (hi). - Fix bug where the
showRoomNameprop onInboxNotification.Threadwasn’t applied to notifications about mentions.
@liveblocks/react- Fix bug where removing metadata via
useEditThreadMetadatawould result in a brief flash of the old metadata after the metadata was removed optimistically.
- Add support for Emoji v15.1 in emoji picker, along two additional locales:
Bengali (
v1.10.2 @liveblocks/client- Fix bug where calling
.clone()immediately after creating a newLiveObjectcould throw an error
- Fix bug where calling
v1.10.1 @liveblocks/client- Fix bug where the client’s backoff delay would not be respected correctly in a small edge case.
@liveblocks/react-comments- Fix date localization in
InboxNotification. - Add vendor prefixes to more CSS properties within the default styles.
@liveblocks/react- Added error retrying to
useThreads,useRoomNotificationSettings, anduseInboxNotificationsduring initial fetching.
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.
- Add