Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

breaking, fix, perf: ESM, drop buffer, modernize #18

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

ThaUnknown
Copy link

This PR modernizes this library, migrates to ESM, drops buffer and updates dependencies.

The git diff shows some crazy stuff, but in practice all that really changed is all the functions were moved into a class, Buffer.isBuffer was replaced with ArrayBuffer.isView and a few other tiny tweaks, dropped util.inherits and updated docs accordingly.

Doing this because webtorrent is updating it's dependencies to deprecate buffer, one of which is bencode, which also runs on the browser, even tho this package doesn't, and since the new bencode is ESM only this also needs to be ESM

@ThaUnknown
Copy link
Author

@mafintosh would love if you could merge this and release a new ver <3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant