Skip to content

Avoid using deprecated Buffer constructor#312

Merged
ctalkington merged 1 commit intoarchiverjs:masterfrom
ChALkeR:patch-1
May 24, 2018
Merged

Avoid using deprecated Buffer constructor#312
ctalkington merged 1 commit intoarchiverjs:masterfrom
ChALkeR:patch-1

Conversation

@ChALkeR
Copy link
Copy Markdown
Contributor

@ChALkeR ChALkeR commented Mar 3, 2018

Buffer.concat([]) returns an empty buffer all the way down to 0.8.x.

Alternative way would be to just use Buffer.alloc(0) and drop support for outdated Node.js versions (< 4.5.0 || >= 5.0.0 < 5.10.0).

Refs:
https://nodejs.org/api/deprecations.html#deprecations_dep0005_buffer_constructor

Tracking: nodejs/node#19079

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