Skip to content

v0.7.0 — LoroEx.fork/1

Choose a tag to compare

@bmalum bmalum released this 13 May 13:05
· 28 commits to main since this release
59c7ca6

[0.7.0] — 2026-05-12

Added

  • LoroEx.fork/1 — return an independent clone of a document.
    The clone observes the parent's full op history at the moment of
    the call but lives in a separate Rust resource; mutations and
    exports on the fork do not affect the parent, and vice versa. Loro
    assigns the clone a new random peer id. O(n) in op-log size but
    considerably cheaper than export_snapshot/1 because no
    serialization to bytes happens. Primary use case: move an
    expensive export_snapshot/1 or export_shallow_snapshot/2 call
    off a doc-owning GenServer's mailbox by forking synchronously
    (fast) and exporting the fork inside a Task.