Packages

pg

8.23.1 · 30 Sep 2026MIT106M / weekRepositorynpmAtom feed

Your version

8.0.0

major30 Mar 2020Where it was published

8.23.1 is the newest release of 8.x.

In short

7 changed

Release note

pg@8.0.0

note: for detailed release notes please check here

  • Remove versions of node older than 6 lts from the test matrix. pg>=8.0 may still work on older versions but it is no longer officially supported.

  • Change default behavior when not specifying rejectUnauthorized with the SSL connection parameters. Previously we defaulted to rejectUnauthorized: false when it was not specifically included. We now default to rejectUnauthorized: true. Manually specify { ssl: { rejectUnauthorized: false } } for old behavior.

  • Change default database when not specified to use the user config option if available. Previously process.env.USER was used.

  • Change pg.Pool and pg.Query to be an es6 class.

  • Make pg.native non enumerable.

  • notice messages are no longer instances of Error.

  • Passwords no longer show up when instances of clients or pools are logged.

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.