Packages

knex

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

Upgrading knex From 0.5.4 to 2.4.0

177 releases in betweennotes for 168

Reading releases, release notes and advisories…

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

Counted from 168 of 177 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.5.4

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

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