Packages

knex

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

Upgrading knex From 0.4.13 to 2.4.0

182 releases in betweennotes for 173

Reading releases, release notes and advisories…

Other targets from 0.4.13Newest 0.x0.95.15Latest3.3.0
  1. 0.4.13yours
  2. 0.5.0major
  3. 16 releases
  4. 0.6.0major
  5. 23 releases
  6. 0.7.0major
  7. 6 releases
  8. 0.8.0major
  9. 6 releases
  10. 0.9.0major
  11. 0.10.0major
  12. 0.11.0major
  13. 10 releases
  14. 0.12.0major
  15. 9 releases
  16. 0.13.0major
  17. 0.14.0major
  18. 6 releases
  19. 0.15.0major
  20. 2 releases
  21. 0.16.0major
  22. 7 releases
  23. 0.17.0major
  24. 6 releases
  25. 0.18.0major
  26. 4 releases
  27. 0.19.0major
  28. 5 releases
  29. 0.20.0major
  30. 15 releases
  31. 0.21.0major
  32. 21 releases
  33. 0.95.0major
  34. 15 releases
  35. 1.0.0major
  36. 7 releases
  37. 2.0.0major
  38. 3 releases
  39. 2.4.0target
43+
changes to make
2
advisories fixed
361+
new
301+
fixes

Counted from 173 of 182 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.4.13

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

245 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

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