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:
@@ -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++
|
||||
|
||||
Reference in New Issue
Block a user