npm / pg-promise
pg-promise
What changed in pg-promise 12, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-20.
1 breaking2 new APIs and options1 behavior and defaults1 tooling1 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initpg-promise 126 changes
Breaking changes 1
Legacy custom object and class inspections were removed; console output now uses NodeJS's default inspection, including color output for library class instances.
New APIs and options 2
The constructor accepts duplicate with values error, skip, or replace, allowing developers to choose how duplicate columns are handled.
The method accepts the skip option for handling duplicate columns when extending a ColumnSet.
Behavior and default changes 1
NodeJS v26 is now officially supported.
Tooling 1
TypeScript declarations for ColumnSet were updated.
Fixes and other changes 1
Fixes an issue with TableName.