Packages

knex

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

Upgrading knex From 2.4.1 to 3.3.0

18 releases in betweennotes for 17

Reading releases, release notes and advisories…

Other targets from 2.4.1Newest 2.x2.5.1
The note of 3.0.0 lists no breaking change or deprecation, which is rare for a major.
  1. 2.4.1yours
  2. 3 releases
  3. 3.0.0major
  4. 11 releases
  5. 3.2.9security
  6. 1 release
  7. 3.3.0target
?
changes to make
0
advisories fixed
35+
new
62+
fixes

Counted from 17 of 18 release notes. Advisories are counted from the advisory database, in full.

Security

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

    3.2.9

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

10 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

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.