loro-migrate
v0.2.2
Published
Migrate Tool for Loro
Downloads
6
Readme
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 );