Skip to content

Update dependency drizzle-kit to v1.0.0-rc.4-5d5b77c#22

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/drizzle-kit-1.x
Open

Update dependency drizzle-kit to v1.0.0-rc.4-5d5b77c#22
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/drizzle-kit-1.x

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate Bot commented Apr 4, 2026

This PR contains the following updates:

Package Change Age Confidence
drizzle-kit (source) 1.0.0-beta.12-a5629fb1.0.0-rc.4-5d5b77c age confidence

Release Notes

drizzle-team/drizzle-orm (drizzle-kit)

v1.0.0-rc.3

Compare Source

v1.0.0-rc.3

Porting all the changes that were made in PostgreSQL to other dialects. This release is about MySQL:

  • Removed RQBv1 from mysql dialect (._query)
  • Internal MySQL sessions refactoring and moving to a unified query preparation function
  • Fallback to regular queries on iterators for drivers that don't support streaming instead of throwing an error for compatibility
  • Enabled optimized non-jit mappers for regular queries for MySQL dialect
  • Switched RQBv2 to array mode querying, disabled root query level JSON conversions
  • Fixed MySQL proxy driver not using lastInsertId, affectedRows from dedicated response fields

Next releases will include:

  • Effect MySQL support
  • SQLite rework (same as this release for MySQL)
  • SQLite Effect Support

v1.0.0-rc.2

Compare Source

Updates
  • Disabled default codec type selectors for custom columns (fixes #​5711)
  • Сallback type overload for codec selector in custom pg columns (codec: (config) => config?.withTimeZone ? 'timestamptz' : 'timestamp')
  • Extended list of postgis types for codecs (improvement for #​5711)
  • Updated codecs: geometry -> geometry(point), geometry:tuple -> geometry(point):tuple
  • Switched PG transactions from class properties back to class methods (fixes #​5709)
  • Updated AWS Data Api codecs, removed query typings, improved input param mapping
  • Removed prepared query typings field from all builders
  • Added column argument to CastParam,CastArrayParam codecs
Migration updates in SQLite
  • Added migration conflict detection for SQLite. When migration history has multiple open branches, drizzle-kit generate now checks whether those branches can be merged safely before creating the next migration. This helps catch cases where two migrations were created from the same parent and then changed the same SQLite object in incompatible ways, for example two branches changing the same table, index, or view.
npx drizzle-kit generate
  • If the conflict is expected and you want to continue anyway, pass --ignore-conflicts to skip the conflict check for that command.
npx drizzle-kit generate --ignore-conflicts
npx drizzle-kit check --ignore-conflicts
  • Added proper SQLite migration tree merging. New snapshots now collect all open leaf snapshot IDs and write them as parents, instead of keeping only one latest parent. This means a new migration generated after branching can merge all open leaves and use the combined SQLite state for the next snapshot diff.
{
  "prevIds": ["first-open-leaf-id", "second-open-leaf-id"]
}
  • Fixed DrizzleQueryError and TransactionRollbackError constructors to properly set the error name for better instanceof checks
  • Fixed error handling in aws-data-api to properly show database error messages

v1.0.0-rc.1

v1.0.0-rc.1

⚠️ This release introduced a breaking change into our casing API(see below) and removes RQB v1 ._query for postgres

JIT mappers

Drizzle ORM now has an opt-in API for JIT(just in time compilated) mappers which make most expensive part of the db request pipeline(row mapping) as fast as humanly possible.

const db = drizzle({ ..., jit: true })

const query = db.select().from(users).prepare();
// ^ here drizzle generates a jit mapper which will then be reused during each invocation

server.get('users', (c) => {
  const users = await query.execute(); // as fast as using raw driver
  return c.json(users)
})

We've reworked internals of Drizzle ORM with the new system of codecs. Those are now in charge of normalising responses and requests for diffrent drivers across pg dialect. They helped us not only properly fix a set of data mapping issues but also massively improve performance by not doing unnecessary work.
We've seen a 25%-30% reduction in latency, while +800rps(14500->15300) in our benchmarks
Give it a go and let us know if everything works just fine!

Effect v4

drizzle-orm@1.0.0-rc.1 comes with native support for Effect v4 via:

import { PgClient } from '@​effect/sql-pg';
import * as PgDrizzle from 'drizzle-orm/effect-postgres';
import * as Effect from 'effect/Effect';
import * as Redacted from 'effect/Redacted';
import { relations } from '../relations';

const connectionStr = Redacted.make(process.env['PG_CONNECTION_STRING']!);
const PgClientLive = PgClient.layer({
  url: connectionStr,
});

const DB = PgDrizzle.make({ relations }).pipe(Effect.provide(PgDrizzle.DefaultServices));
const program = Effect.gen(function*() {
  const db = yield* DB;

  const users = yield* db.select().from(usersTable);
}).pipe(Effect.provide(PgClientLive));

await Effect.runPromise(program);

New Casing API

⚠️ BREAKING CHANGE
In rc.1 we've finally reworked our legacy casing API of const db = drizzle({..., casing: "camel" }) which turned out to not be a proper solution, it required duplication in drizzle-orm instantiation and drizzle-kit config and introduced and set of endless bugs all around query builder chain. All of the above is now fixed with new API:

import * as d from "drizzle-orm/pg-core";

const users = d.snakeCase.table("users", {
  id: d.serial().primaryKey(),
  email: d.text().unique(),
  fullName: d.text(), // full_name in db
  createdAt: d.timestamp().defaultNow(), // created_at in db
})

// --- for namespaces/schemas you can use

const schema2 = d.camelCase.schema("schema2");

const usersInSchema2 = schema2.table("users", ...);
const ordersInSchema2 = schema2.table("orders", ...);
// ^ all entities in schema2 will be snake_cased

// --- all available entities
import { snakeCase, camelCase } from "drizzle-orm/pg-core";

snakeCase.view
snakeCase.materializedView
snakeCase.schema
snakeCase.table

camelCase.view
camelCase.materializedView
camelCase.schema
camelCase.table

New Netlify Database Driver

Note: The Netlify Database driver is developed and maintained by the Netlify team.

Installation:

npm install @​netlify/database

Usage example:

import { drizzle } from 'drizzle-orm/netlify-db';

const db = drizzle();

const result = await db.execute('select 1');
import { drizzle } from 'drizzle-orm/netlify-db';

const db = drizzle(process.env.DATABASE_URL);

const result = await db.execute('select 1');
import { drizzle } from 'drizzle-orm/netlify-db';

// Explicit client — consumer controls the driver
const db = drizzle({ client: netlifyDbClient });

const result = await db.execute('select 1');

Bug fixes and improvements:

  • Codec system for postgres - resolves issues created by differences of data types returned by different drivers or different contexts of query (regular select, JSON object, postgres array). Currently only handles supported by drizzle constructors column types. (fixes #​3018, #​5090, #​5287)
  • Optimized query mappers for postgres
  • Opt-in JIT-generated mappers for all dialects
  • Optimized RQBv2 mappers for all dialects
  • ⚠️ BREAKING CHANGE: Removed RQBv1 (db._query) from postgres
  • Moved pg array utils (makePgArray, parsePgArray) from drizzle-orm/pg-core/utils[/array] to drizzle-orm/pg-core/array
  • Simplified postgres sessions & prepared queries
  • Fixed neon-http bytea data corruption
  • Fixed bun-sql/postgres timestamp timezone truncation, json[b] data double stringification
  • ⚠️ BREAKING CHANGE: Reworked casing API - moved casing control from db instance to table \ view \ schema via import { snakeCase, camelCase } from "drizzle-orm/dialect-core", fixed #​5112 #​5282 #​4181 #​4209
  • Switched from Effect V3 to Effect V4 beta for effect-schema, effect-postgres (fixes #​5414)

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot changed the title chore(deps): update dependency drizzle-kit to v1.0.0-beta.9-e89174b Update dependency drizzle-kit to v1.0.0-beta.9-e89174b Apr 15, 2026
@renovate renovate Bot force-pushed the renovate/drizzle-kit-1.x branch from 622809f to 4a3af3e Compare April 16, 2026 15:06
@renovate renovate Bot force-pushed the renovate/drizzle-kit-1.x branch from 4a3af3e to 2dfbec0 Compare May 1, 2026 03:18
@renovate renovate Bot changed the title Update dependency drizzle-kit to v1.0.0-beta.9-e89174b Update dependency drizzle-kit to v1.0.0-rc.1 May 1, 2026
@renovate renovate Bot force-pushed the renovate/drizzle-kit-1.x branch from 2dfbec0 to 7cc64f6 Compare May 1, 2026 17:25
@renovate renovate Bot changed the title Update dependency drizzle-kit to v1.0.0-rc.1 Update dependency drizzle-kit to v1.0.0-rc.1-929a083 May 1, 2026
@renovate renovate Bot force-pushed the renovate/drizzle-kit-1.x branch from 7cc64f6 to b80f97a Compare May 1, 2026 20:52
@renovate renovate Bot changed the title Update dependency drizzle-kit to v1.0.0-rc.1-929a083 Update dependency drizzle-kit to v1.0.0-rc.2-203eab8 May 1, 2026
@renovate renovate Bot force-pushed the renovate/drizzle-kit-1.x branch from b80f97a to ac23f4a Compare May 4, 2026 15:53
@renovate renovate Bot changed the title Update dependency drizzle-kit to v1.0.0-rc.2-203eab8 Update dependency drizzle-kit to v1.0.0-rc.2-33e80cd May 4, 2026
@renovate renovate Bot force-pushed the renovate/drizzle-kit-1.x branch from ac23f4a to 78984d7 Compare May 6, 2026 11:39
@renovate renovate Bot changed the title Update dependency drizzle-kit to v1.0.0-rc.2-33e80cd Update dependency drizzle-kit to v1.0.0-rc.2-e38a2ba May 6, 2026
@renovate renovate Bot force-pushed the renovate/drizzle-kit-1.x branch 2 times, most recently from ef319f6 to 550c7b5 Compare May 20, 2026 15:58
@renovate renovate Bot changed the title Update dependency drizzle-kit to v1.0.0-rc.2-e38a2ba Update dependency drizzle-kit to v1.0.0-rc.3-fe92e22 May 20, 2026
@renovate renovate Bot force-pushed the renovate/drizzle-kit-1.x branch from 550c7b5 to 4ed4502 Compare May 20, 2026 18:06
@renovate renovate Bot changed the title Update dependency drizzle-kit to v1.0.0-rc.3-fe92e22 Update dependency drizzle-kit to v1.0.0-rc.4-273829f May 20, 2026
@renovate renovate Bot force-pushed the renovate/drizzle-kit-1.x branch from 4ed4502 to 74388d6 Compare May 20, 2026 21:01
@renovate renovate Bot changed the title Update dependency drizzle-kit to v1.0.0-rc.4-273829f Update dependency drizzle-kit to v1.0.0-rc.4-5d5b77c May 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants