Keep pg
npm install pg@npm:@stackline/pgNo application import changes are required.
PostgreSQL client / MIT
A maintained continuation of [email protected] with its public client, pool, protocol, parser, callback, promise, CommonJS, ESM, and deep-import contracts preserved.
npm install @stackline/pg
Keep existing imports with npm install pg@npm:@stackline/pg.
01 / Quick start
const { Pool } = require('@stackline/pg')
const pool = new Pool({
connectionString: process.env.DATABASE_URL
})
const result = await pool.query(
'select $1::text as message',
['hello']
)
await pool.end()02 / Compatibility contract
Queries and transactions. Clients, pools, callbacks, promises, notifications, SSL, SCRAM, custom parsers, and COPY extensions retain the upstream contract.
Module systems. CommonJS and ESM entry points are verified. Supported pg/lib/* deep imports remain exported.
Native driver. The historical lazy pg.native API remains available when the consumer explicitly installs pg-native.
03 / Production closure
@stackline/[email protected] replaces the pool edge@stackline/[email protected] removes the archived parser branchnpm ls --all --omit=dev reports a valid treenpm audit --omit=dev reports zero vulnerabilities04 / Migration
05 / Reference