v1.6.0 @liveblocks/yjs- Add support for subdocs.
v1.5.2 @liveblocks/react- Fix return type of
resolveUsers.
- Fix return type of
v1.5.1 - Fixes a bug in the bounds check of the
backgroundKeepAliveTimeoutoption.
- Fixes a bug in the bounds check of the
v1.5.0 Support multiple RoomProviders, or mixing and matching our React package in the same app with a Redux and/or Zustand instance.
At the client level, there is a new API for entering/leaving rooms, which we’re now recommending over the old APIs. (The old APIs remain working exactly how they are today, however.)
@liveblocks/client- New client config option:
backgroundKeepAliveTimeout(a numeric value in milliseconds). See docs. - New APIs:
Client.enterRoom(roomId, options)– enters the room and return both the room and an "unsubscribe function" to leave that room again. This newer API supports entering/leaving the same room multiple times, making it possible to connect to the same room from different parts of your application. See docs.Client.logout()– Call this on the Liveblocks client when you log out a user in your application. It will purge all auth tokens and force-leave any rooms, if any are still connected. See docs.LiveList.clone()– see docs.LiveMap.clone()– see docs.LiveObject.clone()– see docs.
- Deprecated APIs:
client.enter(roomId, options)client.leave(roomId)
- Renamed enter option:
shouldInitiallyConnect→autoConnect. Its meaning or working did not change. - Fixes a potential
Cannot set parent: node already has a parenterror when initializing storage with Live datastructures that are already tied to a Storage tree.
@liveblocks/react- Support using multiple
RoomProvidercomponents in your component tree for the same room ID. - Renamed
RoomProviderprop:shouldInitiallyConnect→autoConnect. Its meaning or working did not change. - New hook:
useOthersListener({ type, user, others }), see docs
@liveblocks/redux- Breaking: The
leaveRoom()function no longer accepts aroomId. It will always leave the currently joined room.
@liveblocks/zustand- The
enterRoom()function will now return a leave callback function. - Breaking: The
leaveRoom()function no longer accepts aroomId. It will always leave the currently joined room.
- New client config option:
v1.4.8 create-liveblocks-app- Add Comments hooks and options to
--initcommand.
@liveblocks/client- Export all
CommentBody-related types.
@liveblocks/react-comments- Improve default styles:
- Cap CSS selector specificity to improve overridability.
- Set tokens on
.lb-rootinstead of:rootto improve cascading tokens (overriding--lb-accentonbodyfor example, didn't create the expected results), and to work within shadow DOMs.
- Fix reactions and links styles on Safari.
- Add Comments hooks and options to
v1.4.7 @liveblocks/react- Fix
userIdstype inResolveUsersArgs.
- Fix
v1.4.6 @liveblocks/react- Fix a race condition that could cause a Liveblocks client to hang during loading when using Suspense.
- Fix
useStatusreturn value on SSR responses. - Breaking (beta): The
resolveUseroption increateRoomContextis now calledresolveUsersand it receives a list of user IDs (via theuserIdsproperty, replacinguserId) instead of a single one. Instead of returning user info of a single user ID, this function will now expect a list of users' info matching the provided list of user IDs. - Breaking (beta): The
ResolveUserOptionsandResolveMentionSuggestionsOptionstypes were renamed toResolveUsersArgsandResolveMentionSuggestionsArgsrespectively. resolveUsersandresolveMentionSuggestionsnow accept synchronous functions.resolveUsersnow also provides the current room ID.editThreadMetadatanow correctly allowsnullto be set on a property. Doing so deletes existing metadata properties.
@liveblocks/react-comments- Export
ComposerSubmitCommenttype from root too, in addition to/primitives. - Add
onThreadDeletetoThread. - Add
metadatatoComposerto attach custom metadata to new threads. - Add support for specifying a custom
ThreadMetadatatype onThreadandComposer. - Breaking (beta):
Comment’sonEditandonDeletewere renamed toonEditCommentandonDeleteCommentrespectively.
v1.4.5 @liveblocks/react- Fix
createThreadnot creating valid comment.
@liveblocks/node- Fix URL encoding bug
- Fix
v1.4.4 @liveblocks/react- Fix
removeReactionnot removing reactions which led to reactions displaying a count of 0.
@liveblocks/react-comments- Fix reactions list (and its add button) showing on all comments.
- Improve emoji rendering on Windows.
- Hide country flag emojis when unsupported. (e.g. on Windows)
- Fix
v1.4.3 @liveblocks/react- Add new Comments hooks to add/remove reactions.
- Fix a bug in
useOthers()that could lead to the warning "The result of getServerSnapshot should be cached to avoid an infinite loop"
@liveblocks/react-comments- Add support for reactions. (👍)
- Add keyboard navigation to emoji picker.