Deprecated Buffer usage
See original GitHub issueThe module still depends on a version of packet-reader
that has deprecated Buffer usage.
consoleStream.js:43
(node:44680) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
warning.js:18
at showFlaggedDeprecation (buffer.js:160:11)
at new Buffer (buffer.js:175:3)
at module.exports.Reader.addChunk (.packages\packet-reader@f4fc956ec61b187cd18790c0b0a6fa5d1d3a30de4a5493e3277460485ed188f2\index.js:35:21)
at Socket.<anonymous> (.packages\pg@1070266975c840c14642630da3a4733f2608c038eac5d97764832e1dff16eccb\lib\connection.js:116:18)
The PR to fix this has been open for 2 months. https://github.com/brianc/node-packet-reader/pull/5
Issue Analytics
- State:
- Created 5 years ago
- Reactions:4
- Comments:8 (7 by maintainers)
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
The Buffer() constructor has been deprecated for a while. Is this really an issue? Surveys of code in the npm ecosystem have shown...
Read more >Avoid using Buffer deprecated APIs | CAST Appmarq
js API could lead to security compliancy issues. The Buffer() function and new Buffer() constructor are deprecated due to API usability issues that...
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 >[BUG]: DeprecationWarning: Buffer() is deprecated due to ...
I think it's related to data-driven test cases coming from my caseData.json file, when I remove it the Buffer() issues go away, but...
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 Free
Top 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
published a fix
pg@7.8.1
- please lemme know if you hit any other deprecation warnings! thanks.I should have a fix for this today.