@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.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +11 -5
- package/dist/index.d.ts +11 -5
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/_moon_flock.ts +3316 -3997
- package/src/index.ts +11 -5
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
|
|
161
|
-
*
|
|
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
|
|
176
|
-
*
|
|
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
|
|
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
|
|
161
|
-
*
|
|
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
|
|
176
|
-
*
|
|
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
|
|
184
|
+
* Use this version for completeness checks, not incremental export baselines.
|
|
179
185
|
*/
|
|
180
186
|
inclusiveVersion(): VersionVector;
|
|
181
187
|
private exportJsonInternal;
|