@loro-dev/flock 2.0.1 → 2.1.1
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/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/_moon_flock.d.ts +10 -6
- package/src/_moon_flock.ts +550 -423
- package/src/index.ts +40 -10
package/dist/index.d.mts
CHANGED
|
@@ -3,6 +3,7 @@ type MaybePromise<T> = T | Promise<T>;
|
|
|
3
3
|
type ExportOptions = {
|
|
4
4
|
from?: VersionVector;
|
|
5
5
|
hooks?: ExportHooks;
|
|
6
|
+
pruneTombstonesBefore?: number;
|
|
6
7
|
};
|
|
7
8
|
type ImportOptions = {
|
|
8
9
|
bundle: ExportBundle;
|
|
@@ -140,6 +141,7 @@ declare class Flock {
|
|
|
140
141
|
private exportJsonWithHooks;
|
|
141
142
|
exportJson(): ExportBundle;
|
|
142
143
|
exportJson(from: VersionVector): ExportBundle;
|
|
144
|
+
exportJson(from: VersionVector, pruneTombstonesBefore: number): ExportBundle;
|
|
143
145
|
exportJson(options: ExportOptions): Promise<ExportBundle>;
|
|
144
146
|
private importJsonInternal;
|
|
145
147
|
private importJsonWithHooks;
|
package/dist/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ type MaybePromise<T> = T | Promise<T>;
|
|
|
3
3
|
type ExportOptions = {
|
|
4
4
|
from?: VersionVector;
|
|
5
5
|
hooks?: ExportHooks;
|
|
6
|
+
pruneTombstonesBefore?: number;
|
|
6
7
|
};
|
|
7
8
|
type ImportOptions = {
|
|
8
9
|
bundle: ExportBundle;
|
|
@@ -140,6 +141,7 @@ declare class Flock {
|
|
|
140
141
|
private exportJsonWithHooks;
|
|
141
142
|
exportJson(): ExportBundle;
|
|
142
143
|
exportJson(from: VersionVector): ExportBundle;
|
|
144
|
+
exportJson(from: VersionVector, pruneTombstonesBefore: number): ExportBundle;
|
|
143
145
|
exportJson(options: ExportOptions): Promise<ExportBundle>;
|
|
144
146
|
private importJsonInternal;
|
|
145
147
|
private importJsonWithHooks;
|