libp2p / js-libp2p-kad-dht

JavaScript implementation of the DHT for libp2p
https://libp2p.io
Other
141 stars 60 forks source link

fix: work in browsers without extra deps #474

Closed achingbrain closed 1 year ago

achingbrain commented 1 year ago

Removes the k-bucket dep and imports the code here since the random bytes dep it uses doesn't work in browsers.

This PR can be reverted if https://github.com/tristanls/k-bucket/pull/53 is ever merged.

github-actions[bot] commented 1 year ago

:tada: This PR is included in version 9.3.3 :tada:

The release is available on:

Your semantic-release bot :package::rocket: