Skip to content

Use Buffer.from() instead of new Buffer() - #113

Open
matiasleva wants to merge 2 commits into
TritonDataCenter:masterfrom
matiasleva:patch-1
Open

Use Buffer.from() instead of new Buffer()#113
matiasleva wants to merge 2 commits into
TritonDataCenter:masterfrom
matiasleva:patch-1

Conversation

@matiasleva

Copy link
Copy Markdown

Avoid deprecation warning in nodejs12.x

Avoid deprecation warning in nodejs12.x
@kusor
kusor self-requested a review April 28, 2020 10:32

@kusor kusor left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I'm not on a mistake, this method has been added since version 4.x of node. I'd say that in order to merge this pull request, package.json should be modified to explicitly require a version of node greater or equal than 4.9.x.

And given than the node dependency will be modified, I'd also bump package version.

@kusor kusor left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@matiasleva matiasleva closed this May 13, 2020
@matiasleva matiasleva reopened this May 13, 2020
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.

2 participants