knex
3.3.0 · 26 Jun 2026MIT7.3M / weekRepositoryHomepagenpmAtom feed
Upgrading knex From 0.7.6 to 0.8.0
1 release in betweenevery note read
- 2
- changes to make
- 0
- advisories fixed
- 11
- new
- 1
- fix
Before you upgrade
Tick each one off as you go- Breaking0.8.0
- Breaking0.8.0
Security
2 advisories still affect 0.8.0
- Knex.js has a limited SQL injection vulnerabilityhigh · GHSA-4jv9-3563-23j3
- SQL Injection in knexcritical · GHSA-58v4-qwx5-7f59
Upgrading to 2.4.0 clears them.
Release by release
- 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)
- New
strong-oracle module support
- New
Nested transactions automatically become savepoints, with
commit&rollbackreleasing or rolling back the current savepoint.
- Breaking
1 other line we could not sort, mostly version bumps
- 0.8.0
CLI support for knexfiles that do not provide environment keys, #527
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.