[Snyk] Upgrade drizzle-orm from 0.39.3 to 0.40.0#10
Open
Conversation
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
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
- Use the
- Use the
- Use drizzle-kit to pull the Gel database schema into a Drizzle schema.
- Use drizzle-orm with gel-js to query the Gel database.
// Make sure to install the 'gel' package
import { gelTable, uniqueIndex, uuid, smallint, text } from "drizzle-orm/gel-core"
// drizzle.config.ts
- Get Started with Drizzle and Gel in a new project
- Get Started with Drizzle and Gel in a existing project
-
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
from drizzle-orm GitHub release notesNew Features
Added
Geldialect support andgel-jsclient supportDrizzle is getting a new
Geldialect with its own types and Gel-specific logic. In this first iteration, almost all query-building features have been copied from thePostgreSQLdialect 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 supportgenerate,migrate, orpushfeatures in this case. Instead, drizzle-kit is used solely to pull the Drizzle schema from the Gel database, which can then be used in yourdrizzle-ormqueries.The Gel + Drizzle workflow:
gelCLI to manage your schema.gelCLI to generate and apply migrations to the database.Here is a small example of how to connect to Gel using Drizzle:
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 { 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"import { defineConfig } from 'drizzle-kit';
export default defineConfig({
dialect: 'gel',
});
For a complete Get Started tutorial you can use our new guides:
reactfrom peerDependenciesImportant
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: