loro-repo 0.0.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/dist/index.cjs +1293 -807
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +59 -63
- package/dist/index.d.ts +60 -64
- package/dist/index.js +1272 -811
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -74,6 +74,9 @@ await handle.close();
|
|
|
74
74
|
- `IndexedDBStorageAdaptor` (`src/storage/indexeddb.ts`)
|
|
75
75
|
Browser storage for metadata snapshots, doc snapshots/updates, and cached assets. Swap it out for SQLite/LevelDB/file-system adaptors when running on desktop or server environments.
|
|
76
76
|
|
|
77
|
+
- `FileSystemStorageAdaptor` (`src/storage/filesystem.ts`)
|
|
78
|
+
Node-friendly persistence layer that writes metadata snapshots, doc snapshots/updates, and assets to the local file system. Point it at a writable directory (defaults to `.loro-repo` in your current working folder) when building Electron apps, desktop sync daemons, or tests that need durable state without IndexedDB.
|
|
79
|
+
|
|
77
80
|
- Asset transports
|
|
78
81
|
Bring your own `AssetTransportAdapter` (HTTP uploads, peer meshes, S3, etc.). LoroRepo dedupes via SHA-256 assetIds while your adaptor decides how to encrypt/store the bytes.
|
|
79
82
|
|