Skip to content

Releases: liveblocks/liveblocks

1.11.1

08 Apr 08:51
Compare
Choose a tag to compare

@liveblocks/react-comments

  • Fix the composer’s placeholder to appear instantly instead of being initially invisible.
  • Fix the default composer’s actions not being disabled when the composer is.

@liveblocks/node

  • Fix "process is undefined" issue in Vite builds. This issue was already fixed for @liveblocks/core, but not for @liveblocks/node yet.

DevTools

  • Improve tree view to visualize Y.js documents and inspect Y.js awareness.

1.11.0

21 Mar 14:12
Compare
Choose a tag to compare

@liveblocks/node

  • Add updateRoomId method that lets you update the room ID of the specified room.
  • Add an optional guid parameter to sendYjsBinaryUpdate and getYjsDocumentAsBinaryUpdate to point to a Yjs subdocument with the specified guid.

@liveblocks/react

  • Add scrollOnLoad option to useThreads: enabled by default, this option controls whether to scroll to a comment on load based on the URL hash.
  • useUser and useRoomInfo no longer support returning nothing. Returning undefined will now be treated as an error.
  • Fix bug where useUser and useRoomInfo returned an extra data superfluous property.
  • Fix bug where customizing types on createLiveblocksContext would conflict with the provided Client.

@liveblocks/react-comments

  • Add actions to InboxNotification with a single action for now: marking as read.
  • Improve actions hover behavior in Comment/Thread.
  • Change Comment background color when it’s linked to or being edited.

1.10.4

14 Mar 10:31
Compare
Choose a tag to compare
  • Fix bundling issue in Vite projects, where process is not defined could happen

1.10.3

12 Mar 09:15
Compare
Choose a tag to compare

@liveblocks/react-comments

  • Add support for Emoji v15.1 in emoji picker, along two additional locales:
    Bengali (bn) and Hindi (hi).
  • Fix bug where the showRoomName prop on InboxNotification.Thread wasn’t
    applied to notifications about mentions.

@liveblocks/react

  • Fix bug where removing metadata via useEditThreadMetadata would result in a
    brief flash of the old metadata after the metadata was removed optimistically.

1.10.2

05 Mar 09:58
Compare
Choose a tag to compare

@liveblocks/client

  • Fix bug where calling .clone() immediately after creating a new LiveObject could throw an error

1.10.1

04 Mar 10:57
Compare
Choose a tag to compare

@liveblocks/client

  • Fix bug where the client’s backoff delay would not be respected correctly in a
    small edge case.

@liveblocks/react-comments

  • Fix date localization in InboxNotification.
  • Add vendor prefixes to more CSS properties within the default styles.

@liveblocks/react

  • Added error retrying to useThreads, useRoomNotificationSettings, and
    useInboxNotifications during initial fetching.

1.10.0

21 Feb 14:22
Compare
Choose a tag to compare

This release introduces Notifications (and unread indicators) for Comments.

create-liveblocks-app

  • Add createLiveblocksContext and Notifications to --init.
  • Move resolver options from createRoomContext to createClient and add
    resolveRoomsInfo to the list of resolvers.

@liveblocks/client

  • Add options to createClient: resolveUsers, resolveMentionSuggestions
    (both were previously defined on createRoomContext from
    @liveblocks/react), and the new resolveRoomsInfo.

@liveblocks/react

  • Add new LiveblocksContext accessible with createLiveblocksContext,
    similarly to createRoomContext. This context is meant to live at the root
    since it handles things outside of rooms, like notifications. It contains
    LiveblocksProvider, useUser, useRoomInfo, useInboxNotifications,
    useUnreadInboxNotificationsCount, useMarkInboxNotificationAsRead, and
    useMarkAllInboxNotificationsAsRead.
  • Add new hooks to createRoomContext: useMarkThreadAsRead,
    useThreadSubscription, useRoomInfo, useRoomNotificationSettings, and
    useUpdateRoomNotificationSettings.
  • Make some hooks usable interchangeably between createLiveblocksContext and
    createRoomContext: useUser, and useRoomInfo.

@liveblocks/react-comments

  • Add new default components: InboxNotification and InboxNotificationList.
  • Add unread indicators to the default Thread component.
  • Support "@" in mentions. (e.g. @user@email.com is now a valid mention and
    will trigger resolveMentionSuggestions with "user@email.com")

@liveblocks/node

  • Add the Notifications REST APIs as fully typed methods. (includes
    getInboxNotification, getRoomNotificationSettings,
    updateRoomNotificationSettings, and deleteRoomNotificationSettings
    methods)
  • Add notification webhook event: NotificationEvent.

Thanks to @marcbouchenoire @nimeshnayaju @nvie @FlowFlorent @ofoucherot @jrowny @adigau

1.10.0-beta4

20 Feb 21:22
Compare
Choose a tag to compare

@liveblocks/node

  • Deprecate threadEmailNotification webhook event in favour of notification webhook event.

1.9.8

15 Feb 20:38
Compare
Choose a tag to compare

@liveblocks/client

  • Fix race condition in client that could leave zombie websockets open indefinitely in a small edge case. (thanks for reporting, @dev-badace)

@liveblocks/react

  • Fix type definitions of useOthersListener hook.
  • Fix type definitions of useErrorListener hook.

@liveblocks/yjs

  • Emit update events from awareness.
  • Fix several awareness bugs.

1.10.0-beta3

12 Feb 15:40
Compare
Choose a tag to compare
1.10.0-beta3 Pre-release
Pre-release

@liveblocks/react

  • Fix Suspense version of useRoomInfo.
  • Improve stability and race condition handling of Comments/Notifications hooks.

@liveblocks/client

  • Allow * as a pattern for access token permissions.

@liveblocks/node

  • Allow * as a pattern for access token permissions.