ChangelogWeek 25
Week 25
v2.0.4
- Improve TS error messages and error locations if custom
UserMetaorActivitiesDatatypes do not match their requirements.
@liveblocks/client
- Add missing type export for
CommentReaction - Don’t attempt to write missing initialStorage keys if the current user has no write access to storage. This will no longer throw, but issue a warning message in the console.
@liveblocks/react
- Add
useDeleteThreadhook to delete a thread and its associated comments.
v2.0.3
@liveblocks/client
- In
client.enterRoom(), the optionsinitialPresenceandinitialStorageare now only mandatory if your custom type requires them to be.
@liveblocks/react
- In
<RoomProvider>, the propsinitialPresenceandinitialStorageare now only mandatory if your custom type requires them to be. - Nesting
<LiveblocksProvider>s will now throw to prevent incorrect usage
@liveblocks/react-ui
- Prevent the composer from splitting text being composed.
- Handle parentheses around and within auto links.
- Count whitespace as empty to prevent posting empty comments.
- Prevent clearing the composer if it's not handled. (via
onComposerSubmit)
@liveblocks/yjs
- Add missing type exports
v2.0.2
@liveblocks/node
- Add
deleteThreadmethod to the client to delete a room's thread. - Add the
threadDeletedwebhook event to notify when a thread is deleted. - Fix type signatures of
client.identifyUser()andclient.prepareSession()to requireuserInfoif it's mandatory according to your globalUserMetatype definition.
Examples
- New custom notifications example.
- Updated BlockNote example and guide to v0.14.1.
Documentation
- Create new guide on how to add users to Liveblocks text editor.
- Updated Lexical product page with new information.
- Improved Lexical get started guides.
- Improved
Liveblocks.initializeStorageDocumentsection. - Fixed typo with token syntax passed to
authEndpoint.