kysely breaking changes
Updated December 4, 2026
On this page
Latest version 0.29.9, released November 12, 2026. Source repository
Packages on npm run on Node.js. Node.js end of life dates.
kysely 0.29.9 breaking changes
- Behavior changed
migrator
Executed migrations with an invalid timestamp now fail with "corrupted migrations" instead of being sorted arbitrarily. Tables with out-of-order timestamps need a one-time repair query. github.com - Signature changed
AbortedTransactionError.constructor
Was constructor(); now constructor(options?: ErrorOptions). npmjs.com - Signature changed
JSONPathBuilder.at
Passing a second type argument to key() or at() is no longer allowed. Use $castTo<T>() to override the output type instead. npmjs.com - Signature changed
JSONPathBuilder.key
Passing a second type argument to key() or at() is no longer allowed. Use $castTo<T>() to override the output type instead. npmjs.com
kysely 0.29.8 breaking changes
- Behavior changed
Commits that PostgreSQL turns into rollbacks now throw AbortedTransactionError instead of reporting success. Code that relied on a silent successful commit must now handle this error. github.com - Signature changed
PostgresDriver.rollbackTransaction
Was rollbackTransaction(connection: DatabaseConnection): Promise<void>; now rollbackTransaction(connection: PostgresConnection): Promise<void>. npmjs.com - Signature changed
PostgresPoolClient.release
Was release(): void; now release(destroy?: boolean): void. npmjs.com - Signature changed
PostgresQueryResult.command
Was command: 'UPDATE' | 'DELETE' | 'INSERT' | 'SELECT' | 'MERGE'; now command: 'UPDATE' | 'DELETE' | 'INSERT' | 'SELECT' | 'MERGE' | 'COMMIT' | 'ROLLBACK'. npmjs.com
kysely 0.29.7 breaking changes
- Behavior changed
Commit, rollback and savepoint commands on controlled transactions now wait for ongoing queries and streams to finish. Code that awaits these commands while a stream is still open must close or exhaust that stream first. github.com
kysely 0.29.6 breaking changes
- Signature changed
OnConflictBuilder.doUpdateSet
Was doUpdateSet(update: UpdateObjectExpression<OnConflictDatabase<DB, TB>, OnConflictTables<TB>, OnConflictTables<TB>>): OnConflictUpdateBuilder<OnConflictDatabase<DB, TB>, OnConflictTables<TB>>; now doUpdateSet(update... npmjs.com - Signature changed
OnConflictDatabase
Was type OnConflictDatabase<DB, TB extends keyof DB> = {[K in keyof DB | 'excluded']: Updateable<K extends keyof DB ? DB[K] : DB[TB]>;}; now type OnConflictDatabase<DB, TB extends keyof DB> = {[K in keyof DB | 'excluded']: K extends keyof... npmjs.com
kysely 0.29.5 breaking changes
- Signature changed
DeleteQueryBuilder.$if
Was $if<O2>(condition: boolean, func: (qb: this) => DeleteQueryBuilder<any, any, O2>): O2 extends DeleteResult ? DeleteQueryBuilder<DB, TB, DeleteResult> : O2 extends O & infer E ? DeleteQueryBuilder<DB, TB, O & Partial<E>>... npmjs.com - Signature changed
DeleteQueryBuilder.limit
Was limit(limit: ValueExpression<DB, TB, number>): DeleteQueryBuilder<DB, TB, O>; now limit<VE extends ValueExpression<DB, TB, number>>(limit: VE): DeleteQueryBuilder<DB, TB, O>. npmjs.com - Signature changed
JoinBuilder.on
Was on(expression: ExpressionOrFactory<DB, TB, SqlBool>): JoinBuilder<DB, TB>; now on<E extends ExpressionOrFactory<DB, TB, SqlBool>>(expression: E): JoinBuilder<DB, TB>. npmjs.com - Signature changed
JoinBuilder.onRef
Was onRef(lhs: ReferenceExpression<DB, TB>, op: ComparisonOperatorExpression, rhs: ReferenceExpression<DB, TB>): JoinBuilder<DB, TB>; now onRef<LRE extends ReferenceExpression<DB, TB>, RRE extends ReferenceExpression<DB, TB>>(lhs: LRE, op... npmjs.com - Signature changed
SelectQueryBuilder.limit
Was limit(limit: ValueExpression<DB, TB, number | bigint | null>): SelectQueryBuilder<DB, TB, O>; now limit<VE extends ValueExpression<DB, TB, number | bigint | null>>(limit: VE): SelectQueryBuilder<DB, TB, O>. npmjs.com - Signature changed
SelectQueryBuilder.offset
Was offset(offset: ValueExpression<DB, TB, number | bigint>): SelectQueryBuilder<DB, TB, O>; now offset<VE extends ValueExpression<DB, TB, number | bigint>>(offset: VE): SelectQueryBuilder<DB, TB, O>. npmjs.com - Signature changed
SelectQueryBuilderWithFullJoin
Was type SelectQueryBuilderWithFullJoin<DB, TB extends keyof DB, O, TE extends TableExpression<DB, TB>> = TE extends `${infer T} as ${infer A}` ? T extends keyof DB ? OuterJoinedBuilder<DB, TB, O, A, DB[T]> : never : TE extends keyof DB ?... npmjs.com - Signature changed
SelectQueryBuilderWithInnerJoin
Was type SelectQueryBuilderWithInnerJoin<DB, TB extends keyof DB, O, TE extends TableExpression<DB, TB>> = TE extends `${infer T} as ${infer A}` ? T extends keyof DB ? InnerJoinedBuilder<DB, TB, O, A, DB[T]> : never : TE extends keyof DB ?... npmjs.com - Signature changed
SelectQueryBuilderWithLeftJoin
Was type SelectQueryBuilderWithLeftJoin<DB, TB extends keyof DB, O, TE extends TableExpression<DB, TB>> = TE extends `${infer T} as ${infer A}` ? T extends keyof DB ? LeftJoinedBuilder<DB, TB, O, A, DB[T]> : never : TE extends keyof DB ?... npmjs.com - Signature changed
SelectQueryBuilderWithRightJoin
Was type SelectQueryBuilderWithRightJoin<DB, TB extends keyof DB, O, TE extends TableExpression<DB, TB>> = TE extends `${infer T} as ${infer A}` ? T extends keyof DB ? RightJoinedBuilder<DB, TB, O, A, DB[T]> : never : TE extends keyof DB ?... npmjs.com
And 1 more in this version. Sign up to see every change
kysely 0.29.4 breaking changes
- Signature changed
Equals
Was type Equals<T, U> = (<G>() => G extends T ? 1 : 2) extends <G>() => G extends U ? 1 : 2 ? true : false; now type Equals<T, U> = (<G>() => G extends T ? 1 : 2) extends <G>() => (G extends U ? 1 : 2) ? true : false. npmjs.com
Older versions
6 older versions, each with its first changes. Sign up to see every change
Show 6 older versions
kysely 0.29.3 breaking changes
- Behavior changed
Migrations now take session-level advisory locks even when transactions are enabled, which conflicts with PgBouncer transaction pooling. Run migrations over a direct connection or session pooling, or use custom migration locking. github.com - Signature changed
JSONPathBuilder.at
Was at<I extends any[] extends O ? number | 'last' | `#-${number}` : never, O2 = null | NonNullable<NonNullable<O>[keyof NonNullable<O> & number]>>(index: `${I}` extends `${any}.${any}` | `#--${any}` ? never : I)... npmjs.com
And 8 more in this version.
kysely 0.29.2 breaking changes
- Signature changed
NarrowPartial
Was type NarrowPartial<O, T> = T extends object ? DrainOuterGeneric<{[K in keyof O & string]: K extends keyof T ? T[K] extends NotNull ? Exclude<O[K], null> : T[K] extends object ? SimplifyDeep<O[K] & NarrowPartial<O[K], T[K]>> : T[K]... npmjs.com
kysely 0.29.0 breaking changes
- Removed
Requires Node.js or runtime changes not stated in kysely 0.29.0 github.com - Removed
The package no longer ships CommonJS files; ES Modules moved from /dist/esm/ to /dist/. github.com
And 232 more in this version.
kysely 0.28.20 breaking changes
- Behavior changed
migrateToLatest
Migrations are now recorded at max(now, latest + 1ms) under the migration lock. Executed migrations with an invalid timestamp now fail with corrupted migrations, so existing out-of-order timestamps must be repaired with the provided query. github.com - Signature changed
JSONPathBuilder.at
Passing a second type argument to at() is no longer supported. Use $castTo<T>() to override the output type. npmjs.com
And 1 more in this version.
kysely 0.28.19 breaking changes
- Behavior changed
Commits that PostgreSQL turns into rollbacks now throw AbortedTransactionError instead of reporting success. Code that assumed a commit always succeeds must handle this error. github.com - Signature changed
PostgresDriver.rollbackTransaction
Was rollbackTransaction(connection: DatabaseConnection): Promise<void>; now rollbackTransaction(connection: PostgresConnection): Promise<void>. npmjs.com
And 2 more in this version.
kysely 0.28.18 breaking changes
- Behavior changed
Migrations now take session-level advisory locks even when transactions are enabled, which conflicts with PgBouncer transaction pooling. Run migrations through a direct connection, session pooling, or custom migration locking. github.com - Behavior changed
Commit, rollback and savepoint commands now wait for running queries and streams to finish. Close or exhaust active streams before awaiting these commands, or code may hang. github.com
And 17 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.