ChangelogWeek 10
Week 10
v2.20.0
@liveblocks/client
- Implement a proxy factory for
UserNotificationSettings
object to returnnull
to prevent any errors when accessing a disabled notification channel.
@liveblocks/node
- Implement a proxy factory for
UserNotificationSettings
object to returnnull
to prevent any errors when accessing a disabled notification channel.
@liveblocks/react
- Add optional
useRoom({ allowOutsideRoom: true })
option. When this option is set, the hook will returnnull
when used outside of a room, whereas the default behavior of the hook is be to throw. - Implement a proxy factory for
UserNotificationSettings
object to returnnull
to prevent any errors when accessing a disabled notification channel.
@liveblocks/react-ui
- Improve mentions behavior around whitespace, fixing a regression introduced in
v2.18.3
when we added support for whitespace within mentions. - Prevent mention suggestions from scrolling instead of flipping when there’s enough space on the other side (e.g. moving from top to bottom).
- Improve event propagation in the formatting toolbar of
Composer
.
v2.19.0
@liveblocks/*
- Output ES modules by default (but CJS builds are still included)
- Modernize internal build tool settings
@liveblocks/node
- Allow passing optional AbortSignal to all client methods
- Fix bug in encoding of error information in the LiveblocksError when an API call fails (thanks for reporting, @robcresswell!)
- Fix
getStorageDocument("my-room", "json")
typing in its outputLiveMap
instances asReadonlyMap
instead of serialized plain objects.
Documentation
- New guide: How to create a notification settings panel.
- Improved Notifications overview pages, adding info on user notification settings.
- Improved existing webhooks guides, adding more context about notification channels, and how to create a settings panel.
- More info about how Text Editor permanently stores documents, and how it's different to Yjs.
Examples
- New example: Notification settings example.
- Improved notification settings panel in the Next.js Starter Kit.
Website
- New blog post: Configure each user’s notification settings for email, Slack, and more.
- New blog post: Liveblocks is now SOC 2 Type 2 and HIPAA compliant.
Upkeep
- Ship all Liveblocks packages as ESM by default (but CJS builds are still included)
- Modernized internal build tool settings