Expand 34 modules with batch and clear helpers across CRDTs, storage, routing, and platform APIs.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-05-21 03:40:45 -04:00
co-authored by Cursor
parent 67219df1e1
commit cbada56cc5
34 changed files with 300 additions and 0 deletions
@@ -95,6 +95,15 @@ class HyperP2PCrdtVersionVector extends EventEmitter {
return n
}
clearAll () {
return this.clear()
}
incrementBatch (peers) {
if (!Array.isArray(peers)) throw new Error('peers array required')
return peers.map((peer) => this.increment(peer))
}
_onGossip (d) {
if (!d || d.type !== 'crdt-version-vector-sync' || !d.peer) return
this._stats.gossipIn++