Packages

pg

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

Upgrading pg From 7.4.1 to 8.23.1

83 releases in betweennotes for 36

Other targets from 7.4.1Newest 7.x7.18.2
  1. 7.4.1yours
  2. 16 releases
  3. 7.14.0breaking
  4. 10 releases
  5. 8.0.0major
  6. 19 releases
  7. 8.8.0breaking
  8. 34 releases
  9. 8.23.1target
3+
changes to make
0
advisories fixed
28+
new
5+
fixes

Counted from 36 of 83 release notes. Advisories are counted from the advisory database, in full.

Before you upgrade

Tick each one off as you go
  • Breaking8.8.0
  • Breaking7.14.0
  • Deprecated7.18.0

Release by release

  1. 8.23.1no release note

  2. 8.23.0

    8 Aug 20261 new
  3. 8.22.0

    19 Jun 20261 new
  4. 8.21.0

    18 May 20263 new · 1 fix
  5. 8.20.0

    4 Mar 20261 new
    • New

      Add onConnect callback to pg.Pool constructor options allowing for async initialization of newly created & connected pooled clients.

  6. 8.16.1 – 8.19.08 releases, nothing new or fixed; 5 without a note

  7. 8.16.0

    12 May 20251 new
  8. 8.15.1 – 8.15.64 releases, no release note

25 other lines we could not sort, mostly version bumps
  • Pass connection parameters to password callback.

    8.19.0
  • Return the client instance as the result of calling connect (previously it was void).

    8.18.0
  • Throw correct error if database URL parsing fails.

    8.17.0
  • Better errors for SASL authentication.

    8.9.0
  • Use native crypto module for SASL authentication.

    8.9.0
  • Catch previously uncatchable errors thrown in pool.query.

    8.8.0
  • Better SASL error messages & more validation on bad configuration.

    8.6.0
  • Convert pg-query-stream internals to typescript.

    8.5.0
  • Switch to optional peer dependencies & remove semver package which has been a small thorn in the side of a few users.

    8.4.0
  • Export DatabaseError from pg-protocol.

    8.4.0

3 internal lines (docs, tests, tooling) left out.

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.