Packages

knex

3.3.0 · 26 Jun 2026MIT7.3M / weekRepositoryHomepagenpmAtom feed

Upgrading knex From 0.1.7 to 3.3.0

223 releases in betweennotes for 213

Reading releases, release notes and advisories…

Other targets from 0.1.7Newest 0.x0.95.15Clears its 2 advisories2.4.0
  1. 0.1.7yours
  2. 1 release
  3. 0.2.0major
  4. 6 releases
  5. 0.4.0major
  6. 10 releases
  7. 0.4.11security
  8. 2 releases
  9. 0.5.0major
  10. 16 releases
  11. 0.6.0major
  12. 23 releases
  13. 0.7.0major
  14. 6 releases
  15. 0.8.0major
  16. 6 releases
  17. 0.9.0major
  18. 0.10.0major
  19. 0.11.0major
  20. 10 releases
  21. 0.12.0major
  22. 9 releases
  23. 0.13.0major
  24. 0.14.0major
  25. 6 releases
  26. 0.15.0major
  27. 2 releases
  28. 0.16.0major
  29. 7 releases
  30. 0.17.0major
  31. 6 releases
  32. 0.18.0major
  33. 4 releases
  34. 0.19.0major
  35. 5 releases
  36. 0.20.0major
  37. 15 releases
  38. 0.21.0major
  39. 21 releases
  40. 0.95.0major
  41. 15 releases
  42. 1.0.0major
  43. 7 releases
  44. 2.0.0major
  45. 8 releases
  46. 3.0.0major
  47. 11 releases
  48. 3.2.9security
  49. 1 release
  50. 3.3.0target
51+
changes to make
2
advisories fixed
398+
new
376+
fixes

Counted from 213 of 223 release notes. Advisories are counted from the advisory database, in full.

Start here

Before you upgrade

Tick each one off as you go
  • Breaking2.0.0
  • Breaking1.0.0
  • Breaking1.0.0
  • Breaking1.0.0
  • Breaking1.0.0
  • Breaking0.95.0
  • Breaking0.21.0
  • Breaking0.21.0
  • Breaking0.20.11
  • Breaking0.20.11

Security

Fixes 2 advisories affecting 0.1.7

  • postgres: Escape double quotes in searchPath to prevent SQL injection #6411

    3.2.9
  • Fix potential sql injection vulnerability in orderBy, thanks to @sebgie

    0.4.11

Release by release

  1. 3.3.0

    26 Jun 20265 new · 10 fixes
    • New

      Add support for returning in mariadb #4572

    • New

      Mariadb driver support #6415

    • New

      Add connectionPool option for bringing an external pool #6414

    • New

      Added knex.migrate.to and knex.migrate.before #6420

  2. 3.2.10

    2 May 20262 fixes
    • Fixed

      Bump lodash to ^4.18.1, close #6433 #6446

    • Fixed

      Properly Escape Aliases in Analytic Functions #6392

  3. 3.2.9

    Security fix3 Apr 20263 fixes
    • Security

      postgres: Escape double quotes in searchPath to prevent SQL injection #6411

    • Fixed

      Support DELETE... LIMIT in dialects that support it (mysql), but continue to disallow ones that don't #6429

    • Fixed

      sqlite: Append RETURNING statement when insert empty row #5471

    • Fixed

      Add type support for Array<Buffer> #6428

  4. 3.2.8

    30 Mar 20262 fixes
    • Fixed

      Reverts the breaking changes added in #6227. This means that the ESM import of Knex is reverted to import { knex } from 'knex/knex.mjs #6422

    • Fixed

      types: Allow a QueryBuilder type as a value in an update #6419

  5. 3.2.7

    27 Mar 20265 fixes
    • Fixed

      Fix sqlite DDL operations failing inside transactions #6408

    • Fixed

      Handle lowercase INFORMATION_SCHEMA keys in MySQL renameColumn #6407

    • Fixed

      Clone config in client constructor #5633

    • Fixed

      Remove __knexTxId from transaction connection on release #5288

    • Fixed

      Correct binding order in delete with subquery join #6412

  6. 3.2.6

    25 Mar 20261 fix
    • Fixed

      Fix module exports #6406

  7. 3.2.5

    23 Mar 20261 fix
    • Fixed

      Fix ESM exports #6405

  8. 3.2.4

    23 Mar 20261 fix
    • Fixed

      Fix ESM type exports #6404

265 other lines we could not sort, mostly version bumps
  • Prepare to release 3.2.3 hotfix

    3.2.3
  • Make types no longer allow knex to be called without tablename

    3.2.0
  • Update typings for increment/decrement

    3.2.0
  • Use syntax import from instead of import = require()

    3.2.0
  • Import knex as type in TS seed template

    3.2.0
  • Update index.d.ts

    3.2.0
  • Import knex as type in TS migration template

    3.1.0
  • Build fix

    3.0.1
  • Drop compatibility for Node < 16

    3.0.0
  • TableBuilder methods return the SchemaBuilder.

    2.5.0

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