Packages

pg

8.23.1 · 30 Sep 2026MIT106.3M / weekRepositorynpmAtom feed

Your version

5.1.0

10 Jun 2016Where it was published

5.2.1 is the newest release of 5.x.

In short

1 changed

Security

1 advisory affects 5.1.0; 5.2.1 fixes them

Release note

  • Make the query object returned from client.query implement the promise interface. This is the first step towards promisifying more of the node-postgres api.

Example:

var client = new Client()
client.connect()
client.query('SELECT $1::text as name', ['brianc']).then(function (res) {
  console.log('hello from', res.rows[0])
  client.end()
})

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.