Skip to content

v2.1.0

Latest

Choose a tag to compare

@olomix olomix released this 10 Feb 09:17
· 1 commit to master since this release

What's Changed

New Features

  • Functional options for connection configuration — New WithPoolConfig option lets you customize *pgxpool.Config per-test or globally via Pgpool.Options. Per-test options override global ones.

Bug Fixes

  • Fix missing error in t.Fatal() callcreateRndDBPool now passes the error to t.Fatal(err) instead of calling t.Fatal() with no message.
  • Fix ConnConfig leak in std cleanupstdlib.UnregisterConnConfig is now called via defer so it runs even when cleanup returns early due to unreleased connections or a db.Close() failure.
  • Unregister ConnConfig on sql.Open failure — Added missing stdlib.UnregisterConnConfig call on the error path when sql.Open fails.

Dependencies

  • Upgrade pgx to v5.8.0 — Drops the transitive golang.org/x/crypto dependency that carried a CVE.
  • Minimum Go version bumped to 1.24

CI / Maintenance

  • Updated GitHub Actions (checkout, setup-go, golangci-lint-action) to latest versions.
  • Test matrix now covers Go 1.24 and 1.25 on ubuntu-latest instead of container-based builds.
  • README rewritten for clarity.