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() is deprecated due to security and usability issues #84

Open
gvasquez95 opened this issue Oct 11, 2021 · 0 comments

Comments

@gvasquez95
Copy link

Due to transitive dependency usage of whatwg-url (v5.0.0) via node-fetch(v2.6.5) I got:

2021-10-11T02:26:37.263Z	ERROR	(node:8) [DEP0005]     DeprecationWarning: Buffer() is deprecated due 
to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
   at showFlaggedDeprecation (buffer.js:194:11)
   at new Buffer (buffer.js:278:3)
   at utf8PercentDecode (/var/task/whatwg-url/lib/url-state-machine.js:105:17)
   at parseHost (/var/task/whatwg-url/lib/url-state-machine.js:400:18)
   at URLStateMachine.parseHostName (/var/task/whatwg-url/lib/url-state-machine.js:851:18)
   at new URLStateMachine (/var/task/whatwg-url/lib/url-state-machine.js:562:44)
   at Object.module.exports.basicURLParse (/var/task/whatwg-url/lib/url-state-machine.js:1258:15)
   at new URLImpl (/var/task/whatwg-url/lib/URL-impl.js:17:27)
   at Object.setup (/var/task/whatwg-url/lib/URL.js:187:17)
   at new URL (/var/task/whatwg-url/lib/URL.js:25:18)

I haven't tested, but upgrading to node-fetch 3.0.0 might come in handy, I guess.

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