Packages

knex

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

Upgrading knex From 0.95.2 to 2.4.0

26 releases in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 0.95.2Newest 0.x0.95.15Latest3.3.0
  1. 0.95.2yours
  2. 13 releases
  3. 1.0.0major
  4. 7 releases
  5. 2.0.0major
  6. 3 releases
  7. 2.4.0target

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

Security

Fixes 1 advisory affecting 0.95.2

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

21 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

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