@loro-dev/flock 4.4.2 → 4.4.4

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
@@ -157,8 +157,11 @@ declare class Flock {
157
157
  getEntry(key: KeyPart[]): EntryInfo | undefined;
158
158
  merge(other: Flock): void;
159
159
  /**
160
- * Returns the exclusive version vector, which only includes peers that have
161
- * at least one entry in the current state.
160
+ * Returns the exclusive/visible version vector.
161
+ *
162
+ * Only peers that currently own at least one visible entry are included.
163
+ * This vector is consistent with current visible state and is the correct
164
+ * baseline for incremental export/replication.
162
165
  *
163
166
  * Complexity: O(M + V log M + R (log L + log S)).
164
167
  * - M = memtablePeerCount
@@ -172,10 +175,13 @@ declare class Flock {
172
175
  */
173
176
  version(): VersionVector;
174
177
  /**
175
- * Returns the inclusive version vector, which includes all peers ever seen,
176
- * even if their entries have been overridden by other peers.
178
+ * Returns the inclusive/max-seen version vector.
179
+ *
180
+ * Tracks max seen clocks per peer for this process lifetime
181
+ * (open/import/local writes), including peers that may no longer own visible
182
+ * entries.
177
183
  *
178
- * Use this version when checking if you have received all data from another peer.
184
+ * Use this version for completeness checks, not incremental export baselines.
179
185
  */
180
186
  inclusiveVersion(): VersionVector;
181
187
  private exportJsonInternal;
package/dist/index.d.ts CHANGED
@@ -157,8 +157,11 @@ declare class Flock {
157
157
  getEntry(key: KeyPart[]): EntryInfo | undefined;
158
158
  merge(other: Flock): void;
159
159
  /**
160
- * Returns the exclusive version vector, which only includes peers that have
161
- * at least one entry in the current state.
160
+ * Returns the exclusive/visible version vector.
161
+ *
162
+ * Only peers that currently own at least one visible entry are included.
163
+ * This vector is consistent with current visible state and is the correct
164
+ * baseline for incremental export/replication.
162
165
  *
163
166
  * Complexity: O(M + V log M + R (log L + log S)).
164
167
  * - M = memtablePeerCount
@@ -172,10 +175,13 @@ declare class Flock {
172
175
  */
173
176
  version(): VersionVector;
174
177
  /**
175
- * Returns the inclusive version vector, which includes all peers ever seen,
176
- * even if their entries have been overridden by other peers.
178
+ * Returns the inclusive/max-seen version vector.
179
+ *
180
+ * Tracks max seen clocks per peer for this process lifetime
181
+ * (open/import/local writes), including peers that may no longer own visible
182
+ * entries.
177
183
  *
178
- * Use this version when checking if you have received all data from another peer.
184
+ * Use this version for completeness checks, not incremental export baselines.
179
185
  */
180
186
  inclusiveVersion(): VersionVector;
181
187
  private exportJsonInternal;