question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Deprecated Buffer usage

See original GitHub issue

The 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:closed
  • Created 5 years ago
  • Reactions:4
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
brianccommented, Feb 20, 2019

published a fix pg@7.8.1 - please lemme know if you hit any other deprecation warnings! thanks.

1reaction
brianccommented, Feb 20, 2019

I should have a fix for this today.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found