knex breaking changes
knex 3.3.0 (June 26, 2026) is its newest release with breaking changes, 4 of them. The first: Signature changed Knex.Client.pool. Every breaking API change we have recorded in knex on npm: 59 breaking changes in 10 versions. Below, its 10 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 3.3.0, released June 26, 2026. Source repository
Packages on npm run on Node.js. Node.js end of life dates.
- From 2.5.1 to 3.3.0: 50 breaking changes in 8 versions.
- From 2.5.0 to 3.3.0: 51 breaking changes in 9 versions.
knex 3.3.0 breaking changes
- Signature changed
Knex.Client.pool
Was pool: Pool<any> | undefined; now pool: Pool<any> | TarnPoolLike | undefined. npmjs.com - Signature changed
Knex.MsSqlAuthenticationTypeOptions
Was type MsSqlAuthenticationTypeOptions = | 'default' | 'ntlm' | 'azure-active-directory-password' | 'azure-active-directory-access-token' | 'azure-active-directory-msi-vm' | 'azure-active-directory-msi-app-service' |... npmjs.com - Signature changed
Knex.MsSqlConnectionConfig
Was type MsSqlConnectionConfig = | MsSqlDefaultAuthenticationConfig | MsSqlNtlmAuthenticationConfig | MsSqlAzureActiveDirectoryAccessTokenAuthenticationConfig | MsSqlAzureActiveDirectoryMsiAppServiceAuthenticationConfig |... npmjs.com - Signature changed
Knex.Where.__call
Was (object: Readonly<Record<string, any>>): QueryBuilder<TRecord, TResult>; now (object: Readonly<Object>): QueryBuilder<TRecord, TResult>. npmjs.com
knex 3.2.9 breaking changes
- Signature changed
Knex.Value
Was type Value = | string | number | boolean | null | Date | Array<string> | Array<number> | Array<Date> | Array<boolean> | Buffer | Record<string, unknown> | Knex.Raw; now type Value = | string | number | boolean | null | Date |... npmjs.com
knex 3.2.8 breaking changes
- Signature changed
Knex.QueryInterface.update
Was update<K1 extends StrKey<ResolveTableType<TRecord, 'update'>>, K2 extends StrKey<ResolveTableType<TRecord>>, TResult2 = DeferredKeySelection.Augment<UnwrapArrayMember<TResult>, ResolveTableType<TRecord>, K2>[]>(columnName: K1, value... npmjs.com
knex 3.2.5 breaking changes
- Signature changed
default
Was const knex: Omit<typeof knexCjs, 'default' | 'knex'>; now function knex<TRecord extends {} = any, TResult = unknown[]>(config: Knex.Config | string): Knex<TRecord, TResult>. npmjs.com - Signature changed
knex
Was const knex: Omit<typeof knexCjs, 'default' | 'knex'>; now function knex<TRecord extends {} = any, TResult = unknown[]>(config: Knex.Config | string): Knex<TRecord, TResult>. npmjs.com
knex 3.2.4 breaking changes
- Removed
Client
Client was removed in knex 3.2.4 npmjs.com - Removed
ColumnBuilder
ColumnBuilder was removed in knex 3.2.4 npmjs.com - Removed
Knex
Knex was removed in knex 3.2.4 npmjs.com - Removed
KnexTimeoutError
KnexTimeoutError was removed in knex 3.2.4 npmjs.com - Removed
QueryBuilder
QueryBuilder was removed in knex 3.2.4 npmjs.com - Removed
SchemaBuilder
SchemaBuilder was removed in knex 3.2.4 npmjs.com - Removed
TableBuilder
TableBuilder was removed in knex 3.2.4 npmjs.com - Removed
ViewBuilder
ViewBuilder was removed in knex 3.2.4 npmjs.com - Signature changed
default
Was function knex<TRecord extends {} = any, TResult = unknown[]>(config: Knex.Config | string): Knex<TRecord, TResult> namespace knex; now const knex: Omit<typeof knexCjs, 'default' | 'knex'>. npmjs.com - Signature changed
knex
Was function knex<TRecord extends {} = any, TResult = unknown[]>(config: Knex.Config | string): Knex<TRecord, TResult> namespace knex; now const knex: Omit<typeof knexCjs, 'default' | 'knex'>. npmjs.com
knex 3.2.0 breaking changes
- Behavior changed
Some combinations of statements and clause groups that previously executed are now prevented. Check queries that relied on them. github.com - Signature changed
knex
The TypeScript typings no longer accept calling knex without a table name. Pass a table name when calling it. github.com - Signature changed
Knex
Was interface Knex<TRecord extends {} = any, TResult = any[]> extends Knex.QueryInterface<TRecord, TResult>, events.EventEmitter; now interface Knex<TRecord extends {} = any, TResult = any[]> extends Knex.QueryInterface<TRecord, TResult>... npmjs.com - Signature changed
Knex.__call
Was <TRecord2 extends {} = TRecord, TResult2 = DeferredKeySelection<TRecord2, never>[]>(tableName?: Knex.TableDescriptor | Knex.AliasDict, options?: TableOptions): Knex.QueryBuilder<TRecord2, TResult2>; now <TRecord2 extends {} = TRecord... npmjs.com - Signature changed
Knex.BetterSqlite3ConnectionConfig.options
Was options?: {nativeBinding?: string; readonly?: boolean;}; now options?: {nativeBinding?: string; readonly?: boolean; safeIntegers?: boolean;}. npmjs.com - Signature changed
Knex.ChainableInterface.pipe
Was pipe<T extends NodeJS.WritableStream>(writable: T, options?: Readonly<{[key: string]: any}>): stream.PassThrough; now pipe<T extends NodeJS.WritableStream>(writable: T, options?: Readonly<{[key: string]: any}>): PassThrough. npmjs.com - Signature changed
Knex.ChainableInterface.stream
Was stream(handler: (readable: stream.PassThrough) => any): Promise<any> stream(options: Readonly<{[key: string]: any}>, handler: (readable: stream.PassThrough) => any): Promise<any> stream(options?: Readonly<{[key: string]: any}>)... npmjs.com - Signature changed
Knex.Client
Was class Client extends events.EventEmitter; now class Client extends EventEmitter. npmjs.com - Signature changed
Knex.Client.pool
Was pool: tarn.Pool<any> | undefined; now pool: Pool<any> | undefined. npmjs.com - Signature changed
Knex.ColumnBuilder.index
Was index(indexName?: string): ColumnBuilder; now index(indexName?: string, options?: Readonly<{indexType?: string; storageEngineIndexType?: storageEngineIndexType; predicate?: QueryBuilder;}>): ColumnBuilder. npmjs.com
And 18 more in this version. Sign up to see every change
Older versions
4 older versions, each with its first changes. Sign up to see every change
Show 4 older versions
knex 3.1.0 breaking changes
- Signature changed
Knex.PgConnectionConfig.stream
Was stream?: stream.Duplex; now stream?: () => stream.Duplex | stream.Duplex | undefined. npmjs.com - Signature changed
Knex.ResolveTableType
Was type ResolveTableType<TCompositeTableType, TScope extends TableInterfaceScope = 'base'> = TCompositeTableType extends CompositeTableType<unknown> ? TCompositeTableType[TScope] : TCompositeTableType; now type... npmjs.com
knex 3.0.0 breaking changes
- Behavior changed
The package no longer supports Node.js versions older than 16. Users on older Node.js must upgrade their runtime before using this release. github.com - Signature changed
Knex.RawBuilder.__call
Was <TResult2 = TResult>(sql: string, ...bindings: readonly RawBinding[]): Raw<TResult2>; now <TResult2 = TResult>(sql: string, binding: RawBinding): Raw<TResult2>. npmjs.com
knex 2.5.1 breaking changes
- Signature changed
Knex.MsSqlConnectionConfigBase.options
Was options?: Readonly<{encrypt?: boolean; instanceName?: string; useUTC?: boolean; tdsVersion?: string; appName?: string; abortTransactionOnError?: boolean; trustedConnection?: boolean; enableArithAbort?: boolean; isolationLevel?: |... npmjs.com
knex 2.5.0 breaking changes
- Behavior changed
knex.mjs
Query logs no longer include passwords. Users relying on logged passwords must adjust their logging. github.com - Signature changed
Knex.OnConflictQueryBuilder.merge
Was merge(mergeColumns?: (keyof TRecord)[]): QueryBuilder<TRecord, TResult>; now merge(mergeColumns?: (keyof ResolveTableType<TRecord, 'update'>)[]): QueryBuilder<TRecord, TResult>. npmjs.com
And 6 more in this version.
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.