knex
3.3.0 · 26 Jun 2026MIT7.2M / weekRepositoryHomepagenpmAtom feed
Upgrading knex From 1.0.1 to 3.3.0
30 releases in betweennotes for 29
Reading releases, release notes and advisories…
Counted from 29 of 30 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.1
- Knex.js has a limited SQL injection vulnerabilityhigh · GHSA-4jv9-3563-23j3
- 3.2.9
postgres: Escape double quotes in searchPath to prevent SQL injection #6411
Release by release
- 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
- Security
- 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
- Fixed
19 other lines we could not sort, mostly version bumps
- 3.2.3
Prepare to release 3.2.3 hotfix
- 3.2.0
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 frominstead ofimport = require() - 3.2.0
Import knex as type in TS seed template
- 3.2.0
Update index.d.ts
- 3.1.0
Import knex as type in TS migration template
- 3.0.1
Build fix
- 3.0.0
Drop compatibility for Node < 16
- 2.5.0
TableBuilder methods return the SchemaBuilder.
25 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.