@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/src/index.ts
CHANGED
|
@@ -997,8 +997,11 @@ export class Flock {
|
|
|
997
997
|
}
|
|
998
998
|
|
|
999
999
|
/**
|
|
1000
|
-
* Returns the exclusive version vector
|
|
1001
|
-
*
|
|
1000
|
+
* Returns the exclusive/visible version vector.
|
|
1001
|
+
*
|
|
1002
|
+
* Only peers that currently own at least one visible entry are included.
|
|
1003
|
+
* This vector is consistent with current visible state and is the correct
|
|
1004
|
+
* baseline for incremental export/replication.
|
|
1002
1005
|
*
|
|
1003
1006
|
* Complexity: O(M + V log M + R (log L + log S)).
|
|
1004
1007
|
* - M = memtablePeerCount
|
|
@@ -1015,10 +1018,13 @@ export class Flock {
|
|
|
1015
1018
|
}
|
|
1016
1019
|
|
|
1017
1020
|
/**
|
|
1018
|
-
* Returns the inclusive version vector
|
|
1019
|
-
*
|
|
1021
|
+
* Returns the inclusive/max-seen version vector.
|
|
1022
|
+
*
|
|
1023
|
+
* Tracks max seen clocks per peer for this process lifetime
|
|
1024
|
+
* (open/import/local writes), including peers that may no longer own visible
|
|
1025
|
+
* entries.
|
|
1020
1026
|
*
|
|
1021
|
-
* Use this version
|
|
1027
|
+
* Use this version for completeness checks, not incremental export baselines.
|
|
1022
1028
|
*/
|
|
1023
1029
|
inclusiveVersion(): VersionVector {
|
|
1024
1030
|
return decodeVersionVectorFromRaw(inclusiveVersion_ffi(this.inner));
|