Skip to content

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

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

janekkkk
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 9 versions ahead of your current version.

  • The recommended version was released 21 days 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-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.
  • Snyk has automatically assigned this pull request, set who gets assigned.

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/janekkkk/project/5c8fcb13-4b2d-486c-8abb-8704af9d8a59?utm_source=github&utm_medium=referral&page=upgrade-pr
@janekkkk janekkkk self-assigned this Mar 19, 2025
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