Packages

knex

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

Your version

0.4.0

13 Sep 2013Where it was published

0.95.15 is the newest release of 0.4.x.

In short

5 breaking

  • Breaking

    Global state is no longer stored in the library, an instance is returned from Knex.initialize, so you will need to call this once and then reference this knex client elsewhere in your application.

  • Breaking

    Lowercasing of knex.raw, knex.transaction, and knex.schema.

  • Breaking

    Created columns are now nullable by default, unless notNullable is chained as an option.

  • Breaking

    Keys created with increments are now assumed to be unsigned (MySQL) by default.

  • Breaking

    The destroyAllNow is no longer called by the library on process.exit event. If you need to call it explicitly yourself, you may use knex.client.destroyPool

Security

2 advisories affect 0.4.0; 2.4.0 fixes them

Release note

Breaking Changes

  • Breaking

    Global state is no longer stored in the library, an instance is returned from Knex.initialize, so you will need to call this once and then reference this knex client elsewhere in your application.

  • Breaking

    Lowercasing of knex.raw, knex.transaction, and knex.schema.

  • Breaking

    Created columns are now nullable by default, unless notNullable is chained as an option.

  • Breaking

    Keys created with increments are now assumed to be unsigned (MySQL) by default.

  • Breaking

    The destroyAllNow is no longer called by the library on process.exit event. If you need to call it explicitly yourself, you may use knex.client.destroyPool

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.