@liveblocks/yjs
Advanced tools
Changelog
v1.4.0
@liveblocks/yjs
@liveblocks/client
user
property to indicate the user
that sent the event:
room.subscribe("event", ({ event, user }) => {
// ^^^^ New!
});
@liveblocks/react
user
property to indicate the user
that sent the event:
useEventListener(({ event, user }) => {
// ^^^^ New!
});
useThreads
now returns an object in its
Suspense version. (const threads = useThreads()
becomes
const { threads } = useThreads()
)@liveblocks/react-comments
Comment
’s indentBody
and Thread
’s
indentCommentBody
were renamed to indentContent
and indentCommentContent
respectively. Thread
’s onResolveChange
was renamed to onResolvedChange
.Composer
.@liveblocks/node
@liveblocks/node
in
Edge runtimes.Changelog
v1.3.6
@liveblocks/client
unstable_fallbackToHTTP
client option when using any auth token type
(previously it only worked when using single-room tokens, which we no longer
recommend since 1.2)Changelog
v1.3.5
@liveblocks/react
useList()
, useMap()
, and useObject()
as deprecated in
JSDoc comments (we stopped recommending them since the release of 0.18)@liveblocks/react-comments
renderMention
,
renderLink
, etc) by a single components
prop. (e.g.
components={{ Mention, Link }}
)Composer.Suggestions
.Changelog
v1.3.4
@liveblocks/react
Error: "undefined" is not a valid event name
error when using
the (deprecated) useMap()
, useObject()
, or useList()
hooks on
uninitialized storage values.Changelog
v1.3.3
@liveblocks/*
@liveblocks/react-comments
"www.liveblocks.io"
)Changelog
v1.3.2
@liveblocks/client
/api/liveblocks-auth
backend returns reused/cached tokens. It’s important that auth tokens are
always freshly generated, and never get cached or reused. (The client itself
will cache and reuse tokens already, so implementing additional caching in
your backend isn’t needed, and could even cause reconnection issues.)Changelog
v1.3.1
@liveblocks/client
@liveblocks/react
Changelog
v1.3.0
This release marks the initial release of Liveblocks Comments (private beta).
@liveblocks/client
room.history.clear()
allows you to explicitly clear the
history, which resets the ability to undo beyond the current state.others.count
→ Use others.length
insteadothers.toArray()
→ Use others
instead (it’s already an array)Others<P, U>
type → Use readonly User<P, U>[]
instead.@liveblocks/react
UserMeta["info"]
can no longer be a scalar value.@liveblocks/react-comments
@liveblocks/node