Packages

drizzle-orm

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

Upgrading drizzle-orm From 0.40.1 to 0.45.4

17 releases in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 0.40.1Clears its advisory0.45.2
  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.2security
  11. 1 release
  12. 0.45.4target

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.4

    8 Oct 20261 fix
    • Fixed

      Fixed postgres-js not using prepared queries on explicit .prepare(name)

  2. 0.45.3nothing new or fixed in the note

  3. 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

  4. 0.45.1

    10 Dec 20251 fix
    • Fixed

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

  5. 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)

  6. 0.44.7

    23 Oct 20251 fix
    • Fixed

      Fix durable sqlite transaction return value #3746

  7. 0.44.6

    2 Oct 20251 new
    • New

      Add $replicas reference #4874

  8. 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

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.