Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 354 Bytes

README.md

File metadata and controls

17 lines (11 loc) · 354 Bytes

Loro Migrate

Convert Loro snapshot from versions older than v1.0 to the latest version.

Usage

npx loro-migrate /path/old-snapshot /path/new-snapshot v0.16
import { migrate, LoroVersion } from "loro-migrate";

const oldSnapshot: Uint8Array = ......;
const newSnapshot: Uint8Array = migrate(oldSnapshot, LoroVersion.V016 );