@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.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;