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

Use Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() over new Buffer() #238

Open
pixtron opened this issue Feb 17, 2020 · 0 comments

Comments

@pixtron
Copy link
Member

pixtron commented Feb 17, 2020

Describe the change

The initialization of a Buffer via new Buffer() has been deprecated in node.js

Current situation

Buffers are initialized via new Buffer()

Should

Change to Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from()

Additional context

(node:60578) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.

See #236

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

No branches or pull requests

1 participant