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

Fix Node Buffer deprecation warning: update 'new Buffer' to 'Buffer.from()' #342

Conversation

Archinowsk
Copy link
Contributor

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

Buffer.from(string[, encoding]) is added in Node v5.10.0. passport-saml is currently using Node 6 so this update should be ok.

@christiaanwesterbeek
Copy link

I was just looking to address this too. You beat me to it. Thanks.

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

3 participants