Packages

knex

3.3.0 · 26 Jun 2026MIT7.3M / weekRepositoryHomepagenpmAtom feed

Your version

0.8.0

30 Apr 2015Where it was published

0.95.15 is the newest release of 0.8.x.

In short

2 breaking11 new1 fixed1 changed

  • 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)

Security

2 advisories affect 0.8.0; 2.4.0 fixes them

Release note

New Features

  • Fixes several major outstanding bugs with the connection pool, switching to Pool2 in place of generic-pool-redux

  • strong-oracle module support

  • Nested transactions automatically become savepoints, with commit & rollback releasing or rolling back the current savepoint.

  • Database seed file support, #391

  • Improved support for sub-raw queries within raw statements

  • Migrations are now wrapped in transactions where possible

  • Subqueries supported in insert statements, #627

  • Support for nested having, #572

  • Support object syntax for joins, similar to "where" #743

Major Changes

  • 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)

"Other Changes

  • Allow mysql2 to use non-default port, #588

  • Support creating & dropping extensions in PostgreSQL, #540

  • CLI support for knexfiles that do not provide environment keys, #527

  • Added sqlite3 dialect version of whereRaw/andWhereRaw

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.