Skip to content

1.12.0

Latest
Compare
Choose a tag to compare
@marcbouchenoire marcbouchenoire released this 02 May 11:01
· 20 commits to main since this release

@liveblocks/react

  • Add support for custom notification kinds.
  • Add new useInboxNotificationThread hook to createLiveblocksContext, which can be used to retrieve threads within thread notifications for more flexibility.
  • Add support for startsWith operator to useThreads when filtering based on metadata.

@liveblocks/react-comments

  • Add support for custom notification kinds to the InboxNotification component via the kinds prop and the InboxNotification.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 via query.roomId, metadata is deprecated and is now query.metadata.
  • Add support for our query language when filtering with the getRooms and getThreads methods.
  • Add support for an alternative object-based query notation to the getRooms and getThreads methods, which supports exact matches and the startsWith operator.