---
title: "knex 3.3.0 Breaking Changes on npm | Since.dev"
description: "What each knex release removed, renamed or changed: 59 breaking changes in 10 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/knex
last_updated: 2026-12-04
---

# 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

Latest version `3.3.0`, released June 26, 2026. [Source repository](https://github.com/knex/knex)

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

- From [2.5.1](#v-2-5-1) to [3.3.0](#v-3-3-0): 50 breaking changes in 8 versions.
- From [2.5.0](#v-2-5-0) to [3.3.0](#v-3-3-0): 51 breaking changes in 9 versions.

## knex 3.3.0 breaking changes

knex 3.3.0, released June 26, 2026: 4 breaking changes.

- **Signature changed** `Knex.Client.pool`  

Was pool: Pool\<any> | undefined; now pool: Pool\<any> | TarnPoolLike | undefined. [npmjs.com](https://www.npmjs.com/package/knex/v/3.3.0)
- **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](https://www.npmjs.com/package/knex/v/3.3.0)
- **Signature changed** `Knex.MsSqlConnectionConfig`  

Was type MsSqlConnectionConfig = | MsSqlDefaultAuthenticationConfig | MsSqlNtlmAuthenticationConfig | MsSqlAzureActiveDirectoryAccessTokenAuthenticationConfig | MsSqlAzureActiveDirectoryMsiAppServiceAuthenticationConfig |... [npmjs.com](https://www.npmjs.com/package/knex/v/3.3.0)
- **Signature changed** `Knex.Where.__call`  

Was (object: Readonly\<Record\<string, any>>): QueryBuilder\<TRecord, TResult>; now (object: Readonly\<Object>): QueryBuilder\<TRecord, TResult>. [npmjs.com](https://www.npmjs.com/package/knex/v/3.3.0)

## knex 3.2.9 breaking changes

knex 3.2.9, released April 3, 2026: 1 breaking change.

- **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](https://www.npmjs.com/package/knex/v/3.2.9)

## knex 3.2.8 breaking changes

knex 3.2.8, released March 30, 2026: 1 breaking change.

- **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](https://www.npmjs.com/package/knex/v/3.2.8)

## knex 3.2.5 breaking changes

knex 3.2.5, released March 23, 2026: 2 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](https://www.npmjs.com/package/knex/v/3.2.5)
- **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](https://www.npmjs.com/package/knex/v/3.2.5)

## knex 3.2.4 breaking changes

knex 3.2.4, released March 23, 2026: 10 breaking changes.

- **Removed** `Client`  

Client was removed in knex 3.2.4 [npmjs.com](https://www.npmjs.com/package/knex/v/3.2.4)
- **Removed** `ColumnBuilder`  

ColumnBuilder was removed in knex 3.2.4 [npmjs.com](https://www.npmjs.com/package/knex/v/3.2.4)
- **Removed** `Knex`  

Knex was removed in knex 3.2.4 [npmjs.com](https://www.npmjs.com/package/knex/v/3.2.4)
- **Removed** `KnexTimeoutError`  

KnexTimeoutError was removed in knex 3.2.4 [npmjs.com](https://www.npmjs.com/package/knex/v/3.2.4)
- **Removed** `QueryBuilder`  

QueryBuilder was removed in knex 3.2.4 [npmjs.com](https://www.npmjs.com/package/knex/v/3.2.4)
- **Removed** `SchemaBuilder`  

SchemaBuilder was removed in knex 3.2.4 [npmjs.com](https://www.npmjs.com/package/knex/v/3.2.4)
- **Removed** `TableBuilder`  

TableBuilder was removed in knex 3.2.4 [npmjs.com](https://www.npmjs.com/package/knex/v/3.2.4)
- **Removed** `ViewBuilder`  

ViewBuilder was removed in knex 3.2.4 [npmjs.com](https://www.npmjs.com/package/knex/v/3.2.4)
- **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](https://www.npmjs.com/package/knex/v/3.2.4)
- **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](https://www.npmjs.com/package/knex/v/3.2.4)

## knex 3.2.0 breaking changes

knex 3.2.0, released March 22, 2026: 28 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](https://github.com/knex/knex/releases/tag/3.2.0)
- **Signature changed** `knex`  

The TypeScript typings no longer accept calling knex without a table name. Pass a table name when calling it. [github.com](https://github.com/knex/knex/releases/tag/3.2.0)
- **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](https://www.npmjs.com/package/knex/v/3.2.0)
- **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](https://www.npmjs.com/package/knex/v/3.2.0)
- **Signature changed** `Knex.BetterSqlite3ConnectionConfig.options`  

Was options?: {nativeBinding?: string; readonly?: boolean;}; now options?: {nativeBinding?: string; readonly?: boolean; safeIntegers?: boolean;}. [npmjs.com](https://www.npmjs.com/package/knex/v/3.2.0)
- **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](https://www.npmjs.com/package/knex/v/3.2.0)
- **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](https://www.npmjs.com/package/knex/v/3.2.0)
- **Signature changed** `Knex.Client`  

Was class Client extends events.EventEmitter; now class Client extends EventEmitter. [npmjs.com](https://www.npmjs.com/package/knex/v/3.2.0)
- **Signature changed** `Knex.Client.pool`  

Was pool: tarn.Pool\<any> | undefined; now pool: Pool\<any> | undefined. [npmjs.com](https://www.npmjs.com/package/knex/v/3.2.0)
- **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](https://www.npmjs.com/package/knex/v/3.2.0)

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

## Older versions

4 older versions, each with its first changes. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

### knex 3.1.0 breaking changes

knex 3.1.0, released December 7, 2023: 2 breaking changes.

- **Signature changed** `Knex.PgConnectionConfig.stream`  

Was stream?: stream.Duplex; now stream?: () => stream.Duplex | stream.Duplex | undefined. [npmjs.com](https://www.npmjs.com/package/knex/v/3.1.0)
- **Signature changed** `Knex.ResolveTableType`  

Was type ResolveTableType\<TCompositeTableType, TScope extends TableInterfaceScope = 'base'> = TCompositeTableType extends CompositeTableType\<unknown> ? TCompositeTableType\[TScope\] : TCompositeTableType; now type... [npmjs.com](https://www.npmjs.com/package/knex/v/3.1.0)

### knex 3.0.0 breaking changes

knex 3.0.0, released October 6, 2023: 2 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](https://github.com/knex/knex/releases/tag/3.0.0)
- **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](https://www.npmjs.com/package/knex/v/3.0.0)

### knex 2.5.1 breaking changes

knex 2.5.1, released July 12, 2023: 1 breaking change.

- **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](https://www.npmjs.com/package/knex/v/2.5.1)

### knex 2.5.0 breaking changes

knex 2.5.0, released July 8, 2023: 8 breaking changes.

- **Behavior changed** `knex.mjs`  

Query logs no longer include passwords. Users relying on logged passwords must adjust their logging. [github.com](https://github.com/knex/knex/releases/tag/2.5.0)
- **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](https://www.npmjs.com/package/knex/v/2.5.0)

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](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.
