Changelog

Week 28

Week 28
WEEK28

v3.22.0

@liveblocks/react

This release adds version history support for Storage: a version now snapshots both the room's Storage and Yjs documents (previously Yjs only).

  • Creating a version now also snapshots Storage, not just Yjs, see docs.
  • useHistoryVersions() lists the room's versions. Each has a vh_xxx id, see docs.
  • useHistoryVersionStorageData("vh_xxx") returns that version's Storage as a read-only LiveObject so you can visualize or diff it manually, see docs.
  • useRestoreToStorageVersion("vh_xxx") restores the room's Storage to that version, as a single undoable change, see docs.
  • useDeleteHistoryVersion() returns deleteHistoryVersion("vh_xxx") to permanently delete a version, see docs.

@liveblocks/node and Python SDK

  • Add methods for version history to list room versions, create a version snapshot, and delete a version.

Examples

Documentation

Contributors

Contributors include:nviemarcbouchenoirectnicholasstacyschmitz

4 authors