drizzle-orm breaking changes
Updated December 4, 2026
On this page
Latest version 0.45.4, released October 8, 2026. Source repository
Packages on npm run on Node.js. Node.js end of life dates.
drizzle-orm 0.45.4 breaking changes
- Signature changed
postgres-js:PostgresJsPreparedQuery.constructor
Was constructor(client: Sql, queryString: string, params: unknown[], logger: Logger, cache: Cache, queryMetadata: {type: 'select' | 'update' | 'delete' | 'insert'; tables: string[];} | undefined, cacheConfig: WithCacheConfig | undefined... npmjs.com
drizzle-orm 0.45.2 breaking changes
- Behavior changed
sql.as
Values passed to sql.as() were previously not escaped, which allowed SQL injection. They are now escaped, so code that relied on the old unescaped output may produce different SQL. github.com - Behavior changed
sql.identifier
Values passed to sql.identifier() were previously not escaped, which allowed SQL injection. They are now escaped, so code that relied on the old unescaped output may produce different SQL. github.com
drizzle-orm 0.45.0 breaking changes
- Signature changed
pg-core:PgDate.mapFromDriverValue
Was mapFromDriverValue(value: string): Date; now mapFromDriverValue(value: string | Date): Date. npmjs.com - Signature changed
pg-core:PgDateString.mapFromDriverValue
Was mapFromDriverValue(value: unknown): unknown; now mapFromDriverValue(value: Date | string): string. npmjs.com - Signature changed
pg-core:PgTimestamp.mapFromDriverValue
Was mapFromDriverValue: (value: string) => Date | null; now mapFromDriverValue(value: Date | string): Date. npmjs.com - Signature changed
pg-core:PgTimestampString.mapFromDriverValue
Was mapFromDriverValue(value: unknown): unknown; now mapFromDriverValue(value: Date | string): string. npmjs.com - Signature changed
SelectedFieldsFlat
Was type SelectedFieldsFlat<TColumn extends Column> = Record<string, TColumn | SQL | SQL.Aliased>; now type SelectedFieldsFlat<TColumn extends Column> = Record<string, TColumn | SQL | SQL.Aliased | Subquery>. npmjs.com - Signature changed
SelectedFieldsOrdered
Was type SelectedFieldsOrdered<TColumn extends Column> = {path: string[]; field: TColumn | SQL | SQL.Aliased;}[]; now type SelectedFieldsOrdered<TColumn extends Column> = {path: string[]; field: TColumn | SQL | SQL.Aliased | Subquery;}[]. npmjs.com
drizzle-orm 0.44.6 breaking changes
- Signature changed
gel-core:GelWithReplicas
Was type GelWithReplicas<Q> = Q & {$primary: Q;}; now type GelWithReplicas<Q> = Q & {$primary: Q; $replicas: Q[];}. npmjs.com - Signature changed
mysql-core:MySQLWithReplicas
Was type MySQLWithReplicas<Q> = Q & {$primary: Q;}; now type MySQLWithReplicas<Q> = Q & {$primary: Q; $replicas: Q[];}. npmjs.com - Signature changed
pg-core:PgWithReplicas
Was type PgWithReplicas<Q> = Q & {$primary: Q;}; now type PgWithReplicas<Q> = Q & {$primary: Q; $replicas: Q[];}. npmjs.com - Signature changed
singlestore-core:SingleStoreWithReplicas
Was type SingleStoreWithReplicas<Q> = Q & {$primary: Q;}; now type SingleStoreWithReplicas<Q> = Q & {$primary: Q; $replicas: Q[];}. npmjs.com - Signature changed
sqlite-core:SQLiteWithReplicas
Was type SQLiteWithReplicas<Q> = Q & {$primary: Q;}; now type SQLiteWithReplicas<Q> = Q & {$primary: Q; $replicas: Q[];}. npmjs.com
drizzle-orm 0.44.3 breaking changes
- Signature changed
gel:drizzle
Was function drizzle<TSchema extends Record<string, unknown> = Record<string, never>, TClient extends GelClient = Client>(...params: [TClient | string] | [TClient | string, DrizzleConfig<TSchema>] | [DrizzleConfig<TSchema> & ({connection... npmjs.com - Signature changed
mysql2:drizzle
Was function drizzle<TSchema extends Record<string, unknown> = Record<string, never>, TClient extends AnyMySql2Connection = CallbackPool>(...params: [TClient | string] | [TClient | string, MySql2DrizzleConfig<TSchema>] |... npmjs.com - Signature changed
neon-serverless:drizzle
Was function drizzle<TSchema extends Record<string, unknown> = Record<string, never>, TClient extends NeonClient = Pool>(...params: [TClient | string] | [TClient | string, DrizzleConfig<TSchema>] | [(DrizzleConfig<TSchema> & ({connection... npmjs.com - Signature changed
neon:usersSync
Was const usersSync: import("../pg-core/index.js").PgTableWithColumns<{name: "users_sync"; schema: "neon_auth"; columns: {rawJson: import("../pg-core/index.js").PgColumn<{name: "raw_json"; tableName: "users_sync"; dataType: "json"... npmjs.com - Signature changed
node-postgres:drizzle
Was function drizzle<TSchema extends Record<string, unknown> = Record<string, never>, TClient extends NodePgClient = Pool>(...params: [TClient | string] | [TClient | string, DrizzleConfig<TSchema>] | [(DrizzleConfig<TSchema> &... npmjs.com - Signature changed
singlestore:drizzle
Was function drizzle<TSchema extends Record<string, unknown> = Record<string, never>, TClient extends AnySingleStoreDriverConnection = CallbackPool>(...params: [TClient | string] | [TClient | string... npmjs.com - Signature changed
vercel-postgres:drizzle
Was function drizzle<TSchema extends Record<string, unknown> = Record<string, never>, TClient extends VercelPgClient = typeof sql>(...params: [] | [TClient] | [TClient, DrizzleConfig<TSchema>] | [(DrizzleConfig<TSchema> & ({client?... npmjs.com
drizzle-orm 0.44.2 breaking changes
- Signature changed
gel-core:AnyGelSelect.crossJoin
Was crossJoin: <TJoinedTable extends SQL<unknown> | Subquery<string, Record<string, unknown>> | GelTable<import("../table.js").TableConfig> | GelViewBase<string, boolean, ColumnsSelection>, TJoinedName extends... npmjs.com - Signature changed
gel-core:AnyGelSelect.crossJoinLateral
Was crossJoinLateral: <TJoinedTable extends SQL<unknown> | Subquery<string, Record<string, unknown>>, TJoinedName extends GetSelectTableName<TJoinedTable> = GetSelectTableName<TJoinedTable>>(table: TJoinedTable) =>... npmjs.com - Signature changed
gel-core:AnyGelSelect.fullJoin
Was fullJoin: <TJoinedTable extends SQL<unknown> | Subquery<string, Record<string, unknown>> | GelTable<import("../table.js").TableConfig> | GelViewBase<string, boolean, ColumnsSelection>, TJoinedName extends... npmjs.com - Signature changed
gel-core:AnyGelSelect.innerJoin
Was innerJoin: <TJoinedTable extends SQL<unknown> | Subquery<string, Record<string, unknown>> | GelTable<import("../table.js").TableConfig> | GelViewBase<string, boolean, ColumnsSelection>, TJoinedName extends... npmjs.com - Signature changed
gel-core:AnyGelSelect.innerJoinLateral
Was innerJoinLateral: <TJoinedTable extends SQL<unknown> | Subquery<string, Record<string, unknown>>, TJoinedName extends GetSelectTableName<TJoinedTable> = GetSelectTableName<TJoinedTable>>(table: TJoinedTable, on: SQL<unknown> |... npmjs.com - Signature changed
gel-core:AnyGelSelect.leftJoin
Was leftJoin: <TJoinedTable extends SQL<unknown> | Subquery<string, Record<string, unknown>> | GelTable<import("../table.js").TableConfig> | GelViewBase<string, boolean, ColumnsSelection>, TJoinedName extends... npmjs.com - Signature changed
gel-core:AnyGelSelect.leftJoinLateral
Was leftJoinLateral: <TJoinedTable extends SQL<unknown> | Subquery<string, Record<string, unknown>>, TJoinedName extends GetSelectTableName<TJoinedTable> = GetSelectTableName<TJoinedTable>>(table: TJoinedTable, on: SQL<unknown> |... npmjs.com - Signature changed
gel-core:AnyGelSelect.rightJoin
Was rightJoin: <TJoinedTable extends SQL<unknown> | Subquery<string, Record<string, unknown>> | GelTable<import("../table.js").TableConfig> | GelViewBase<string, boolean, ColumnsSelection>, TJoinedName extends... npmjs.com - Signature changed
gel-core:AnyGelSelectQueryBuilder.crossJoin
Was crossJoin: <TJoinedTable extends SQL<unknown> | Subquery<string, Record<string, unknown>> | GelTable<import("../table.js").TableConfig> | GelViewBase<string, boolean, ColumnsSelection>, TJoinedName extends... npmjs.com - Signature changed
gel-core:AnyGelSelectQueryBuilder.crossJoinLateral
Was crossJoinLateral: <TJoinedTable extends SQL<unknown> | Subquery<string, Record<string, unknown>>, TJoinedName extends GetSelectTableName<TJoinedTable> = GetSelectTableName<TJoinedTable>>(table: TJoinedTable) =>... npmjs.com
And 247 more in this version. Sign up to see every change
Older versions
24 older versions, each with its first changes. Sign up to see every change
Show 24 older versions
drizzle-orm 0.44.1 breaking changes
- Signature changed
mysql-core:MySqlPreparedQuery.constructor
Was constructor(cache: Cache, queryMetadata: {type: 'select' | 'update' | 'delete' | 'insert'; tables: string[];} | undefined, cacheConfig?: WithCacheConfig | undefined); now constructor(cache: Cache | undefined, queryMetadata: {type... npmjs.com - Signature changed
pg-core:PgPreparedQuery.constructor
Was constructor(query: Query, cache: Cache, queryMetadata: {type: 'select' | 'update' | 'delete' | 'insert'; tables: string[];} | undefined, cacheConfig?: WithCacheConfig | undefined); now constructor(query: Query, cache: Cache |... npmjs.com
drizzle-orm 0.44.0 breaking changes
- Behavior changed
Query errors from database drivers are wrapped in a new DrizzleQueryError that carries the generated SQL, its parameters and the original driver stack trace. Code that checks the driver's own error type or properties must be updated to... github.com - Signature changed
aws-data-api/pg:AwsDataApiPreparedQuery.constructor
Was constructor(client: AwsDataApiClient, queryString: string, params: unknown[], typings: QueryTypingsValue[], options: AwsDataApiSessionOptions, fields: SelectedFieldsOrdered | undefined, transactionId: string | undefined... npmjs.com
And 138 more in this version.
drizzle-orm 0.43.1 breaking changes
- Signature changed
pg-core:PgSchema.enum
Was enum: any; now enum<E extends Record<string, string>>(enumName: string, enumObj: NonArray<E>): PgEnumObject<E> enum<U extends string, T extends Readonly<[U, ...U[]]>>(enumName: string, values: T | Writable<T>): PgEnum<Writable<T>>. npmjs.com
drizzle-orm 0.43.0 breaking changes
- Removed
fullJoin
The full join method was removed from the MySQL select API because MySQL does not support it. Code that calls fullJoin on MySQL queries must be rewritten. github.com - Behavior changed
Gel columns now always get explicit schema and table prefixes in generated queries, which can change the SQL produced for existing code. github.com
And 145 more in this version.
drizzle-orm 0.42.0 breaking changes
- Signature changed
getOperators
Was function getOperators(): {and: typeof and; between: typeof between; eq: import("./expressions.js").BinaryOperator; exists: typeof exists; gt: import("./expressions.js").BinaryOperator; gte: import("./expressions.js").BinaryOperator... npmjs.com - Signature changed
inArray
Was function inArray<T extends SQLWrapper>(column: Exclude<T, SQL.Aliased | Column>, values: (unknown | Placeholder)[] | SQLWrapper): SQL function inArray<TColumn extends Column>(column: TColumn, values: (GetColumnData<TColumn, 'raw'> |... npmjs.com
And 8 more in this version.
drizzle-orm 0.41.0 breaking changes
- Removed
free
The sql.js prepared query object no longer has a free() method, so code calling it will fail. Remove those calls. github.com - Behavior changed
The driver no longer maps PostgreSQL numeric[], timestamp[], timestamp with time zone[], interval[] and date[] values itself, so code reading these columns may receive different values. github.com
And 22 more in this version.
drizzle-orm 0.40.0 breaking changes
- Signature changed
BuildColumn
Was type BuildColumn<TTableName extends string, TBuilder extends ColumnBuilderBase, TDialect extends Dialect> = TDialect extends 'pg' ? PgColumn<MakeColumnConfig<TBuilder['_'], TTableName>, {}, Simplify<Omit<TBuilder['_'], keyof... npmjs.com - Signature changed
BuildIndexColumn
Was type BuildIndexColumn<TDialect extends Dialect> = TDialect extends 'pg' ? ExtraConfigColumn : never; now type BuildIndexColumn<TDialect extends Dialect> = TDialect extends 'pg' ? ExtraConfigColumn : TDialect extends 'gel' ?... npmjs.com
And 3 more in this version.
drizzle-orm 0.39.2 breaking changes
- Behavior changed
The built-in pre-defined schema was renamed from neon_identity to neon_auth to match Neon Auth. Code that refers to the old neon_identity schema name needs to use neon_auth instead. github.com - Signature changed
neon:usersSync
Was const usersSync: import("../pg-core/index.js").PgTableWithColumns<{name: "users_sync"; schema: "neon_identity"; columns: {rawJson: import("../pg-core/index.js").PgColumn<{name: "raw_json"; tableName: "users_sync"; dataType: "json"... npmjs.com
drizzle-orm 0.39.1 breaking changes
- Signature changed
aliasedTable
Was function aliasedTable<T extends Table>(table: T, tableAlias: string): T; now function aliasedTable<T extends Table | View>(table: T, tableAlias: string): T. npmjs.com - Signature changed
mysql-core:MySqlJoin
Was type MySqlJoin<T extends AnyMySqlSelectQueryBuilder, TDynamic extends boolean, TJoinType extends JoinType, TJoinedTable extends MySqlTable | Subquery | MySqlViewBase | SQL, TJoinedName extends GetSelectTableName<TJoinedTable> =... npmjs.com
And 2 more in this version.
drizzle-orm 0.39.0 breaking changes
- Signature changed
aws-data-api/pg:AwsDataApiPgDatabase.$with
Was $with<TAlias extends string>(alias: TAlias): {as<TSelection extends ColumnsSelection>(qb: TypedQueryBuilder<TSelection> | ((qb: QueryBuilder) => TypedQueryBuilder<TSelection>)): WithSubqueryWithSelection<TSelection, TAlias>;}; now... npmjs.com - Signature changed
aws-data-api/pg:AwsDataApiTransaction.$with
Was $with<TAlias extends string>(alias: TAlias): {as<TSelection extends ColumnsSelection>(qb: TypedQueryBuilder<TSelection> | ((qb: QueryBuilder) => TypedQueryBuilder<TSelection>)): WithSubqueryWithSelection<TSelection, TAlias>;}; now... npmjs.com
And 119 more in this version.
drizzle-orm 0.38.4 breaking changes
- Signature changed
singlestore-core/columns/all:getSingleStoreColumnBuilders
Was function getSingleStoreColumnBuilders(): {bigint: typeof bigint; binary: typeof binary; boolean: typeof boolean; char: typeof char; customType: typeof customType; date: typeof date; datetime: typeof datetime; decimal: typeof decimal... npmjs.com
drizzle-orm 0.38.3 breaking changes
- Signature changed
singlestore-core:char
Was function char(): SingleStoreCharBuilderInitial<'', [string, ...string[]]> function char<TName extends string, U extends string, T extends Readonly<[U, ...U[]]>>(name: TName, config?: SingleStoreCharConfig<T | Writable<T>>)... npmjs.com - Signature changed
singlestore-core:SingleStoreChar
Was class SingleStoreChar<T extends ColumnBaseConfig<'string', 'SingleStoreChar'>> extends SingleStoreColumn<T, SingleStoreCharConfig<T['enumValues']>>; now class SingleStoreChar<T extends ColumnBaseConfig<'string', 'SingleStoreChar'> &... npmjs.com
And 14 more in this version.
drizzle-orm 0.38.2 breaking changes
- Signature changed
mysql-core:MySqlDialect.buildSelectQuery
Was buildSelectQuery({withList, fields, fieldsFlat, where, having, table, joins, orderBy, groupBy, limit, offset, lockingClause, distinct, setOperators}: MySqlSelectConfig): SQL; now buildSelectQuery({withList, fields, fieldsFlat, where... npmjs.com - Signature changed
mysql-core:MySqlJoinFn
Was type MySqlJoinFn<T extends AnyMySqlSelectQueryBuilder, TDynamic extends boolean, TJoinType extends JoinType> = <TJoinedTable extends MySqlTable | Subquery | MySqlViewBase | SQL, TJoinedName extends GetSelectTableName<TJoinedTable> =... npmjs.com
And 2 more in this version.
drizzle-orm 0.38.1 breaking changes
- Signature changed
DBQueryConfig
Was type DBQueryConfig<TRelationType extends 'one' | 'many' = 'one' | 'many', TIsRoot extends boolean = boolean, TSchema extends TablesRelationalConfig = TablesRelationalConfig, TTableConfig extends TableRelationalConfig =... npmjs.com - Signature changed
InferModelFromColumns
Was type InferModelFromColumns<TColumns extends Record<string, Column>, TInferMode extends 'select' | 'insert' = 'select', TConfig extends {dbColumnNames: boolean; override?: boolean;} = {dbColumnNames: false; override: false;}> =... npmjs.com
And 4 more in this version.
drizzle-orm 0.38.0 breaking changes
- Signature changed
BuildColumn
Was type BuildColumn<TTableName extends string, TBuilder extends ColumnBuilderBase, TDialect extends Dialect> = TDialect extends 'pg' ? PgColumn<MakeColumnConfig<TBuilder['_'], TTableName>> : TDialect extends 'mysql' ?... npmjs.com - Signature changed
mysql-core:char
Was function char(): MySqlCharBuilderInitial<'', [string, ...string[]]> function char<TName extends string, U extends string, T extends Readonly<[U, ...U[]]>>(name: TName, config?: MySqlCharConfig<T | Writable<T>>)... npmjs.com
And 175 more in this version.
drizzle-orm 0.37.0 breaking changes
- Signature changed
aws-data-api/pg:AwsDataApiPgDatabase.authToken
Was protected authToken?: string; now protected authToken?: NeonAuthToken. npmjs.com - Signature changed
aws-data-api/pg:AwsDataApiPreparedQuery.authToken
Was protected authToken?: string; now protected authToken?: NeonAuthToken. npmjs.com
And 41 more in this version.
drizzle-orm 0.36.4 breaking changes
- Removed
IsIdentityByDefault
IsIdentityByDefault was removed in drizzle-orm 0.36.4 npmjs.com - Signature changed
aws-data-api/pg:drizzle
Was function drizzle<TSchema extends Record<string, unknown> = Record<string, never>, TClient extends AwsDataApiClient = RDSDataClient>(...params: IfNotImported<RDSDataClientConfig, [ImportTypeError<'@aws-sdk/client-rds-data'>], [TClient... npmjs.com
And 131 more in this version.
drizzle-orm 0.36.3 breaking changes
- Removed
pg-core:PgJoin
PgJoin was removed in drizzle-orm 0.36.3 npmjs.com - Removed
pg-core:PgJoinFn
PgJoinFn was removed in drizzle-orm 0.36.3 npmjs.com
And 100 more in this version.
drizzle-orm 0.36.2 breaking changes
- Removed
ColumnBuilderBaseConfig.generated
ColumnBuilderBaseConfig.generated was removed in drizzle-orm 0.36.2 npmjs.com - Removed
NotGenerated
NotGenerated was removed in drizzle-orm 0.36.2 npmjs.com
And 410 more in this version.
drizzle-orm 0.36.1 breaking changes
- Signature changed
mysql-core:AnyMySqlSelect.limit
Was limit(limit: number): MySqlSelectWithout<this, TDynamic, 'limit'>; now limit(limit: number | Placeholder): MySqlSelectWithout<this, TDynamic, 'limit'>. npmjs.com - Signature changed
mysql-core:AnyMySqlSelect.offset
Was offset(offset: number): MySqlSelectWithout<this, TDynamic, 'offset'>; now offset(offset: number | Placeholder): MySqlSelectWithout<this, TDynamic, 'offset'>. npmjs.com
And 22 more in this version.
drizzle-orm 0.36.0 breaking changes
- Signature changed
pg-core:getTableConfig
Was function getTableConfig<TTable extends PgTable>(table: TTable): {columns: import("./index.js").PgColumn<import("../column.js").ColumnBaseConfig<import("../column-builder.js").ColumnDataType, string>, {}, {}>[]; indexes: Index[]... npmjs.com - Signature changed
pg-core:PgTableExtraConfig
Was type PgTableExtraConfig = Record<string, AnyIndexBuilder | CheckBuilder | ForeignKeyBuilder | PrimaryKeyBuilder | UniqueConstraintBuilder>; now type PgTableExtraConfig = Record<string, PgTableExtraConfigValue>. npmjs.com
And 2 more in this version.
drizzle-orm 0.35.2 breaking changes
- Signature changed
ImportTypeError
Was type ImportTypeError<TPackageName extends string> = `Please install \`${TPackageName}\`to allow Drizzle ORM to connect to the database`; now type ImportTypeError<TPackageName extends string> = `Please install \`${TPackageName}\` to... npmjs.com - Signature changed
node-postgres:drizzle
Was function drizzle<TSchema extends Record<string, unknown> = Record<string, never>, TClient extends NodePgClient = Pool>(...params: IfNotImported<Pool, [ImportTypeError<'pg'>], [TClient | string] | [TClient | string... npmjs.com
And 1 more in this version.
drizzle-orm 0.35.0 breaking changes
- Removed
connect:drizzle
drizzle was removed in drizzle-orm 0.35.0 npmjs.com - Removed
connect:migrate
migrate was removed in drizzle-orm 0.35.0 npmjs.com
And 436 more in this version.
drizzle-orm 0.34.0 breaking changes
- Behavior changed
SQLite generate and push now produce a set of table-recreation statements instead of the comment block asking for manual migration. github.com - Configuration changed
Turso/libSQL users must change drizzle.config from the shared sqlite dialect to dialect "turso" in drizzle-kit. github.com
And 185 more in this version.
Related packages
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.