Packages

knex

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

Upgrading knex From 1.0.3 to 3.3.0

28 releases in betweennotes for 27

Reading releases, release notes and advisories…

Other targets from 1.0.3Newest 1.x1.0.7Clears its advisory2.4.0
  1. 1.0.3yours
  2. 4 releases
  3. 2.0.0major
  4. 8 releases
  5. 3.0.0major
  6. 11 releases
  7. 3.2.9security
  8. 1 release
  9. 3.3.0target
1+
change to make
1
advisory fixed
52+
new
87+
fixes

Counted from 27 of 28 release notes. Advisories are counted from the advisory database, in full.

Before you upgrade

Tick each one off as you go
  • Breaking2.0.0

Security

Fixes 1 advisory affecting 1.0.3

  • 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

19 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

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.