Pg-promise: Using Buffer without `new` will soon stop working.

Created on 25 Nov 2016  路  4Comments  路  Source: vitaly-t/pg-promise

Hey, I'm getting a warning when using pg-promise.

I'm using [email protected] and [email protected].

var pgp = require('pg-promise')();

yields the following output:

(node:60294) DeprecationWarning: Using Buffer without new will soon stop working. Use new Buffer(), or preferably Buffer.from(), Buffer.allocUnsafe() or Buffer.alloc() instead.

Most helpful comment

Version 7.2.1 of Node.js removed both the warning and the plans for making the change in 7.x :smile:

Problem solved! 馃樃

All 4 comments

I believe this is a duplicate of #234

@MitMaro thanks, it is a duplicate indeed.

@paleite it will get attention by the time Node.js 7.x becomes an LTS ;)

Granted, the driver's support is less than good these days, so I'm looking at alternatives.

Version 7.2.1 of Node.js removed both the warning and the plans for making the change in 7.x :smile:

Problem solved! 馃樃

@vitaly-t That's what I call effective problem solving! 馃槃

Was this page helpful?
0 / 5 - 0 ratings

Related issues

seanh1414 picture seanh1414  路  4Comments

cmelone picture cmelone  路  3Comments

hawkeye64 picture hawkeye64  路  4Comments

illarionvk picture illarionvk  路  3Comments

leemhenson picture leemhenson  路  5Comments