Repository navigation
4.5.0-rc1
Pre-release
Pre-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 orsql.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.stackon a query error no longer throws on Node 22 and newer. - Node.js 22 is supported.
await using sql = postgres()ends the pool, andusing reserved = await sql.reserve()releases the connection, when they go out of scope.- The types need
@types/node22 or newer, orskipLibCheck.
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).