Skip to content

[pull] main from liveblocks:main - #250

Merged
pull[bot] merged 6 commits into
code:mainfrom
liveblocks:main
Apr 8, 2026
Merged

[pull] main from liveblocks:main#250
pull[bot] merged 6 commits into
code:mainfrom
liveblocks:main

Conversation

@pull

@pull pull Bot commented Apr 8, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

nvie and others added 6 commits April 8, 2026 11:34
For full upgrade instructions, see the [3.18 upgrade guide](https://liveblocks.io/docs/platform/upgrading/3.18).

### `@liveblocks/client`

- **Breaking:** `useStorage` now returns plain objects for `LiveMap` values instead of `Map` instances. Legacy APIs have been removed: `.toImmutable()`, `.toObject()`, `.toArray()`.
- New `.toJSON()` on all Live structures, returning a cached JSON-compatible snapshot. `JSON.stringify(root)` now just works.
- New `LiveObject.from(obj)` to create a LiveObject from plain JSON, recursively converting nested objects/arrays to Live structures.
- New `.reconcile(obj)` to efficiently reconcile a LiveObject tree to match a JSON snapshot, only mutating what changed.
- `initialStorage` accepts `LiveObject.from()` result directly.

### `@liveblocks/react-flow/node`

- New `mutateFlow()` API for reading and mutating React Flow data from a Node.js backend. Install via `npm i @liveblocks/react-flow`, import from `@liveblocks/react-flow/node`.

### `@liveblocks/react-ui`

- Add standalone `Avatar` component to complement `AvatarStack` for more fine-grained customization.
- Add `variant` prop to `AvatarStack` to support outlined avatars.

### `@liveblocks/zustand` and `@liveblocks/redux`

- Fix: Initial storage seeding no longer creates an undo frame.
- Fix: Presence updates are now batched with storage updates.

Co-authored-by: Marc Bouchenoire <bouchenoire.marc@gmail.com>
@pull pull Bot locked and limited conversation to collaborators Apr 8, 2026
@pull pull Bot added the ⤵️ pull label Apr 8, 2026
@pull
pull Bot merged commit 981b5c5 into code:main Apr 8, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants