Packages

drizzle-orm

0.45.4 · 8 Oct 2026Apache-2.049.6M / weekRepositoryHomepagenpmAtom feed

Upgrading drizzle-orm From 0.40.1 to 0.45.2

15 releases in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 0.40.1Newest 0.x, Latest0.45.4
  1. 0.40.1yours
  2. 0.41.0major
  3. 0.42.0major
  4. 0.43.0major
  5. 1 release
  6. 0.44.0major
  7. 7 releases
  8. 0.45.0major
  9. 1 release
  10. 0.45.2target

Before you upgrade

Tick each one off as you go
  • Breaking0.43.0

Security

Fixes 1 advisory affecting 0.40.1

  • Fixed sql.identifier(), sql.as() escaping issues. Previously all the values passed to this functions were not properly escaped causing a possible SQL Injection (CWE-89) vulnerability

    0.45.2

Release by release

  1. 0.45.2

    Security fix27 Mar 2026
    • Security

      Fixed sql.identifier(), sql.as() escaping issues. Previously all the values passed to this functions were not properly escaped causing a possible SQL Injection (CWE-89) vulnerability

  2. 0.45.1

    10 Dec 20251 fix
    • Fixed

      Fixed pg-native Pool detection in node-postgres transactions breaking in environments with forbidden require()

  3. 0.45.0

    4 Dec 20253 fixes
    • Fixed

      Fixed pg-native Pool detection in node-postgres transactions

    • Fixed

      Fixed $onUpdate not handling SQL values (fixes #2388, tests implemented by L-Mario564 in #2911)

    • Fixed

      Fixed pg mappers not handling Date instances in bun-sql:postgresql driver responses for date, timestamp types (fixes #4493)

  4. 0.44.7

    23 Oct 20251 fix
    • Fixed

      Fix durable sqlite transaction return value #3746

  5. 0.44.6

    2 Oct 20251 new
    • New

      Add $replicas reference #4874

  6. 0.44.5

    25 Aug 20252 fixes
    • Fixed

      Fixed invalid usage of .one() in durable-sqlite session

    • Fixed

      Fixed spread operator related crash in sqlite blob columns

  7. 0.44.4

    29 Jul 20251 fix
    • Fixed

      Fix wrong DrizzleQueryError export. thanks @nathankleyn

  8. 0.44.3

    14 Jul 20251 new · 1 fix
    • New

      Added the updated_at column to the neon_auth.users_sync table definition.

    • Fixed

      Fixed types of $client for clients created by drizzle function

13 other lines we could not sort, mostly version bumps

3 internal lines (docs, tests, tooling) left out.

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.