DeprecationWarning: using Buffer without 'new'
In Node.js v7.x (which is nowadays the 'current' Node.js branch), a DeprecationWarning is shown because of line 299 of connection.js.
Not a huge problem for now, but would be nice to get rid off I think. :)
Stacktrace:
DeprecationWarning: Using Buffer without `new` will soon stop working. Use `new Buffer()`, or preferably `Buffer.from()`, `Buffer.allocUnsafe()` or `Buffer.alloc()` instead.
at Buffer (buffer.js:79:13)
at Object.<anonymous> (C:\project\node_modules\pg\lib\connection.js:299:19)
Edit: looks like this is already getting fixed by either #1156 or #1154, my bad!
I appreciate the report - it should be fixed soon!
Did this ever get fixed?
Still happening to me. I'm using node 7.1.0.
@abduncan Not yet, as far as I know. I don't know why this issue was closed.
https://github.com/brianc/node-postgres/issues/1163
Stil having issues with this...
@Zabanaa @unstephenk Upgrade to Node ~~7.1.2~~ 7.2.1.
@charmander I'm on 7.2.0
@GastonRosso Sorry, that was a typo; upgrade to 7.2.1.