Skip to content

[Snyk] Upgrade drizzle-orm from 0.39.3 to 0.40.0#10

Open
AKameni1 wants to merge 1 commit intomainfrom
snyk-upgrade-0628fb7565afcbf0644ca98e520fbf2b
Open

[Snyk] Upgrade drizzle-orm from 0.39.3 to 0.40.0#10
AKameni1 wants to merge 1 commit intomainfrom
snyk-upgrade-0628fb7565afcbf0644ca98e520fbf2b

Conversation

@AKameni1
Copy link
Owner

snyk-top-banner

Snyk has created this PR to upgrade drizzle-orm from 0.39.3 to 0.40.0.

ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.


  • The recommended version is 11 versions ahead of your current version.

  • The recommended version was released a month ago.

Release notes
Package name: drizzle-orm
  • 0.40.0 - 2025-02-25

    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(sqluuid_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:

  • 0.40.0-f8a2f3c - 2025-03-12
  • 0.40.0-dafd14f - 2025-03-21
  • 0.40.0-ca1033e - 2025-03-25
  • 0.40.0-bbf78ae - 2025-03-06
  • 0.40.0-af1f2fe - 2025-02-25
  • 0.40.0-abfca61 - 2025-03-13
  • 0.40.0-905c951 - 2025-03-07
  • 0.40.0-8e220c4 - 2025-03-06
  • 0.40.0-53e792e - 2025-03-11
  • 0.40.0-262a7b0 - 2025-02-24
  • 0.39.3 - 2025-02-10
    • Remove react from peerDependencies
from drizzle-orm GitHub release notes

Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • This PR was automatically created by Snyk using the credentials of a real user.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.

For more information:

Snyk has created this PR to upgrade drizzle-orm from 0.39.3 to 0.40.0.

See this package in npm:
drizzle-orm

See this project in Snyk:
https://app.snyk.io/org/akameni1/project/0a850161-9c7c-46e4-b395-058035a94c8e?utm_source=github&utm_medium=referral&page=upgrade-pr
@vercel
Copy link

vercel bot commented Mar 30, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
lms-university ❌ Failed (Inspect) Mar 30, 2025 7:34am

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.

2 participants