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.from() instead of deprecated constructor #37

Merged
merged 2 commits into from Nov 10, 2018

Conversation

yhatt
Copy link
Member

@yhatt yhatt commented Nov 10, 2018

new Buffer() has already marked as deprecated by security reason, and Node 10 outputs warning about deprecation.
https://nodesource.com/blog/understanding-the-buffer-deprecation-in-node-js-10/

We must use Buffer.from() instead of deprecated constructor.

@yhatt yhatt merged commit 4450c89 into master Nov 10, 2018
@yhatt yhatt deleted the fix-buffer-deprecation branch November 10, 2018 23:34
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