@loro-dev/flock 4.4.0 → 4.4.2

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/README.md CHANGED
@@ -81,7 +81,7 @@ All types are exported from the package entry point for use in TypeScript projec
81
81
  - `setPeerId(peerId: string): void` – replace the current peer id. Use cautiously; changing ids affects causality tracking.
82
82
  - `peerId(): string` – returns the identifier for the replica.
83
83
  - `getMaxPhysicalTime(): number` – highest physical timestamp observed by this replica (same units as the timestamps you pass to `now`, e.g. `Date.now()` output). Helpful for synchronising clocks and diagnosing divergence.
84
- - `version(): VersionVector` – current version vector including logical counters per peer.
84
+ - `version(): VersionVector` – exclusive version vector for currently visible peers. Complexity is `O(M + V log M + R (log L + log S))` (`M=memtablePeerCount`, `V=vvPeerCount`, `L=memtableLen`, `R=scanned candidate rows`, `S=storage key count`) and it does not perform a full `O(memtableSize)` pre-scan.
85
85
  - `checkInvariants(): void` – throws if internal CRDT invariants are violated. Intended for assertions in tests or diagnostics, not for production control flow.
86
86
 
87
87
  ### Mutations