knex
3.3.0 · 26 Jun 2026MIT7.3M / weekRepositoryHomepagenpmAtom feed
0.95.15 is the newest release of 0.7.x.
In short
1 breaking5 new10 changed
- Breaking
"collate nocase" no longer used by default in sqlite3 #396
Security
2 advisories affect 0.7.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
Oracle support, #419
Database seed file support, #391
Improved support for sub-raw queries within raw statements
Breaking Changes
- Breaking
"collate nocase" no longer used by default in sqlite3 #396
Other Changes
Bumping Bluebird to ^2.x
Transactions in websql are now a no-op (unsupported) #375
Improved test suite
Knex.fn namespace as function helper (knex.fn.now), #372
Better handling of disconnect errors
Support for offset without limit, #446
Chainable first method for mysql schema, #406
Support for empty array in
whereInCreate/drop schema for postgres, #511
Inserting multiple rows with default values, #468
Join columns are optional for cross-join, #508
Flag for creating jsonb columns in Postgresql, #500
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.