Libraries
@veltdev/crdt@veltdev/crdt-react
New Features
- [Core]: Added six methods on
CrdtElementimplementing a unified message stream for Yjs-backed collaborative editors. The stream carries both sync and awareness messages over a single channel per document, with encryption at rest, ordered serialization, and automatic pruning after snapshot checkpoints.
- React / Next.js
- Other Frameworks
pushMessage(query)— push a lib0-encoded sync or awareness message to the streamonMessage(query)— subscribe to real-time messages; returns an unsubscribe functiongetMessages(query)— fetch all messages after a given timestamp (one-time read for replay)getSnapshot(query)— retrieve the latest full-state snapshot as a baseline for replaysaveSnapshot(query)— checkpoint the current Y.Doc state and vector clockpruneMessages(query)— remove messages older than a given timestamp to keep storage bounded

