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

Fixed new Buffer() deprecation due to security and usability issues #73

Merged
merged 1 commit into from
Jul 2, 2020

Conversation

promatik
Copy link
Contributor

@promatik promatik commented Jul 2, 2020

This PR fixes the new Deprecation Warning on Chromium 83 (used by Electron 9).
DeprecationWarning: Buffer() is deprecated due to security and usability issues

Tested it locally on my project, everything worked as expected.

@promatik
Copy link
Contributor Author

promatik commented Jul 2, 2020

Hi @patrickhulce, could you please review this PR and tag a new version?
Many people are migrating to Electron 9 and this PR avoids the frustrating deprecation warning.
Thank you!

Copy link
Collaborator

@patrickhulce patrickhulce left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @promatik!

FWIW though I wouldn't use this library in electron, sharp+electron-rebuild or the Canvas API would both be much better options

@patrickhulce patrickhulce merged commit 49be0e4 into jpeg-js:master Jul 2, 2020
@promatik promatik deleted the new-buffer-deprecation branch July 2, 2020 20:45
@promatik
Copy link
Contributor Author

promatik commented Jul 2, 2020

I'm using jimp, and they are using this library.
Thank you for the tip @patrickhulce, I'll take a look on sharp, maybe it does what I need.

zed-0xff pushed a commit to zed-0xff/jpeg-js that referenced this pull request Feb 24, 2023
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.

None yet

2 participants