v4.0.0
Internal implementation now expects Uint8Array
instead of Buffer
for node ids. (#45)
Since Buffer
extends Uint8Array
, code using Buffer
for node ids should continue to work.
kBucket.add()
is faster in benchmark while perhaps slightly increasing heap usage.
Browsers no longer need Buffer
polyfill to use k-bucket
.