Packages

knex

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

Your version

0.95.12

27 Oct 2021Where it was published

0.95.15 is the newest release of 0.95.x.

In short

13 new3 fixed2 changed

Security

1 advisory affects 0.95.12; 2.4.0 fixes them

Release note

0.95.12 - 28 October, 2021

New features

  • New dialect: CockroachDB #4742

  • New dialect: pg-native #4327

  • CockroachDB: Add support for upsert #4767

  • PostgreSQL: Support SELECT .. FOR NO KEY UPDATE / KEY SHARE row level locking clauses #4755

  • PostgreSQL: Add support for 'CASCADE' in PostgreSQL 'DROP SCHEMA' queries #4713

  • MySQL: Add storage engine index Type support to index() and unique() schema #4756

  • MSSQL: Support table.primary, table.unique variant with options object #4710

  • SQLite: Add setNullable support to SQLite #4684

  • Add geometry column building #4776

  • Add support for creating table copies #1373

  • Implement support for views and materialized views #1626

  • Implement partial index support #4768

  • Support for 'is null' in 'order by' #3667

Bug fixes

  • Fix support for Oracle connections passed via knex.connection() #4757

  • Avoid inserting multiple locks if a migration lock already exists #4694

Typings

  • Some TableBuilder methods return wrong types #4764

  • Update JoinRaw bindings type to accept arrays #4752

  • Fix onDelete/onUpdate for ColumnBuilder #4656

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.