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

fix: address buffer constructor deprecation #116

Closed
wants to merge 1 commit into from
Closed

fix: address buffer constructor deprecation #116

wants to merge 1 commit into from

Conversation

exoego
Copy link

@exoego exoego commented Sep 12, 2019

Closes #102

@EthanRBrown
Copy link

I was just about to do this myself. Would love to get this fixed because I'm tired of having my AWS logs cluttered up by deprecation warnings. Is this package abandoned by its maintainers?

@realanmup
Copy link

[DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
I'll leave this message here. Please merge it asap. Thank you. @indutny

@panva
Copy link

panva commented Jan 6, 2020

I believe this PR is a breaking change for legacy runtimes, it would be appropriate to use this as v6.x breaking, while #103 is suitable for the existing major release line.

@exoego
Copy link
Author

exoego commented Jan 6, 2020

I am fine with #103 which uses safe-buffer module to support legacy Node.js.
Some people may worry about adding such polyfill since it increases complexity of dependency management and increases bundle size.

@indutny
Copy link
Owner

indutny commented Jan 6, 2020

Fixed in e186699

@indutny indutny closed this Jan 6, 2020
@exoego exoego deleted the buffer-deprecation branch January 6, 2020 21:13
arweave-kyle added a commit to ArweaveTeam/arweave-js that referenced this pull request Aug 5, 2020
No longer need to use the forked version of asn1.js as the upstream package has fixed the deprecated node buffer warnings.

arweave-kyle/asn1.js@d992612

indutny/asn1.js#116
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.

Buffer constructor runtime deprecation - this package emits a warning on Node 10
5 participants