Skip to content

4.5.0-rc1

Pre-release
Pre-release

Choose a tag to compare

@okomarov okomarov released this 15 Oct 13:53
· 93 commits to main since this release

@steadybrew/postgresjs@4.5.0-rc1 sends queries with values in one round trip instead of two, and adds Node.js 22 support and await using. No breaking changes.

npm install @steadybrew/postgresjs@4.5.0-rc1
  • Queries with values can take one round trip instead of two, with parameter_types: 'client'.
  • parameter_types: 'warn' reports the queries 'client' would send differently.
  • Queries whose values are all booleans, bigints, Dates, Buffers or sql.typed() values with a type take one round trip in every mode.
  • dd-trace records Postgres.js spans again when the fork is installed as postgres.
  • Code that assigns err.stack on a query error no longer throws on Node 22 and newer.
  • Node.js 22 is supported.
  • await using sql = postgres() ends the pool, and using reserved = await sql.reserve() releases the connection, when they go out of scope.
  • The types need @types/node 22 or newer, or skipLibCheck.

See the changelog for details and upstream references.

Feedback wanted before 4.5.0: what parameter_types: 'warn' reports on a real workload that the README doesn't explain.

Validation: CI passed on Node 22/24/26 × PostgreSQL 15–18, Deno and workerd (run).