fix(deps): update dependency drizzle-orm to v0.44.4 #331
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 contains the following updates:
0.38.3
->0.44.4
Release Notes
drizzle-team/drizzle-orm (drizzle-orm)
v0.44.4
Compare Source
v0.44.3
Compare Source
$client
for clients created by drizzle functionupdated_at
column to theneon_auth.users_sync
table definition.v0.44.2
Compare Source
tsconfig
: #4535, #4457v0.44.1
Compare Source
v0.44.0
Compare Source
Error handling
Starting from this version, we’ve introduced a new
DrizzleQueryError
that wraps all errors from database drivers and provides a set of useful information:Drizzle
query failedDrizzle
cache
moduleDrizzle sends every query straight to your database by default. There are no hidden actions, no automatic caching or invalidation - you’ll always see exactly what runs. If you want caching, you must opt in.
By default, Drizzle uses a explicit caching strategy (i.e.
global: false
), so nothing is ever cached unless you ask. This prevents surprises or hidden performance traps in your application. Alternatively, you can flip on all caching (global: true) so that every select will look in cache first.Out first native integration was built together with Upstash team and let you natively use
upstash
as a cache for your drizzle queriesYou can also implement your own cache, as Drizzle exposes all the necessary APIs, such as get, put, mutate, etc.
You can find full implementation details on the website
For more usage example you can check our docs
v0.43.1
Compare Source
Fixes
v0.43.0
Compare Source
Features
cross join
(#1414)left
,inner
,cross
joins toPostgreSQL
,MySQL
,Gel
,SingleStore
SingleStore
's driver instancesFixes
full join
fromMySQL
select apiGel
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 contextPgTextBuilderInitial
typeIfNotImported
type check fromSingleStore
driver initializertsconfig
s (#2654)nowait
flag (#3554)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 indrizzle-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
andmysqlEnum
now can accept both strings and TS enumsIf 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.
Improvements
inArray
acceptReadonlyArray
as a value - thanks @Zamiell@planetscale/database
's execute - thanks @ayrtonInferEnum
type - thanks @totigmIssues closed
v0.41.0
Compare Source
bigint
,number
modes forSQLite
,MySQL
,PostgreSQL
,SingleStore
decimal
&numeric
column typessql-js
query preparation to query prebuild instead of db-side prepare due to need to manually free prepared queries, removed.free()
methodMySQL
,SingleStore
varchar
allowing not specifyinglength
in configMySQL
,SingleStore
binary
,varbinary
data\type mismatchesnumeric
\decimal
data\type mismatches: #1290, #1453drizzle-studio
+AWS Data Api
connection issue: #3224isConfig
utility function checking types of wrong fieldssupportBigNumbers
in auto-createdmysql2
driver instances1231
(numeric[]
),1115
(timestamp[]
),1185
(timestamp_with_timezone[]
),1187
(interval[]
),1182
(date[]
), preventing precision loss and data\type mismatchesSQLite
buffer
-modeblob
sometimes returningnumber[]
v0.40.1
Compare Source
Updates to
neon-http
for@neondatabase/[email protected]
- thanks @jawjStarting from this version, drizzle-orm will be compatible with both
@neondatabase/serverless
<1.0 and >1.0v0.40.0
Compare Source
New Features
Added
Gel
dialect support andgel-js
client supportDrizzle 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 thePostgreSQL
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 supportgenerate
,migrate
, orpush
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 yourdrizzle-orm
queries.The Gel + Drizzle workflow:
gel
CLI to manage your schema.gel
CLI to generate and apply migrations to the database.Here is a small example of how to connect to Gel using Drizzle:
and drizzle-gel schema definition
On the drizzle-kit side you can now use
dialect: "gel"
For a complete Get Started tutorial you can use our new guides:
v0.39.3
Compare Source
react
from peerDependenciesv0.39.2
Compare Source
neon_identity
toneon_auth
- thanks @pffigueiredov0.39.1
Compare Source
aliasedTable()
v0.39.0
Compare Source
New features
Bun SQL driver support
You can now use the new Bun SQL driver released in Bun v1.2.0 with Drizzle
or you can use Bun SQL instance
Current Limitations:
json
andjsonb
inserts and selects currently perform an additionalJSON.stringify
on the Bun SQL side. Once this is removed, they should work properly. You can always use custom types and redefine the mappers to and from the database.datetime
,date
, andtimestamp
will not work properly when usingmode: string
in Drizzle. This is due to Bun's API limitations, which prevent custom parsers for queries. As a result, Drizzle cannot control the response sent from Bun SQL to Drizzle. Once this feature is added to Bun SQL, it should work as expected.array
types currently have issues in Bun SQL.WITH now supports INSERT, UPDATE, DELETE and raw sql template
with
andinsert
with
andupdate
with
anddelete
with
andsql
New tables in
/neon
importIn this release you can use
neon_identity
schema andusers_sync
table inside this schema by just importing it from/neon
Utils and small improvements
getViewName
util functionBug fixed and GitHub issue closed
v0.38.4
Compare Source
vector
- thanks @mitchwadairConfiguration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR was generated by Mend Renovate. View the repository job log.