Skip to content

Replace deprecated Buffer constructors with Buffer.from#62

Open
JoseCoque wants to merge 1 commit intoguyht:masterfrom
four-technologies-org:master
Open

Replace deprecated Buffer constructors with Buffer.from#62
JoseCoque wants to merge 1 commit intoguyht:masterfrom
four-technologies-org:master

Conversation

@JoseCoque
Copy link

new Buffer() has been deprecated for a while now while still being used in the node.js version.

I've replaced the constructor call with their new replacements which is Buffer.from() and Buffer.alloc().

Reference:
https://nodejs.org/docs/latest-v18.x/api/buffer.html

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.

1 participant