Packages

knex

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

Upgrading knex From 0.9.0 to 2.4.0

126 releases in betweennotes for 120

Other targets from 0.9.0Newest 0.x0.95.15Latest3.3.0
  1. 0.9.0yours
  2. 0.10.0major
  3. 0.11.0major
  4. 10 releases
  5. 0.12.0major
  6. 9 releases
  7. 0.13.0major
  8. 0.14.0major
  9. 6 releases
  10. 0.15.0major
  11. 2 releases
  12. 0.16.0major
  13. 7 releases
  14. 0.17.0major
  15. 6 releases
  16. 0.18.0major
  17. 4 releases
  18. 0.19.0major
  19. 5 releases
  20. 0.20.0major
  21. 15 releases
  22. 0.21.0major
  23. 21 releases
  24. 0.95.0major
  25. 15 releases
  26. 1.0.0major
  27. 7 releases
  28. 2.0.0major
  29. 3 releases
  30. 2.4.0target
39+
changes to make
2
advisories fixed
325+
new
273+
fixes

Counted from 120 of 126 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.9.0

Release by release

  1. 2.4.0

    6 Jan 20234 new · 4 fixes
    • New

      Support partial unique indexes #5316

    • New

      Make compiling SQL in error message optional #5282

    • New

      MySQL: Add assertion for basic where clause not to be object or array #1227

    • New

      Add missing type for 'expirationChecker' on PgConnectionConfig #5334

  2. 2.3.0

    31 Aug 20223 new · 2 fixes
    • New

      PostgreSQL: Explicit jsonb support for custom pg clients #5201

    • New

      SQLite: Support returning with sqlite3 and better-sqlite3 #5285

    • New

      MSSQL: Implement mapBinding mssql dialect option #5292

    • Fixed

      Fix WhereJsonObject withCompositeTableType #5306

    • Fixed

      Fix AnalyticFunction type #5304

  3. 2.2.0

    18 Jul 20225 new
    • New

      Inline primary key creation for postgres flavours #5233

    • New

      SQLite: Add warning for undefined connection file #5223

    • New

      MSSQL: Add JSON parameter support for connection #5200

    • New

      PostgreSQL: Add primaryKey option for uuid #5212

    • New

      Add promisable and better types #5222

  4. 2.1.0

    26 May 20223 new · 5 fixes
    • New

      Improve bundling experience to safely import dialects while using static paths #5142

    • New

      Implement extendable builders #5041

    • New

      PostgreSQL: Refresh materialized view concurrently #5166

    • Fixed

      Use correct paths in package.json browser field #5174

  5. 2.0.0

    Migration needed21 Apr 2022
    • Breaking

      Restore sqlite3 package #5136

  6. 1.0.7

    13 Apr 20221 fix
    • Fixed

      CLI: Fix cli migrate:make SQLite dependency #5106

  7. 1.0.6

    12 Apr 20222 fixes
    • Fixed

      PostgreSQL: Wait for search path to be set before returning connection #5107

    • Fixed

      CLI: No client override during migrate:make #5109

  8. 1.0.5

    4 Apr 20221 new · 5 fixes
    • New

      Override knexfile options with CLI options #4047

    • Fixed

      Stringify json value in update #5063

    • Fixed

      Fix isModuleType() for yarn #4447

    • Fixed

      Wrapped Unions Fixes #5072

    • Fixed

      SQLite: Fix @vscode-sqlite3 error message #5081

    • Fixed

      CLI: Fix completed migration listing #5060

175 other lines we could not sort, mostly version bumps
  • Update types for TS 4.8 #5279

    2.3.0
  • Infer specific column value type in aggregations #5297

    2.3.0
  • Update raw query bind parameter type #5208

    2.2.0
  • Update type definitions for pg connection #5139

    2.1.0
  • Migrate Husky from 4 to 7 #5137

    2.0.0
  • Migrate Jake to 10.8.5 #5138

    2.0.0
  • Make default generic parameters of Knex match the generic parameter types of knex #5021

    1.0.5
  • Update knex types for TS 4.7 #5095

    1.0.5
  • createTableLike callback should be optional #5055

    1.0.4
  • Returning method types #4881

    1.0.0

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