ChangelogWeek 12
Week 12
v2.22.0
@liveblocks/node
- Added pagination support to
.getInboxNotifications()
. See docs. - New method
.getOrCreate()
which combines.getRoom()
and.createRoom()
. See docs. - New method
.upsertRoom()
which combines.updateRoom()
and.createRoom()
. See docs. - New method
.iterRooms()
which is like.getRooms()
except pagination happens automatically. See docs. - New method
.iterInboxNotifications()
which is like.getInboxNotifications()
except pagination happens automatically. See docs. - New method
.mutateStorage()
which can be used to make changes to Storage from your backend. See docs. - New method
.massMutateStorage()
which can be used to make changes to Storage for multiple rooms simultaneously. See docs. - Updated method
.deleteRoom()
to no longer throw when the room already does not exist. See docs.
@liveblocks/react-ui
- Add new icons to
<Icon.* />
.
@liveblocks/emails
- Implement a new core logic for thread notification event.
- Mark
htmlBody
fromprepareThreadNotificationEmailAsHtml
andreactBody
fromprepareThreadNotificationEmailAsReact
as deprecated. Usebody
property instead.
v2.21.0
@liveblocks/react-blocknote
- New package to support using BlockNote with Liveblock’s comments, mentions, and realtime collaboration out of the box.
@liveblocks/node
- Fix
markThreadAsResolved
andmarkThreadAsUnresolved
methods not passing user ID correctly to the corresponding backend endpoints.
@liveblocks/react-ui
- Improve emoji picker’s performance, bundle size, and add a preview of the
currently selected emoji.
- This is the result of us moving the emoji picker to its own package and improving it in the process. You can also combine this package with the primitives to build your own reaction picker for example.
- Improve and fix pasting HTML into the composer.
REST API
- The Delete Room endpoint will no longer return a 404 when a room already did not exist before.
Examples
- Updated Comments primitives example to use Frimousse.
- Updated BlockNote example to use our new package.
Documentation
- Mention our latest package, Frimousse.
- Detail building a primitive emoji picker and emoji reactions.
- API reference for all new Node.js methods.
- API reference for
@liveblocks/react-blocknoite
. - Updated get started guides for BlockNote.
- New BlockNote overview page.
- Updated guide on modifying Storage from the server.
Website
- New blog post: We’ve open-sourced our customizable React emoji picker.