Skip to content

Stop using deprecated Buffer constructor#12

Merged
tj merged 1 commit intotj:masterfrom
Qard:buffer-fix
Jan 3, 2019
Merged

Stop using deprecated Buffer constructor#12
tj merged 1 commit intotj:masterfrom
Qard:buffer-fix

Conversation

@Qard
Copy link
Collaborator

@Qard Qard commented Jan 2, 2019

The new Buffer(string|number) form was deemed an attack vector
and deprecated. All Node.js v6.x+ versions have the .from(),
.alloc() and .allocUnsafe() family of Buffer methods now.

The `new Buffer(string|number)` form was deemed an attack vector
and deprecated. All Node.js v6.x+ versions have the `.from()`,
`.alloc()` and `.allocUnsafe()` family of Buffer methods now.
@Qard Qard added the bug label Jan 2, 2019
@Qard Qard self-assigned this Jan 2, 2019
@Qard Qard requested a review from tj January 2, 2019 22:14
@tj tj merged commit c07dd50 into tj:master Jan 3, 2019
@tj
Copy link
Owner

tj commented Jan 3, 2019

thanks!

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.

2 participants