Skip to content

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

Merged
patrickhulce merged 1 commit intojpeg-js:masterfrom
promatik:new-buffer-deprecation
Jul 2, 2020
Merged

Fixed new Buffer() deprecation due to security and usability issues#73
patrickhulce merged 1 commit intojpeg-js:masterfrom
promatik:new-buffer-deprecation

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.

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.

2 participants