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.
v1.4.2 @liveblocks/client- Fix a bug where calculating the insertion position between two existing elements could happen incorrectly in a small edge case
v1.4.1 @liveblocks/*- #1177 Fix an issue with
internal LiveList serialization that could lead to a "ghosting" bug with
@liveblocks/zustand/@liveblocks/reduxwhen using tuples.
@liveblocks/node- Add comment reaction webhook events
CommentReactionAddedandCommentReactionRemoved
- #1177 Fix an issue with
internal LiveList serialization that could lead to a "ghosting" bug with
v1.4.0 DevTools
- New Yjs tab: visualize Yjs documents as a diagram, a tree, or as a list of operations, and inspect Awareness at the same time as Presence.
- New Events tab: inspect all custom Events a client receives in an event timeline, for easy testing/debugging.
@liveblocks/yjs- Add support for the Liveblocks DevTools.
@liveblocks/client- Broadcast event messages now include a
userproperty to indicate the user that sent the event:
@liveblocks/react- Broadcast event messages now include a
userproperty to indicate the user that sent the event: - Breaking (beta): Comments' hook
useThreadsnow returns an object in its Suspense version. (const threads = useThreads()becomesconst { threads } = useThreads())
@liveblocks/react-comments- Breaking (beta):
Comment’sindentBodyandThread’sindentCommentBodywere renamed toindentContentandindentCommentContentrespectively.Thread’sonResolveChangewas renamed toonResolvedChange. - Add emoji button in
Composer.
@liveblocks/node- Support using
@liveblocks/nodein Edge runtimes.
v1.3.6 @liveblocks/client- Support
unstable_fallbackToHTTPclient option when using any auth token type (previously it only worked when using single-room tokens, which we no longer recommend since 1.2)
- Support