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

Using Buffer is deprecated #72

Open
Sawtaytoes opened this issue Jun 6, 2019 · 0 comments
Open

Using Buffer is deprecated #72

Sawtaytoes opened this issue Jun 6, 2019 · 0 comments

Comments

@Sawtaytoes
Copy link

In newer versions of Node.js, using new Buffer is now deprecated.
https://nodejs.org/en/docs/guides/buffer-constructor-deprecation/

Instead, you should use new Buffer.alloc(size) or new Buffer.from('c469ea095c6adf13', 'hex').
Changing it might cause compatibility issues in older versions of Node.js though. You can always write around it, but you could also upgrade the minimum version.

@Sawtaytoes Sawtaytoes changed the title Buffer is deprecated Using Buffer is deprecated Jun 6, 2019
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