knex
3.3.0 · 26 Jun 2026MIT7.3M / weekRepositoryHomepagenpmAtom feed
Upgrading knex From 0.5.16 to 0.6.0
1 release in betweenevery note read
Reading releases, release notes and advisories…
- 1
- change to make
- 0
- advisories fixed
- 2
- new
- 0
- fixes
Before you upgrade
Tick each one off as you go- Deprecated0.6.0
Security
2 advisories still affect 0.6.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
12 other lines we could not sort, mostly version bumps
- 0.6.0
Major internal overhaul to clean up the various dialect code.
- 0.6.0
More consistent use of raw query bindings throughout the library.
- 0.6.0
Queries are more composable, may be injected in various points throughout the builder.
- 0.6.0
The wrapValue function to allow for array column operations in PostgreSQL (#287).
- 0.6.0
An explicit connection can be passed for any query (#56).
- 0.6.0
Drop column support for sqlite3
- 0.6.0
All schema actions are run sequentially on the same connection if chained.
- 0.6.0
Schema actions can now be wrapped in a transaction
- 0.6.0
.references(tableName.columnName)as shorthand for.references(columnName).inTable(tableName) - 0.6.0
.join('table.column', 'otherTable.column')as shorthand for .join('table.column', '=', 'otherTable.column')
1 internal line (docs, tests, tooling) left out.
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.