Deprecated Buffer usage
envgap__brianc__node-postgres-1811
01 / FAILURE SIGNATURE
As reported upstream
No identifying execution failure has been captured.
Not a benchmark task.
- The project already builds and runs before the fix, so there is nothing to repair.
02 / ENVIRONMENT RECIPE
- Base commit
fcd0f02210f532bf2d823ea05105f4aaade389eb- Manifest
package.json- Reproduce
Awaiting issue-specific recipe- Run under trace
Awaiting a meaningful runtime command
03 / ORIGINAL ISSUE TEXT
brianc/node-postgres #1811 · read the original 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/504 / LABELS
Labels from the report text only; not yet run
No supported category has been assigned.
Label rules and the text that matched
[]