node-pg-migrate breaking changes
node-pg-migrate 9.0.0 (July 17, 2026) is its newest release with breaking changes, 18 of them. The first: Removed StringIdGenerator. Every breaking API change we have recorded in node-pg-migrate on npm: 186 breaking changes in 9 versions. Below, its 9 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 9.0.1, released December 3, 2026. Source repository
Packages on npm run on Node.js. Node.js end of life dates.
node-pg-migrate 9.0.0 breaking changes
- Removed
StringIdGenerator
StringIdGenerator is replaced with a generator function. Update code that uses StringIdGenerator to use a generator function instead. github.com - Behavior changed
This release adds jiti support as a breaking change to how config and migration files are loaded. Check your config and migration loading setup after upgrading. github.com - Behavior changed
addConstraint
addConstraint now throws an error if no constraint options are provided. Always pass constraint options. github.com - Behavior changed
alterPolicy
alterPolicy now throws an error if no policy options are provided. Always pass policy options. github.com - Behavior changed
alterSequence
alterSequence now throws an error if no sequence options are provided. Always pass sequence options. github.com - Behavior changed
alterTable
alterTable now throws an error if no options are provided. Always pass options. github.com - Signature changed
AddToOperatorFamilyFn
Was type AddToOperatorFamilyFn = (operatorFamilyName: Name, indexMethod: Name, operatorList: OperatorListDefinition[]) => string; now type AddToOperatorFamilyFn = (operatorFamilyName: Name, indexMethod: string, operatorList... npmjs.com - Signature changed
CreateOperatorClassFn
Was type CreateOperatorClassFn = (operatorClassName: Name, type: Type, indexMethod: Name, operatorList: OperatorListDefinition[], operatorClassOptions: CreateOperatorClassOptions & DropOperatorClassOptions) => string; now type... npmjs.com - Signature changed
CreateOperatorFamilyFn
Was type CreateOperatorFamilyFn = (operatorFamilyName: Name, indexMethod: Name, operatorFamilyOptions?: CreateOperatorFamilyOptions & DropOperatorFamilyOptions) => string; now type CreateOperatorFamilyFn = (operatorFamilyName: Name... npmjs.com - Signature changed
DropConstraintOptions
Was type DropConstraintOptions = DropOptions; now type DropConstraintOptions = DropOptions & {ifTableExists?: boolean;}. npmjs.com - Signature changed
DropOperatorClass
Was type DropOperatorClass = (operatorClassName: Name, indexMethod: Name, dropOptions?: DropOperatorClassOptions) => string; now type DropOperatorClass = (operatorClassName: Name, indexMethod: string, dropOptions?... npmjs.com - Signature changed
DropOperatorFamily
Was type DropOperatorFamily = (operatorFamilyName: Name, newSchemaName: Name, dropOptions?: DropOperatorFamilyOptions) => string; now type DropOperatorFamily = (operatorFamilyName: Name, indexMethod: string, dropOptions?... npmjs.com - Signature changed
indexMethod
The indexMethod option in operator functions now takes a string instead of Name. Update callers that pass a Name value. github.com - Signature changed
Name
Was type Name = string | {schema?: string; name: string;}; now type Name = string | {schema?: string; name: string;} | PgLiteralValue. npmjs.com - Signature changed
RemoveFromOperatorFamily
Was type RemoveFromOperatorFamily = (operatorFamilyName: Name, indexMethod: Name, operatorList: OperatorListDefinition[]) => string; now type RemoveFromOperatorFamily = (operatorFamilyName: Name, indexMethod: string, operatorList... npmjs.com - Signature changed
RenameOperatorClassFn
Was type RenameOperatorClassFn = (oldOperatorClassName: Name, indexMethod: Name, newOperatorClassName: Name) => string; now type RenameOperatorClassFn = (oldOperatorClassName: Name, indexMethod: string, newOperatorClassName: Name) =>... npmjs.com - Signature changed
RenameOperatorFamilyFn
Was type RenameOperatorFamilyFn = (oldOperatorFamilyName: Name, indexMethod: Name, newOperatorFamilyName: Name) => string; now type RenameOperatorFamilyFn = (oldOperatorFamilyName: Name, indexMethod: string, newOperatorFamilyName: Name) =>... npmjs.com - Signature changed
RunnerOption
Was type RunnerOption = RunnerOptionConfig & (RunnerOptionClient | RunnerOptionUrl); now type RunnerOption = RunnerOptionConfig & MigrationLoaderConfig & (RunnerOptionClient | RunnerOptionUrl). npmjs.com
node-pg-migrate 9.0.0-alpha.1 breaking changes
- Default changed
The default dotenv config now runs in quiet mode, so less output is printed. Set the option explicitly if you need the previous output. github.com
node-pg-migrate 9.0.0-alpha.0 breaking changes
- Removed
silent
The silent option in the dotenv config was removed because it was unused. Remove it from any config that sets it. github.com - Removed
StringIdGenerator
StringIdGenerator has been removed in favor of a generator function. Update code that uses it. github.com - Behavior changed
Migration files are now loaded through jiti. Check that existing migration loading still works in your setup. github.com - Behavior changed
addConstraint
Calls to addConstraint without options now throw an error. Pass the constraint options explicitly. github.com - Behavior changed
alterPolicy
Calls to alterPolicy without options now throw an error. Pass the policy options explicitly. github.com - Behavior changed
alterSequence
Calls to alterSequence without options now throw an error. Pass the sequence options explicitly. github.com - Behavior changed
alterTable
Calls to alterTable without options now throw an error. Pass the table options explicitly. github.com - Signature changed
The indexMethod parameter in operator functions now takes a string instead of a Name type. Update callers that pass the old type. github.com
node-pg-migrate 8.0.0 breaking changes
- Removed
AlterColumnOptions.generated
Use sequenceGenerated instead. npmjs.com - Removed
ColumnDefinition.generated
Use sequenceGenerated instead. npmjs.com - Removed
CreateIndexOptions.opclass
CreateIndexOptions.opclass was removed in node-pg-migrate 8.0.0 npmjs.com - Removed
default
default was removed in node-pg-migrate 8.0.0 npmjs.com - Removed
PgType.BIGINT
PgType.BIGINT was removed in node-pg-migrate 8.0.0 npmjs.com - Removed
PgType.BIGSERIAL
PgType.BIGSERIAL was removed in node-pg-migrate 8.0.0 npmjs.com - Removed
PgType.BIT_1
PgType.BIT_1 was removed in node-pg-migrate 8.0.0 npmjs.com - Removed
PgType.BIT_VARYING
PgType.BIT_VARYING was removed in node-pg-migrate 8.0.0 npmjs.com - Removed
PgType.BOOL
PgType.BOOL was removed in node-pg-migrate 8.0.0 npmjs.com - Removed
PgType.BOOLEAN
PgType.BOOLEAN was removed in node-pg-migrate 8.0.0 npmjs.com
And 142 more in this version. Sign up to see every change
node-pg-migrate 8.0.0-rc.5 breaking changes
- Behavior changed
The CLI now ensures environment variables are set before running migrations. Make sure required variables are set beforehand. github.com
node-pg-migrate 8.0.0-rc.3 breaking changes
- Behavior changed
Calling the tool without the db option now throws an error. Make sure the db option is always provided. github.com
Older versions
3 older versions.
Show 3 older versions
node-pg-migrate 8.0.0-rc.2 breaking changes
- Removed
Default exports were removed. Use named imports instead. github.com - Default changed
checkOrder
Migration order is checked by default now. Set checkOrder explicitly if you need the previous behavior. github.com
node-pg-migrate 8.0.0-rc.1 breaking changes
- Removed
Features that were deprecated in earlier versions have been removed. Stop using them before upgrading. github.com
node-pg-migrate 8.0.0-rc.0 breaking changes
- Removed
Node.js 18 is no longer supported. Upgrade to a newer Node.js version before using this release. github.com - Removed
The package is now ESM-only, so CommonJS require() of it no longer works. Switch to ESM imports. github.com
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.