Skip to content

buffer construction uses deprecated methods #26

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

Closed
matthewleon opened this issue Nov 7, 2017 · 1 comment
Closed

buffer construction uses deprecated methods #26

matthewleon opened this issue Nov 7, 2017 · 1 comment

Comments

@matthewleon
Copy link
Contributor

quoting https://nodejs.org/api/buffer.html#buffer_buffer

To make the creation of Buffer instances more reliable and less error prone, the various forms of the new Buffer() constructor have been deprecated and replaced by separate Buffer.from(), Buffer.alloc(), and Buffer.allocUnsafe() methods.

Developers should migrate all existing uses of the new Buffer() constructors to one of these new APIs.

@hdgarrood
Copy link
Member

Thanks for the report! This was fixed by #31.

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

No branches or pull requests

2 participants