ChangelogWeek 24
Week 24
v2.0.0
This major release marks the maturity of Liveblocks. It contains new products
(@liveblocks/react-lexical) and clarifications (e.g.
@liveblocks/react-comments is now called @liveblocks/react-ui). t Also, we
bring major DX improvements by allowing you to specify your types globally now.
These types will be typed once and shared across all Liveblocks APIs, which
includes your Node backend.
In @liveblocks/react, you can now import hooks directly:
For full upgrade instructions and codemods, see the 2.0 upgrade guide.
create-liveblocks-app
- Update config generation for Liveblocks 2.0.
- Add
--upgradeflag to automatically update all Liveblocks package to their latest version.
@liveblocks/client
- DX improvements: type once, globally, benefit everywhere
@liveblocks/react
- DX improvement: import hooks directly
- DX improvement:
<ClientSideSuspense>no longer needs a function as itschildren - New provider:
LiveblocksProvider(replaces the need forcreateClient) - New hook:
useClient - Tweak
useMutationerror message to be less confusing. - Allow thread and activity metadata types to contain
undefinedvalues.
@liveblocks/react-ui
- Rename from
@liveblocks/react-comments. - Rename
<CommentsConfig />to<LiveblocksUIConfig />. - Improve
InboxNotificationprops types.
@liveblocks/react-lexical
- Initial release.
@liveblocks/node-lexical
- Initial release.
@liveblocks/yjs
LiveblocksProvideris no longer a default export, it’s nowimport { LiveblocksYjsProvider } from "@liveblocks/yjs".
@liveblocks/node
- DX improvements: all Node client methods will pick up the same global types you’re using in your frontend
- Rename
RoomInfotoRoomData. - The webhook event
NotificationEvent’s type can represent multiple kinds of notifications. ("thread","textMention", and custom ones (e.g."$myNotification"))
@liveblocks/codemod
- Initial release.
Documentation
- New API reference page for
@liveblocks/react-lexical. - Added lots of new information to
@liveblocks/reactAPI reference page. - Information includes details
Suspense
section, new
LiveblocksProviderprops, details on typing, and more. - Added a set of product pages for Notifications, with info on concepts, components, hooks, styling, and email notifications.
- Added product page for Lexical summarising all its features.
- Restructured and updated existing product pages for our new products.
- More information on the
NotificationEventwebhook, including the newtextMentionkind. - Created new guide on adding users to Liveblocks Notifications.
- Created new guide on adding users to Liveblocks Text Editor.
- Created new get started guides for our new Lexical packages.
- Added product badges to get started guides.
- Updated all get started guides for new type improvements.
- Updated API references for new type improvements.
- Updated various guides for new type improvements.
- Updated images and text on How Liveblocks works page.
Website
- We redesigned our website to represent the Liveblocks product offering more
accurately. Here are some of the key changes:
- New homepage with interactive 3D game in the hero.
- New page product page for Liveblocks Text Editor
- New page product page for Liveblocks Notifications
- New page product page for Liveblocks Sync Datastore
- Improved pricing page
- New navigation
- New blog post: Introducing Liveblocks 2.0.
Examples
- Added new example:
nextjs-lexical - Upgraded and adjusted all examples to 2.0
Infrastructure
- Webhooks are now available to everyone.
Dashboard
- Show Lexical information in rooms that use the new Lexical plugin.