Packages

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…

Other targets from 0.37.0Newest 0.x, Latest0.45.4Clears its advisory0.45.2
  1. 0.37.0yours
  2. 0.38.0target

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

Upgrading to 0.45.2 clears it.

Release by release

  1. 0.38.0

    Migration needed9 Dec 20246 new · 25 fixes
    • Breaking

      MySqlCharBuilderInitial

    • Breaking

      MySqlVarCharBuilderInitial

    • Breaking

      PgCharBuilderInitial

    • Breaking

      PgArrayBuilder

8 other lines we could not sort, mostly version bumps
  • drizzle-zod has been completely rewritten. You can find detailed information about it here

    0.38.0
  • drizzle-valibot has been completely rewritten. You can find detailed information about it here

    0.38.0
  • drizzle-typebox has 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
  • createSelectSchema function now also accepts views and enums.

    0.38.0

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.