Add removeKey() and deleteKey() helpers across keyed modules (eleventh pass).
Domain-aware removal aliases on modules with hasKey/getKey, including async indexes and no-op cases for grow-only and bloom filters. Co-authored-by: Cursor <[email protected]>
This commit is contained in:
@@ -99,6 +99,14 @@ class HyperP2PCrdtTwoPhaseSet extends EventEmitter {
|
||||
return this.has(key) ? String(key) : null
|
||||
}
|
||||
|
||||
removeKey (key) {
|
||||
return this.remove(key)
|
||||
}
|
||||
|
||||
deleteKey (key) {
|
||||
return this.removeKey(key)
|
||||
}
|
||||
|
||||
bulkAdd (elements) {
|
||||
if (!Array.isArray(elements)) throw new Error('elements array required')
|
||||
let n = 0
|
||||
|
||||
Reference in New Issue
Block a user