[Snyk] Upgrade drizzle-orm from 0.29.5 to 0.30.10 #24
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.
This PR was automatically created by Snyk using the credentials of a real user.
![snyk-top-banner](https://github.com/andygongea/OWASP-Benchmark/assets/818805/c518c423-16fe-447e-b67f-ad5a49b5d123)
Snyk has created this PR to upgrade drizzle-orm from 0.29.5 to 0.30.10.
ℹ️ 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 62 versions ahead of your current version.
The recommended version was released on a month ago.
Release notes
Package name: drizzle-orm
New Features
🎉
.if()
function added to all WHERE expressionsSelect all users after cursors if a cursor value was provided
Bug Fixes
.all
,.values
,.execute
functions in AWS DataAPIsetWhere
andtargetWhere
fields to.onConflictDoUpdate()
config in SQLite instead of singlewhere
fielddb._.fullSchema
const mySchema = pgSchema('mySchema');
const colors = mySchema.enum('colors', ['red', 'green', 'blue']);
migrate()
function to use batch API (#2137)where
clause in Postgres.onConflictDoUpdate
method intosetWhere
andtargetWhere
clauses, to support bothwhere
cases inon conflict ...
clause (fixes #1628, #1302 via #2056)where
clause in Postgres.onConflictDoNothing
method, as it was placed in a wrong spot (fixes #1628 via #2056)Thanks @ hugo082 and @ livingforjesus!
Bug fixes
@ vercel/postgres
packageneon
drivers - #1542New Features
🎉 PGlite driver Support
PGlite is a WASM Postgres build packaged into a TypeScript client library that enables you to run Postgres in the browser, Node.js and Bun, with no need to install any other dependencies. It is only 2.6mb gzipped.
It can be used as an ephemeral in-memory database, or with persistence either to the file system (Node/Bun) or indexedDB (Browser).
Unlike previous "Postgres in the browser" projects, PGlite does not use a Linux virtual machine - it is simply Postgres in WASM.
Usage Example
import { drizzle } from 'drizzle-orm/pglite';
// In-memory Postgres
const client = new PGlite();
const db = drizzle(client);
await db.select().from(users);
There are currently 2 limitations, that should be fixed on Pglite side:
Attempting to refresh a materialised view throws error
Attempting to SET TIME ZONE throws error
New Features
🎉
$onUpdate
functionality for PostgreSQL, MySQL and SQLiteAdds a dynamic update value to the column.
The function will be called when the row is updated, and the returned value will be used as the column value if none is provided.
If no
default
(or$defaultFn
) value is provided, the function will be called when the row is inserted as well, and the returned value will be used as the column value.Fixes
Thanks @ Angelelz and @ gabrielDonnantuoni!
Important
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: