knex
3.3.0 · 26 Jun 2026MIT7.3M / weekRepositoryHomepagenpmAtom feed
0.95.15 is the newest release of 0.11.x.
In short
1 breaking5 new7 fixed9 changed
- Breaking
QueryBuilder#orWherejoins multiple arguments withAND. #1164
Security
2 advisories affect 0.11.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
0.11.0 - 5 May, 2016
Breaking Changes
- Breaking
QueryBuilder#orWherejoins multiple arguments withAND. #1164
Other Changes
Collate for columns. (MySQL) #1147
Exit with error code when appropriate. #1238
MSSQL connection accepts
hostas an alias forserverin accordance with other dialects. #1239Add
query-responseevent. #1231Correct behaviour of sibling nested transactions. #1226
Support
RETURNINGwithUPDATE. (Oracle) #1253Throwing callbacks from transactions automatically rolls them back. #1257
Fixes to named
Rawbindings. #1251timestampsaccepts an argument to setNOT NULLand default to current timestamp.Add
TableBuilder#inheritsfor PostgreSQL. #601Wrap index names. #1289
Restore coffeescript knexfiles and configurations. #1292
Add
andWhereBetweenandandWhereNotBetween#1132Fix
valueForUndefinedfailure. #1269renameColumnno longer drops default value or nullability. #1326Correct MySQL2 error handling. #1315
Fix MSSQL
createTableIfNotExists. #1362Fix MSSQL URL parsing. #1342
Update Lodash to 4.6.0 #1242
Update Bluebird to 3.3.4 #1279
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.