---
title: "node-pg-migrate 9.0.0 Breaking Changes on npm | Since.dev"
description: "What each node-pg-migrate release removed, renamed or changed: 186 breaking changes in 9 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/node-pg-migrate
last_updated: 2026-12-04
---

# 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

Latest version `9.0.1`, released December 3, 2026. [Source repository](https://github.com/salsita/node-pg-migrate)

Packages on npm run on Node.js. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

- From [8.0.0](#v-8-0-0) to [9.0.0](#v-9-0-0): 27 breaking changes in 3 versions.

## node-pg-migrate 9.0.0 breaking changes

node-pg-migrate 9.0.0, released July 17, 2026: 18 breaking changes.

- **Removed** `StringIdGenerator`  

StringIdGenerator is replaced with a generator function. Update code that uses StringIdGenerator to use a generator function instead. [github.com](https://github.com/salsita/node-pg-migrate/releases/tag/v9.0.0)
- **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](https://github.com/salsita/node-pg-migrate/releases/tag/v9.0.0)
- **Behavior changed** `addConstraint`  

addConstraint now throws an error if no constraint options are provided. Always pass constraint options. [github.com](https://github.com/salsita/node-pg-migrate/releases/tag/v9.0.0)
- **Behavior changed** `alterPolicy`  

alterPolicy now throws an error if no policy options are provided. Always pass policy options. [github.com](https://github.com/salsita/node-pg-migrate/releases/tag/v9.0.0)
- **Behavior changed** `alterSequence`  

alterSequence now throws an error if no sequence options are provided. Always pass sequence options. [github.com](https://github.com/salsita/node-pg-migrate/releases/tag/v9.0.0)
- **Behavior changed** `alterTable`  

alterTable now throws an error if no options are provided. Always pass options. [github.com](https://github.com/salsita/node-pg-migrate/releases/tag/v9.0.0)
- **Signature changed** `AddToOperatorFamilyFn`  

Was type AddToOperatorFamilyFn = (operatorFamilyName: Name, indexMethod: Name, operatorList: OperatorListDefinition\[\]) => string; now type AddToOperatorFamilyFn = (operatorFamilyName: Name, indexMethod: string, operatorList... [npmjs.com](https://www.npmjs.com/package/node-pg-migrate/v/9.0.0)
- **Signature changed** `CreateOperatorClassFn`  

Was type CreateOperatorClassFn = (operatorClassName: Name, type: Type, indexMethod: Name, operatorList: OperatorListDefinition\[\], operatorClassOptions: CreateOperatorClassOptions & DropOperatorClassOptions) => string; now type... [npmjs.com](https://www.npmjs.com/package/node-pg-migrate/v/9.0.0)
- **Signature changed** `CreateOperatorFamilyFn`  

Was type CreateOperatorFamilyFn = (operatorFamilyName: Name, indexMethod: Name, operatorFamilyOptions?: CreateOperatorFamilyOptions & DropOperatorFamilyOptions) => string; now type CreateOperatorFamilyFn = (operatorFamilyName: Name... [npmjs.com](https://www.npmjs.com/package/node-pg-migrate/v/9.0.0)
- **Signature changed** `DropConstraintOptions`  

Was type DropConstraintOptions = DropOptions; now type DropConstraintOptions = DropOptions & {ifTableExists?: boolean;}. [npmjs.com](https://www.npmjs.com/package/node-pg-migrate/v/9.0.0)
- **Signature changed** `DropOperatorClass`  

Was type DropOperatorClass = (operatorClassName: Name, indexMethod: Name, dropOptions?: DropOperatorClassOptions) => string; now type DropOperatorClass = (operatorClassName: Name, indexMethod: string, dropOptions?... [npmjs.com](https://www.npmjs.com/package/node-pg-migrate/v/9.0.0)
- **Signature changed** `DropOperatorFamily`  

Was type DropOperatorFamily = (operatorFamilyName: Name, newSchemaName: Name, dropOptions?: DropOperatorFamilyOptions) => string; now type DropOperatorFamily = (operatorFamilyName: Name, indexMethod: string, dropOptions?... [npmjs.com](https://www.npmjs.com/package/node-pg-migrate/v/9.0.0)
- **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](https://github.com/salsita/node-pg-migrate/releases/tag/v9.0.0)
- **Signature changed** `Name`  

Was type Name = string | {schema?: string; name: string;}; now type Name = string | {schema?: string; name: string;} | PgLiteralValue. [npmjs.com](https://www.npmjs.com/package/node-pg-migrate/v/9.0.0)
- **Signature changed** `RemoveFromOperatorFamily`  

Was type RemoveFromOperatorFamily = (operatorFamilyName: Name, indexMethod: Name, operatorList: OperatorListDefinition\[\]) => string; now type RemoveFromOperatorFamily = (operatorFamilyName: Name, indexMethod: string, operatorList... [npmjs.com](https://www.npmjs.com/package/node-pg-migrate/v/9.0.0)
- **Signature changed** `RenameOperatorClassFn`  

Was type RenameOperatorClassFn = (oldOperatorClassName: Name, indexMethod: Name, newOperatorClassName: Name) => string; now type RenameOperatorClassFn = (oldOperatorClassName: Name, indexMethod: string, newOperatorClassName: Name) =>... [npmjs.com](https://www.npmjs.com/package/node-pg-migrate/v/9.0.0)
- **Signature changed** `RenameOperatorFamilyFn`  

Was type RenameOperatorFamilyFn = (oldOperatorFamilyName: Name, indexMethod: Name, newOperatorFamilyName: Name) => string; now type RenameOperatorFamilyFn = (oldOperatorFamilyName: Name, indexMethod: string, newOperatorFamilyName: Name) =>... [npmjs.com](https://www.npmjs.com/package/node-pg-migrate/v/9.0.0)
- **Signature changed** `RunnerOption`  

Was type RunnerOption = RunnerOptionConfig & (RunnerOptionClient | RunnerOptionUrl); now type RunnerOption = RunnerOptionConfig & MigrationLoaderConfig & (RunnerOptionClient | RunnerOptionUrl). [npmjs.com](https://www.npmjs.com/package/node-pg-migrate/v/9.0.0)

## node-pg-migrate 9.0.0-alpha.1 breaking changes

node-pg-migrate 9.0.0-alpha.1, released July 17, 2026: 1 breaking change.

- **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](https://github.com/salsita/node-pg-migrate/releases/tag/v9.0.0-alpha.1)

## node-pg-migrate 9.0.0-alpha.0 breaking changes

node-pg-migrate 9.0.0-alpha.0, released July 17, 2026: 8 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](https://github.com/salsita/node-pg-migrate/releases/tag/v9.0.0-alpha.0)
- **Removed** `StringIdGenerator`  

StringIdGenerator has been removed in favor of a generator function. Update code that uses it. [github.com](https://github.com/salsita/node-pg-migrate/releases/tag/v9.0.0-alpha.0)
- **Behavior changed**  

Migration files are now loaded through jiti. Check that existing migration loading still works in your setup. [github.com](https://github.com/salsita/node-pg-migrate/releases/tag/v9.0.0-alpha.0)
- **Behavior changed** `addConstraint`  

Calls to addConstraint without options now throw an error. Pass the constraint options explicitly. [github.com](https://github.com/salsita/node-pg-migrate/releases/tag/v9.0.0-alpha.0)
- **Behavior changed** `alterPolicy`  

Calls to alterPolicy without options now throw an error. Pass the policy options explicitly. [github.com](https://github.com/salsita/node-pg-migrate/releases/tag/v9.0.0-alpha.0)
- **Behavior changed** `alterSequence`  

Calls to alterSequence without options now throw an error. Pass the sequence options explicitly. [github.com](https://github.com/salsita/node-pg-migrate/releases/tag/v9.0.0-alpha.0)
- **Behavior changed** `alterTable`  

Calls to alterTable without options now throw an error. Pass the table options explicitly. [github.com](https://github.com/salsita/node-pg-migrate/releases/tag/v9.0.0-alpha.0)
- **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](https://github.com/salsita/node-pg-migrate/releases/tag/v9.0.0-alpha.0)

## node-pg-migrate 8.0.0 breaking changes

node-pg-migrate 8.0.0, released May 19, 2025: 152 breaking changes.

- **Removed** `AlterColumnOptions.generated`  

Use sequenceGenerated instead. [npmjs.com](https://www.npmjs.com/package/node-pg-migrate/v/8.0.0)
- **Removed** `ColumnDefinition.generated`  

Use sequenceGenerated instead. [npmjs.com](https://www.npmjs.com/package/node-pg-migrate/v/8.0.0)
- **Removed** `CreateIndexOptions.opclass`  

CreateIndexOptions.opclass was removed in node-pg-migrate 8.0.0 [npmjs.com](https://www.npmjs.com/package/node-pg-migrate/v/8.0.0)
- **Removed** `default`  

default was removed in node-pg-migrate 8.0.0 [npmjs.com](https://www.npmjs.com/package/node-pg-migrate/v/8.0.0)
- **Removed** `PgType.BIGINT`  

PgType.BIGINT was removed in node-pg-migrate 8.0.0 [npmjs.com](https://www.npmjs.com/package/node-pg-migrate/v/8.0.0)
- **Removed** `PgType.BIGSERIAL`  

PgType.BIGSERIAL was removed in node-pg-migrate 8.0.0 [npmjs.com](https://www.npmjs.com/package/node-pg-migrate/v/8.0.0)
- **Removed** `PgType.BIT_1`  

PgType.BIT_1 was removed in node-pg-migrate 8.0.0 [npmjs.com](https://www.npmjs.com/package/node-pg-migrate/v/8.0.0)
- **Removed** `PgType.BIT_VARYING`  

PgType.BIT_VARYING was removed in node-pg-migrate 8.0.0 [npmjs.com](https://www.npmjs.com/package/node-pg-migrate/v/8.0.0)
- **Removed** `PgType.BOOL`  

PgType.BOOL was removed in node-pg-migrate 8.0.0 [npmjs.com](https://www.npmjs.com/package/node-pg-migrate/v/8.0.0)
- **Removed** `PgType.BOOLEAN`  

PgType.BOOLEAN was removed in node-pg-migrate 8.0.0 [npmjs.com](https://www.npmjs.com/package/node-pg-migrate/v/8.0.0)

And 142 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## node-pg-migrate 8.0.0-rc.5 breaking changes

node-pg-migrate 8.0.0-rc.5, released May 19, 2025: 1 breaking change.

- **Behavior changed**  

The CLI now ensures environment variables are set before running migrations. Make sure required variables are set beforehand. [github.com](https://github.com/salsita/node-pg-migrate/releases/tag/v8.0.0-rc.5)

## node-pg-migrate 8.0.0-rc.3 breaking changes

node-pg-migrate 8.0.0-rc.3, released May 19, 2025: 1 breaking change.

- **Behavior changed**  

Calling the tool without the db option now throws an error. Make sure the db option is always provided. [github.com](https://github.com/salsita/node-pg-migrate/releases/tag/v8.0.0-rc.3)

## Older versions

3 older versions.

### node-pg-migrate 8.0.0-rc.2 breaking changes

node-pg-migrate 8.0.0-rc.2, released May 19, 2025: 2 breaking changes.

- **Removed**  

Default exports were removed. Use named imports instead. [github.com](https://github.com/salsita/node-pg-migrate/releases/tag/v8.0.0-rc.2)
- **Default changed** `checkOrder`  

Migration order is checked by default now. Set checkOrder explicitly if you need the previous behavior. [github.com](https://github.com/salsita/node-pg-migrate/releases/tag/v8.0.0-rc.2)

### node-pg-migrate 8.0.0-rc.1 breaking changes

node-pg-migrate 8.0.0-rc.1, released May 19, 2025: 1 breaking change.

- **Removed**  

Features that were deprecated in earlier versions have been removed. Stop using them before upgrading. [github.com](https://github.com/salsita/node-pg-migrate/releases/tag/v8.0.0-rc.1)

### node-pg-migrate 8.0.0-rc.0 breaking changes

node-pg-migrate 8.0.0-rc.0, released May 19, 2025: 2 breaking changes.

- **Removed**  

Node.js 18 is no longer supported. Upgrade to a newer Node.js version before using this release. [github.com](https://github.com/salsita/node-pg-migrate/releases/tag/v8.0.0-rc.0)
- **Removed**  

The package is now ESM-only, so CommonJS require() of it no longer works. Switch to ESM imports. [github.com](https://github.com/salsita/node-pg-migrate/releases/tag/v8.0.0-rc.0)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
