Packages

pg

8.23.1 · 30 Sep 2026MIT106M / weekRepositorynpmAtom feed

Upgrading pg From 7.18.2 to 8.0.0

1 release in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 7.18.2Latest8.23.1
The note of 8.0.0 lists no breaking change or deprecation, which is rare for a major.
  1. 7.18.2yours
  2. 8.0.0target
?
changes to make
0
advisories fixed
0
new
0
fixes
7 other lines we could not sort, mostly version bumps
  • 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.

    8.0.0
  • 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.

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

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

    8.0.0
  • Make pg.native non enumerable.

    8.0.0
  • notice messages are no longer instances of Error.

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

    8.0.0

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.