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

DeprecationWarning: Buffer() #50

Closed
peacheym opened this issue Apr 8, 2020 · 1 comment
Closed

DeprecationWarning: Buffer() #50

peacheym opened this issue Apr 8, 2020 · 1 comment

Comments

@peacheym
Copy link

peacheym commented Apr 8, 2020

When running the API example linked in the docs, there is a deprecation warning being logged.

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

Just thought I would point this out, perhaps the API auth example should be updated!

Thanks!

@peacheym
Copy link
Author

peacheym commented Apr 8, 2020

Looks like this is addressed in PR #30 . I merged the author's work and the warnings are removed. Consider merging their PR to update the example fully! 😄

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

1 participant