Packages

pg

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

Your version

5.0.0

major7 Jun 2016Where it was published

5.2.1 is the newest release of 5.x.

In short

1 breaking3 new

  • Breaking

    require('pg').native now returns null if the native bindings cannot be found; previously, this threw an exception.

Security

1 advisory affects 5.0.0; 5.2.1 fixes them

Release note

Breaking Changes

  • Breaking

    require('pg').native now returns null if the native bindings cannot be found; previously, this threw an exception.

New Features

  • Better error message when passing undefined as a query parameter

  • Support for defaults.connectionString

  • Support for returnToHead being passed to generic pool

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.