knex
3.3.0 · 26 Jun 2026MIT7.3M / weekRepositoryHomepagenpmAtom feed
0.95.15 is the newest release of 0.8.x.
In short
2 breaking11 new1 fixed1 changed
- Breaking
Transactions are immediately invoked as A+ promises, #470 (this is a feature and should not actually break anything in practice)
- Breaking
Heavy refactoring internal APIs (public APIs should not be affected)
Security
2 advisories affect 0.8.0; 2.4.0 fixes them
- CriticalSQL Injection in knexGHSA-58v4-qwx5-7f59 · 21 Oct 2019Fixed in 0.19.5
- HighKnex.js has a limited SQL injection vulnerabilityGHSA-4jv9-3563-23j3 · 19 Dec 2022Fixed in 2.4.0
Release note
New Features
Fixes several major outstanding bugs with the connection pool, switching to Pool2 in place of generic-pool-redux
strong-oracle module support
Nested transactions automatically become savepoints, with
commit&rollbackreleasing or rolling back the current savepoint.Database seed file support, #391
Improved support for sub-raw queries within raw statements
Migrations are now wrapped in transactions where possible
Subqueries supported in insert statements, #627
Support for nested having, #572
Support object syntax for joins, similar to "where" #743
Major Changes
- Breaking
Transactions are immediately invoked as A+ promises, #470 (this is a feature and should not actually break anything in practice)
- Breaking
Heavy refactoring internal APIs (public APIs should not be affected)
"Other Changes
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.