pg
8.23.1 · 30 Sep 2026MIT106.3M / weekRepositorynpmAtom feed
Your version
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
- CriticalRemote Code Execution in pgGHSA-wc9v-mj63-m9g5 · 24 Jul 2018Fixed in 5.2.1
Release note
Make the query object returned from
client.queryimplement 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.