Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Buffer.from instead of new Buffer #339

Merged
merged 2 commits into from
Sep 8, 2024

Conversation

ericbf
Copy link
Contributor

@ericbf ericbf commented Oct 21, 2023

The Buffer constructor is deprecated, so we should use the recommended Buffer.from instead.

Fixes #338

The `Buffer` constructor [is deprecated](https://nodejs.org/api/buffer.html#new-bufferarray), so we should use the recommended `Buffer.from` instead.
@julianhille
Copy link
Owner

this seems to trigger issues, needs further investigation

@ericbf
Copy link
Contributor Author

ericbf commented Oct 23, 2023

this seems to trigger issues, needs further investigation

Hmmm. I didn’t even do any further testing for this one as I figured it was a drop-in replacement. Will look a little further.

@julianhille
Copy link
Owner

Might has To-Do with this: #258

@julianhille julianhille merged commit bb5222f into julianhille:develop Sep 8, 2024
18 of 107 checks passed
@ericbf ericbf deleted the use-buffer-from branch September 8, 2024 14:19
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.

MuhammaraJS using deprecated Buffer constructor
2 participants