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

Remove safe-buffer dependency #662

Merged
merged 1 commit into from
Jul 25, 2019
Merged

Remove safe-buffer dependency #662

merged 1 commit into from
Jul 25, 2019

Conversation

tinovyatkin
Copy link
Contributor

safe-buffer does nothing when native Buffer.from API is available and it's available since Nodes.JS 5.10 (https://nodejs.org/api/buffer.html#buffer_class_method_buffer_from_array), so, there is no sense to bring it as production dependency (one of four) when your declared minimum supported Node.JS version is 6.x.

@brandur-stripe
Copy link
Contributor

Thanks @tinovyatkin!

@rattrayalex-stripe Want to take a quick look to confirm this one? The safe-buffer project page seems to confirm that it's indeed safe to remove.

@rattrayalex-stripe rattrayalex-stripe self-assigned this Jul 25, 2019
@rattrayalex-stripe
Copy link
Contributor

Gave everything a quick look and it does indeed seem this is safe.

Thanks so much @tinovyatkin !

@rattrayalex-stripe rattrayalex-stripe merged commit 5055b6c into stripe:master Jul 25, 2019
@tinovyatkin tinovyatkin deleted the remove-safe-buffer branch July 30, 2019 21:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants