https://github.com/loro-dev/migrate
https://github.com/loro-dev/migrate
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/loro-dev/migrate
- Owner: loro-dev
- Created: 2024-06-07T09:05:29.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-21T01:36:29.000Z (over 1 year ago)
- Last Synced: 2025-10-13T03:34:35.097Z (8 months ago)
- Language: JavaScript
- Size: 73.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Loro Migrate
Convert Loro snapshot from versions older than v1.0 to the latest version.
## Usage
```bash
npx loro-migrate /path/old-snapshot /path/new-snapshot v0.16
```
```ts
import { migrate, LoroVersion } from "loro-migrate";
const oldSnapshot: Uint8Array = ......;
const newSnapshot: Uint8Array = migrate(oldSnapshot, LoroVersion.V016 );
```