knex
3.3.0 · 26 Jun 2026MIT7.3M / weekRepositoryHomepagenpmAtom feed
0.95.15 is the newest release of 0.10.x.
In short
1 breaking11 new2 fixed3 changed
- Breaking
Security
2 advisories affect 0.10.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.10.0 - 15 Feb, 2016
Breaking Changes
- Breaking
insertandupdatenow ignoreundefinedvalues. Back compatibility is provided through the optionuseNullAsDefault. #1174, #1043
Other Changes
Add
countDistinct,avgDistinctandsumDistinct. #1046Add
schema.jsonb. Deprecatedschema.json(column, true). #991Support binding identifiers with
??. #1103Restore
queryevent when triggered by transactions. #855Correct question mark escaping in rendered queries. #519, #1058
Add per-dialect escaping, allowing quotes to be escaped correctly. #886, #1095
Add MSSQL support. #1090
Add migration locking. #1094
Allow column aliases to contain
.. #1181Add
batchInsert. #1182Support non-array arguments to
knex.raw.Global
query-errorevent. #1163Add
batchInsert. #1182Better support for Mysql2 dialect options. #980
Support for
acquireConnectionTimeoutdefault 60 seconds preventing #1040 from happening. #1177Fixed constraint name escaping when dropping a constraint. #1177
Show also
.rawqueries in debug output. #1169Support for
clito use basic configuration without specific environment set. #1101
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.