node-tunnel icon indicating copy to clipboard operation
node-tunnel copied to clipboard

Use `Buffer.from` instead of `new Buffer`

Open ericyd opened this issue 3 years ago • 0 comments

new Buffer has been deprecated since Node v6.0.0

When this lib is bundled with zero-dependencies, e.g. in a serverless function like AWS lambda, this code emits a deprecation warning.

Not a huge deal but figured it might be nice to update it.

Buffer.from was added in Node v5.10.0 so this probably counts as a major version bump since it will break apps running Node < v5.10.0

ericyd avatar Oct 06 '21 14:10 ericyd