Deprecated Buffer usage in load-bmfont
See original GitHub issueExpected Behavior
No deprecation warnings are generated by using jimp.
Current Behavior
load-bmfont (at least) uses the Buffer
constructor, which is deprecated.
Failure Information (for bugs)
Steps to Reproduce
require("jimp");
Context
I tried resolving this in load-bmfont, but the maintainers are not responding in inquiries.
- Jimp Version: 0.5.6
- Operating System: Windows
- Node version: LTS
Failure Logs
(node:21464) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
Issue Analytics
- State:
- Created 5 years ago
- Comments:11
Top Results From Across the Web
Buffer() is deprecated due to security and usability issues ...
The use of the deprecated new Buffer() constructor (i.E. as used by Yarn) can cause deprecation warnings. Therefore one should NOT use the ......
Read more >Porting to the Buffer.from() / Buffer.alloc() API - Node.js
This guide explains how to migrate to safe Buffer constructor methods. The migration fixes the following deprecation warning: The Buffer() and new Buffer() ......
Read more >Understanding the Buffer Deprecation in Node.js 10
Deprecating the Buffer constructor came back into the conversation recently because improper usage of the Buffer constructor is still a path ...
Read more >Buffer() is deprecated due to security and usability issues
Description: I've got a warning for deprecation, please reconsider to change Buffer(). DeprecationWarning: Buffer() is deprecated due to ...
Read more >no-buffer-constructor - ESLint - Pluggable JavaScript Linter
This rule was deprecated in ESLint v7.0.0. Please use the corresponding rule in eslint-plugin-node . In Node.js, the behavior of the Buffer constructor...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
hmmm okay. i’ll give it a try later. Thanks for the code!
Well, my PR in the dependency is still open, but the module seems to be very unmaintained or the maintainer very unreliable. If the funcationality is important, maybe it should be moved into the core and the code could be fixed there.
I personally have no interest in working on that, as we have moved away from jimp, due to this poor example of maintenance. If someone feels the need to work on a fix for this, please open a new issue, so that I don’t get any more notifications about this.