Changelog
v1.12.0
@liveblocks/react
- Add support for custom notification kinds.
- Add new
useInboxNotificationThread
hook tocreateLiveblocksContext
, which can be used to retrieve threads within thread notifications for more flexibility. - Add support for
startsWith
operator touseThreads
when filtering based on metadata.
@liveblocks/react-comments
- Add support for custom notification kinds to the
InboxNotification
component via thekinds
prop and theInboxNotification.Custom
component. - Add destructive color tokens. (
--lb-destructive
,--lb-destructive-foreground
, and--lb-destructive-contrast
)
@liveblocks/node
- Add
triggerInboxNotification
method that lets you trigger custom notification kinds. - Enable filtering rooms by room ID in the
getRooms
method. This works viaquery.roomId
,metadata
is deprecated and is nowquery.metadata
. - Add support for our query language when filtering with the
getRooms
andgetThreads
methods. - Add support for an alternative object-based query notation to the
getRooms
andgetThreads
methods, which supports exact matches and thestartsWith
operator.