drizzle-orm
0.45.4 · 8 Oct 2026Apache-2.049.6M / weekRepositoryHomepagenpmAtom feed
Upgrading drizzle-orm From 0.37.0 to 0.38.0
1 release in betweenevery note read
Reading releases, release notes and advisories…
- 16
- changes to make
- 0
- advisories fixed
- 6
- new
- 25
- fixes
Before you upgrade
Tick each one off as you go- Breaking0.38.0
- Breaking0.38.0
- Breaking0.38.0
- Breaking0.38.0
- Breaking0.38.0
- Breaking0.38.0
- Breaking0.38.0
- Breaking0.38.0
- Breaking0.38.0
- Breaking0.38.0
Security
1 advisory still affects 0.38.0
- Drizzle ORM has SQL injection via improperly escaped SQL identifiershigh · GHSA-gpj5-g38j-94v9
Upgrading to 0.45.2 clears it.
Release by release
- Breaking
MySqlCharBuilderInitial - Breaking
MySqlVarCharBuilderInitial - Breaking
PgCharBuilderInitial - Breaking
PgArrayBuilder
- Breaking
8 other lines we could not sort, mostly version bumps
- 0.38.0
drizzle-zodhas been completely rewritten. You can find detailed information about it here - 0.38.0
drizzle-valibothas been completely rewritten. You can find detailed information about it here - 0.38.0
drizzle-typeboxhas been completely rewritten. You can find detailed information about it here - 0.38.0
Output for all packages are now unminified, makes exploring the compiled code easier when published to npm.
- 0.38.0
Smaller footprint. Previously, we imported the column types at runtime for each dialect, meaning that for example, if you're just using Postgres then you'd likely only have drizzle-orm and drizzle-orm/pg-core in the build output of your app; however, these packages imported all dialects which could lead to mysql-core and sqlite-core being bundled as well even if they're unused in your app. This is now fixed.
- 0.38.0
Slight performance gain. To determine the column data type we used the is function which performs a few checks to ensure the column data type matches. This was slow, as these checks would pile up every quickly when comparing all data types for many fields in a table/view. The easier and faster alternative is to simply go off of the column's columnType property.
- 0.38.0
Some changes had to be made at the type level in the ORM package for better compatibility with drizzle-valibot.
- 0.38.0
createSelectSchemafunction now also accepts views and enums.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.