Skip to content

Update dependency drizzle-orm to v0.43.1 - autoclosed #859

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Mar 24, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
drizzle-orm (source) 0.39.0 -> 0.43.1 age adoption passing confidence

Release Notes

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

v0.43.1

Compare Source

Fixes

v0.43.0

Compare Source

Features
  • Added cross join (#​1414)
  • Added lateral left, inner, cross joins to PostgreSQL, MySQL, Gel, SingleStore
  • Added drizzle connection attributes to SingleStore's driver instances
Fixes
  • Removed unsupported by dialect full join from MySQL select api
  • Forced Gel columns to always have explicit schema & table prefixes due to potential errors caused by lack of such prefix in subquery's selection when there's already a column bearing same name in context
  • Added missing export for PgTextBuilderInitial type
  • Removed outdated IfNotImported type check from SingleStore driver initializer
  • Fixed incorrect type inferrence for insert and update models with non-strict tsconfigs (#​2654)
  • Fixed invalid spelling of nowait flag (#​3554)
  • Add join lateral support
  • Remove .fullJoin() from MySQL API

v0.42.0

Compare Source

Features
Duplicate imports removal

When importing from drizzle-orm using custom loaders, you may encounter issues such as: SyntaxError: The requested module 'drizzle-orm' does not provide an export named 'eq'

This issue arose because there were duplicated exports in drizzle-orm. To address this, we added a set of tests that checks every file in drizzle-orm to ensure all exports are valid. These tests will fail if any new duplicated exports appear.

In this release, we’ve removed all duplicated exports, so you should no longer encounter this issue.

pgEnum and mysqlEnum now can accept both strings and TS enums

If you provide a TypeScript enum, all your types will be inferred as that enum - so you can insert and retrieve enum values directly. If you provide a string union, it will work as before.

enum Test {
  a = 'a',
  b = 'b',
  c = 'c',
}

const tableWithTsEnums = mysqlTable('enums_test_case', {
  id: serial().primaryKey(),
  enum1: mysqlEnum(Test).notNull(),
  enum2: mysqlEnum(Test).default(Test.a),
});

await db.insert(tableWithTsEnums).values([
  { id: 1, enum1: Test.a, enum2: Test.b, enum3: Test.c },
  { id: 2, enum1: Test.a, enum3: Test.c },
  { id: 3, enum1: Test.a },
]);

const res = await db.select().from(tableWithTsEnums);

expect(res).toEqual([
  { id: 1, enum1: 'a', enum2: 'b', enum3: 'c' },
  { id: 2, enum1: 'a', enum2: 'a', enum3: 'c' },
  { id: 3, enum1: 'a', enum2: 'a', enum3: 'b' },
]);
Improvements
  • Make inArray accept ReadonlyArray as a value - thanks @​Zamiell
  • Pass row type parameter to @planetscale/database's execute - thanks @​ayrton
  • New InferEnum type - thanks @​totigm
Issues closed

v0.41.0

Compare Source

  • bigint, number modes for SQLite, MySQL, PostgreSQL, SingleStore decimal & numeric column types
  • Changed behavior of sql-js query preparation to query prebuild instead of db-side prepare due to need to manually free prepared queries, removed .free() method
  • Fixed MySQL, SingleStore varchar allowing not specifying length in config
  • Fixed MySQL, SingleStore binary, varbinary data\type mismatches
  • Fixed numeric\decimal data\type mismatches: #​1290, #​1453
  • Fixed drizzle-studio + AWS Data Api connection issue: #​3224
  • Fixed isConfig utility function checking types of wrong fields
  • Enabled supportBigNumbers in auto-created mysql2 driver instances
  • Fixed custom schema tables querying in RQBv1: #​4060
  • Removed in-driver mapping for postgres types 1231 (numeric[]), 1115 (timestamp[]), 1185 (timestamp_with_timezone[]), 1187 (interval[]), 1182 (date[]), preventing precision loss and data\type mismatches
  • Fixed SQLite buffer-mode blob sometimes returning number[]

v0.40.1

Compare Source

Updates to neon-http for @neondatabase/[email protected] - thanks @​jawj

Starting from this version, drizzle-orm will be compatible with both @neondatabase/serverless <1.0 and >1.0

v0.40.0

Compare Source

New Features

Added Gel dialect support and gel-js client support

Drizzle is getting a new Gel dialect with its own types and Gel-specific logic. In this first iteration, almost all query-building features have been copied from the PostgreSQL dialect since Gel is fully PostgreSQL-compatible. The only change in this iteration is the data types. The Gel dialect has a different set of available data types, and all mappings for these types have been designed to avoid any extra conversions on Drizzle's side. This means you will insert and select exactly the same data as supported by the Gel protocol.

Drizzle + Gel integration will work only through drizzle-kit pull. Drizzle won't support generate, migrate, or push features in this case. Instead, drizzle-kit is used solely to pull the Drizzle schema from the Gel database, which can then be used in your drizzle-orm queries.

The Gel + Drizzle workflow:

  1. Use the gel CLI to manage your schema.
  2. Use the gel CLI to generate and apply migrations to the database.
  3. Use drizzle-kit to pull the Gel database schema into a Drizzle schema.
  4. Use drizzle-orm with gel-js to query the Gel database.

Here is a small example of how to connect to Gel using Drizzle:

// Make sure to install the 'gel' package 
import { drizzle } from "drizzle-orm/gel";
import { createClient } from "gel";

const gelClient = createClient();
const db = drizzle({ client: gelClient });

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

and drizzle-gel schema definition

import { gelTable, uniqueIndex, uuid, smallint, text } from "drizzle-orm/gel-core"
import { sql } from "drizzle-orm"

export const users = gelTable("users", {
    id: uuid().default(sql`uuid_generate_v4()`).primaryKey(),
    age: smallint(),
    email: text().notNull(),
    name: text(),
});

On the drizzle-kit side you can now use dialect: "gel"

// drizzle.config.ts
import { defineConfig } from 'drizzle-kit';

export default defineConfig({
  dialect: 'gel',
});

For a complete Get Started tutorial you can use our new guides:

v0.39.3

Compare Source

  • Remove react from peerDependencies

v0.39.2

Compare Source

  • To be compatible with latest Neon Auth feature we renamed the pre-defined schema internally, from neon_identity to neon_auth - thanks @​pffigueiredo

v0.39.1

Compare Source

  • Fixed SQLite onConflict clauses being overwritten instead of stacked - #​2276
  • Added view support to aliasedTable()
  • Fixed sql builder prefixing aliased views and tables with their schema

Configuration

📅 Schedule: Branch creation - "on monday" (UTC), Automerge - At any time (no schedule defined).

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

Rebasing: Whenever PR is behind base branch, 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 force-pushed the renovate/drizzle-orm-0.x branch 5 times, most recently from 1b339b8 to 22b6e15 Compare March 26, 2025 16:44
@renovate renovate bot changed the title Update dependency drizzle-orm to v0.40.1 Update dependency drizzle-orm to v0.41.0 Mar 26, 2025
@renovate renovate bot force-pushed the renovate/drizzle-orm-0.x branch 5 times, most recently from 58bc32c to 25a0a99 Compare April 6, 2025 12:42
@renovate renovate bot changed the title Update dependency drizzle-orm to v0.41.0 fix(deps): update dependency drizzle-orm to v0.41.0 Apr 6, 2025
@renovate renovate bot force-pushed the renovate/drizzle-orm-0.x branch 6 times, most recently from 082ebae to 355c999 Compare April 7, 2025 14:09
@renovate renovate bot changed the title fix(deps): update dependency drizzle-orm to v0.41.0 Update dependency drizzle-orm to v0.41.0 Apr 7, 2025
@renovate renovate bot force-pushed the renovate/drizzle-orm-0.x branch 3 times, most recently from a081d5d to 0203460 Compare April 8, 2025 22:03
@renovate renovate bot changed the title Update dependency drizzle-orm to v0.41.0 fix(deps): update dependency drizzle-orm to v0.41.0 Apr 8, 2025
@renovate renovate bot force-pushed the renovate/drizzle-orm-0.x branch 7 times, most recently from 01d77de to b5cfa08 Compare April 14, 2025 07:32
@renovate renovate bot force-pushed the renovate/drizzle-orm-0.x branch 14 times, most recently from 6805d2c to a99ec23 Compare April 29, 2025 16:35
@renovate renovate bot changed the title fix(deps): update dependency drizzle-orm to v0.42.0 fix(deps): update dependency drizzle-orm to v0.43.0 Apr 29, 2025
@renovate renovate bot force-pushed the renovate/drizzle-orm-0.x branch from a99ec23 to c134ee0 Compare April 30, 2025 07:45
@renovate renovate bot changed the title fix(deps): update dependency drizzle-orm to v0.43.0 fix(deps): update dependency drizzle-orm to v0.43.1 Apr 30, 2025
@renovate renovate bot force-pushed the renovate/drizzle-orm-0.x branch 6 times, most recently from 9aa881d to 5c01730 Compare May 4, 2025 12:55
@renovate renovate bot changed the title fix(deps): update dependency drizzle-orm to v0.43.1 Update dependency drizzle-orm to v0.43.1 May 4, 2025
@renovate renovate bot force-pushed the renovate/drizzle-orm-0.x branch from 5c01730 to 7fddc5b Compare May 4, 2025 12:56
@renovate renovate bot force-pushed the renovate/drizzle-orm-0.x branch from 7fddc5b to 8371776 Compare May 4, 2025 12:58
@renovate renovate bot changed the title Update dependency drizzle-orm to v0.43.1 Update dependency drizzle-orm to v0.43.1 - autoclosed May 4, 2025
@renovate renovate bot closed this May 4, 2025
@renovate renovate bot deleted the renovate/drizzle-orm-0.x branch May 4, 2025 14:05
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