Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Use Buffer.from instead of new Buffer #44

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ericyd
Copy link

@ericyd ericyd commented Oct 6, 2021

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant