Changelog
Week 25
v2.0.4
- Improve TS error messages and error locations if custom
UserMeta
orActivitiesData
types 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
useDeleteThread
hook to delete a thread and its associated comments.
v2.0.3
@liveblocks/client
- In
client.enterRoom()
, the optionsinitialPresence
andinitialStorage
are now only mandatory if your custom type requires them to be.
@liveblocks/react
- In
<RoomProvider>
, the propsinitialPresence
andinitialStorage
are 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
deleteThread
method to the client to delete a room's thread. - Add the
threadDeleted
webhook event to notify when a thread is deleted. - Fix type signatures of
client.identifyUser()
andclient.prepareSession()
to requireuserInfo
if it's mandatory according to your globalUserMeta
type 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.initializeStorageDocument
section. - Fixed typo with token syntax passed to
authEndpoint
.