Packages

knex

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

Your version

0.16.4

11 Apr 2019Where it was published

0.95.15 is the newest release of 0.16.x.

In short

13 new14 fixed3 changed

Security

2 advisories affect 0.16.4; 2.4.0 fixes them

Release note

0.16.4 - 11 Apr, 2019

New features

  • Boolean param for rollback() to rollback all migrations #2968

  • seed:run print the file name of the failing seed #2972 #2973

  • Verbose option to CLI commands #2887

  • Add intersect() #3023

  • Improved format for TS stubs #3080

  • MySQL: Support nullable timestamps #3100

  • MySQL: Warn .returning() does not have any effect #3039

Bug fixes

  • Respect "loadExtensions" configuration #2969

  • Fix event listener duplication when using Migrator #2982

  • Fix fs-migrations breaking docs #3022

  • Fix sqlite3 drop/renameColumn() breaks with postProcessResponse #3040

  • Fix transaction support for migrations #3084

  • Fix queryContext not being passed to raw queries #3111

  • Typings: Allow to pass query builders, identifiers and raw in various places as parameters #2960

  • Typings: toNative() definition #2996

  • Typings: asCallback() definition #2963

  • Typings: queryContext() type definition Knex.Raw #3002

  • Typings: Add "constraintName" arg to primary() definition #3006

  • Typings: Add missing schemaName in MigratorConfig #3016

  • Typings: Add missing supported parameter types and toSQL method #2960

  • Typings: Update enum arguments to reflect latest signature #3043

  • Typings: Add size parameter to integer method #3074

  • Typings: Add 'string' as accepted Knex constructor type definition #3105

  • Typings: Add boolean as a column name in join #3121

  • Typings: Add missing clearOrder & clearCounters types #3109

  • Dependencies: Fix security warning #3082

  • Do not use unsupported column width/length arguments on data types int and tinyint in MSSQL #2738

Changes

  • Make unionAll()'s call signature match union() #3055

Test / internal changes

  • Swap chalk→colorette / minimist→getopts #2718

  • Always use well documented pg client query() config argument #3004

  • Do not bundle polyfills with knex #3024

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.