Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update dependency knex to ^0.95.11 #837

Merged
merged 3 commits into from
Oct 25, 2021
Merged

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Sep 4, 2021

WhiteSource Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
knex (source) ^0.19.5 -> ^0.95.11 age adoption passing confidence

Release Notes

knex/knex

v0.95.11

Compare Source

New features:
  • Add support for nullability modification via schema builder (table.setNullable() and table.dropNullable()) #​4657
  • MySQL: Add support for mysql/mariadb-client JSON parameters in connectionURIs #​4629
  • MSSQL: Support comments as MS_Description properties #​4632
Bug fixes:
  • Fix Analytic orderBy and partitionBy to follow the SQL documentation #​4602
  • CLI: fix migrate:up for migrations disabling transactions #​4550
  • SQLite: Fix adding a column with a foreign key constraint in SQLite #​4649
  • MSSQL: columnInfo() support case-sensitive database collations #​4633
  • MSSQL: Generate valid SQL for withRecursive() #​4514
  • Oracle: withRecursive: omit invalid RECURSIVE keyword, include column list #​4514
Improvements:
  • Add .mjs migration and seed stubs #​4631
  • SQLite: Clean up DDL handling and move all operations to the parser-based approach #​4648

v0.95.10

Compare Source

Improvements:
  • Use sys info function instead of connection db name #​4623
Typings:
  • Deferrable and withkeyName should not be in ColumnBuilder #​4600

v0.95.9

Compare Source

New features:
  • Oracle: support specifying schema for dropTable and dropSequence #​4596
  • Oracle: support specifying schema for autoincrement #​4594
Typings:
  • Add TypeScript support for deferrable, new Primary/Unique syntax #​4589

v0.95.8

Compare Source

New features:
  • Add deferrable support for constraint #​4584
  • Implement delete with join #​4568
  • Add DPI error codes for Oracle #​4536
Bug fixes:
  • Fixing PostgreSQL datetime and timestamp column created with wrong format #​4578
Typings:
  • Improve analytic types #​4576
  • MSSQL: Add trustServerCertificate option #​4500

v0.95.7

Compare Source

New features:
  • Add ability to omit columns on an onConflict().ignore() #​4557
  • CLI: Log error message #​4534
Typings:
  • Export Knex.TransactionConfig #​4498
  • Include options object in count(Distinct) typings #​4491
  • Add types for analytic functions #​4544

v0.95.6

Compare Source

Typings:
  • Export TransactionProvider type #​4489

v0.95.5

Compare Source

New features:
  • SQLite: Add support for file open flags #​4446
  • Add .cjs extension to Seeder.js to support Node ESM #​4381 #​4382
Bug fixes:
  • Remove peerDependencies to avoid auto-install on npm 7 #​4480
Typings:
  • Fix typing for increments and bigIncrements #​4406
  • Add typings for on JoinClause for onVal #​4436
  • Adding Type Definition for isTransaction #​4418
  • Export client class from knex namespace #​4479

v0.95.4

Compare Source

Typings:

v0.95.3

Compare Source

New features:
  • PostgreSQL: Add "same" as operator #​4372
  • MSSQL: Improve an estimate of the max comment length #​4362
  • Throw an error if negative offset is provided #​4361
Bug fixes:
  • Fix timeout method #​4324
  • SQLite: prevent dropForeign from being silently ignored #​4376
Typings:
  • Allow config.client to be non-client instance #​4367
  • Add dropForeign arg type for single column #​4363
  • Update typings for TypePreservingAggregation and stream #​4377

v0.95.2

Compare Source

New features:
Bug fixes:
  • CLI: update ts.stub files to new TypeScript namespace #​4344
  • CLI: fix TypeScript migration stub after 0.95.0 changes #​4366
Typings:
  • Move QueryBuilder and KnexTimeoutError into knex namespace #​4358
Test / internal changes:

v0.95.1

Compare Source

New features:
  • Add support for nullability modification via schema builder (table.setNullable() and table.dropNullable()) #​4657
  • MySQL: Add support for mysql/mariadb-client JSON parameters in connectionURIs #​4629
  • MSSQL: Support comments as MS_Description properties #​4632
Bug fixes:
  • Fix Analytic orderBy and partitionBy to follow the SQL documentation #​4602
  • CLI: fix migrate:up for migrations disabling transactions #​4550
  • SQLite: Fix adding a column with a foreign key constraint in SQLite #​4649
  • MSSQL: columnInfo() support case-sensitive database collations #​4633
  • MSSQL: Generate valid SQL for withRecursive() #​4514
  • Oracle: withRecursive: omit invalid RECURSIVE keyword, include column list #​4514
Improvements:
  • Add .mjs migration and seed stubs #​4631
  • SQLite: Clean up DDL handling and move all operations to the parser-based approach #​4648

v0.95.0

Compare Source

Note: there are many breaking changes in this version, particularly in TypeScript support. Please see UPGRADING.md for details.

New features:
  • Add transaction isolation support #​4185
  • Add analytic functions #​4188
  • Change default to not trigger a promise rejection for transactions with a specified handler #​4195
  • Make toSQL().toNative() work for Raw to match the API for QueryBuilder #​4058
  • Allow 'match' operator #​3569
  • Support optimizer hints #​4243
  • Add parameter to prevent autoincrement columns from being primary keys #​4266
  • Make "first" and "pluck" mutually exclusive #​4280
  • Added merge strategy to allow selecting columns to upsert. #​4252
  • Throw error if the array passed to insert is empty #​4289
  • Events: introduce queryContext on query-error #​4301
  • CLI: Use UTC timestamp for new migrations #​4245
  • MSSQL: Replace MSSQL dialect with Tedious.js implementation #​2857 #​4281
  • MSSQL: Use "nvarchar(max)" for ".json()" #​4278
  • MSSQL: Schema builder - add predictable constraint names for default values #​4319
  • MSSQL: Schema builder - attempt to drop default constraints when changing default value on columns #​4321
  • SQLite: Fallback to json for sqlite3 when using jsonb #​4186
  • SQLite: Return complete list of DDL commands for creating foreign keys #​4194
  • SQLite: Support dropping composite foreign keys #​4202
  • SQLite: Recreate indices when altering a table #​4277
  • SQLite: Add support for altering columns #​4322
Bug fixes:
  • Fix issue with .withSchema usage with joins on a subquery #​4267
  • Fix issue with schema usage with FROM clause contain QueryBuilder, function or Raw #​4268
  • CLI: Address raised security warnings by dropping liftoff #​4122
  • CLI: Fix an issue with npm@7 and ESM when type was set to 'module' in package.json #​4295
  • PostgreSQL: Add check to only create native enum once #​3658
  • SQLite: Fix foreign key "on delete" when altering a table #​4225
  • SQLite: Made the constraint detection case-insensitive #​4330
  • MySQL: Keep auto increment after rename #​4266
  • MSSQL: don't raise query-error twice #​4314
  • MSSQL: Alter column must have its own query #​4317
Typings:
  • TypeScript 4.1+ is now required
  • Add missing onConflict overrides #​4182
  • Introduce the "infamous triplet" export #​4181
  • Fix type definition of Transaction #​4172
  • Add typedefinitions for havingNotIn #​4265
  • Include 'name' property in MigratorConfig #​4300
  • Improve join and conflict types #​4318
  • Fix ArrayIfAlready type #​4331
Test / internal changes:

v0.21.21

Compare Source

v0.21.20

Compare Source

v0.21.19

Compare Source

  • SQLite: Made the constraint detection case-insensitive #​4332

v0.21.18

Compare Source

  • CLI: Fix an issue with npm@7 and ESM when type was set to 'module' in package.json #​4295

v0.21.17

Compare Source

Bug fixes:
  • SQLite: Fix SQLite foreign on delete when altering a table #​4261
New features:

v0.21.16

Compare Source

Bug fixes:
  • MSSQL: Avoid passing unsupported pool param. Fixes node-mssql 7+ support #​4236

v0.21.15

Compare Source

New features:
  • SQLite: Add primary/foreign support on alterTable #​4162
  • SQLite: Add dropPrimary/dropForeign support on alterTable #​4162
Typings:
Test / internal changes:
  • Extract knex config resolution logic #​4166
  • Run CI using GitHub Actions #​4168
  • Add Node.js 15 to CI matrix #​4173

v0.21.14

Compare Source

New features:
  • MSSQL: support "returning" on inserts, updates and deletes on tables with triggers #​4152
  • Use esm import if package.json type is "module" #​4158
Bug fixes:
  • Make sure query-response and query-error events contain _knexTxId #​4160
Test / internal changes:
  • Improved integration test framework #​4161

v0.21.13

Compare Source

New features:
  • SQLite: Add support for dropForeign #​4092
  • Add support for WHERE clauses to "upsert" queries #​4148
Bug fixes:
  • MSSQL: Avoid connection getting stuck on socket hangup #​4157
  • Oracle: Support specifying non-default DB port #​4147
  • Oracle: Support inserts with only default values (empty body) #​4092
  • CLI: fix irregular seed file execution order #​4156
  • Fix performance of asyncStackTraces with enable-source-maps node flag #​4154
Typings:
  • PostgreSQL: Add support for application_name #​4153
  • Fix types for insert to allow array #​4105
  • Add types for userParams and withUserParams #​4119
  • Added type for withKeyName #​4139
  • Fix batchInsert definitions #​4131
  • Fix types for WhereIn signature (value or query builder) #​3863
  • Add types for connection config of mysql2 driver #​4144
Test / internal changes:

v0.21.12

Compare Source

Typings:
  • Reintroduce support for globally defining table/record mapping #​4100
  • Add a few missing types for MSSQL Connection #​4103
  • Make .ignore() and .merge() return QueryBuilder rather than QueryInterface #​4102
  • Use tarn config TS types instead of generic-pool #​4064

v0.21.11

Compare Source

Typings:
  • Revert support for globally defining table/record mapping #​4099

v0.21.10

Compare Source

New features:
  • Upsert support (Postgres/MySQL/Sqlite) #​3763
Bug fixes:
  • Switch to non-uuid knexQueryUids to avoid issues when mocking global date #​4089
Typings:
  • Allow to globally define table/record mapping #​4071

v0.21.9

Compare Source

New features:
  • add method clear(statement) to QueryBuilder #​4051
Bug fixes:
  • CLI: fix help text being printed twice #​4072
  • Oracle: columnInfo() no longer requires an Owner User #​4053
  • Add missing "start" event propagation from transaction #​4087

v0.21.8

Compare Source

Bug fixes:
  • MSSQL: Escape properly if literal '?' is needed #​4053
  • Make toQuery behavior consistent with pre-0.21.7 (do not break on empty builder) #​4083
  • Fix comment escaping for MySQL and PostgreSQL #​4084

v0.21.7

Compare Source

New features:
  • CLI: Add migration stub for .cjs extension #​4065
Bug fixes:
  • MSSQL: Add dynamic scaling for decimal values and prevents a UInt64 overflow #​3910
  • MSSQL: Fix apostrophe escaping #​4077
  • Ensure that semicolon is not appended to statements that already end with a semicolon #​4052
Typings:
  • Add arguments to QueryCallback in Where #​4034
Test / internal changes:
  • Replace lodash type-checks with native solutions #​4056
  • Replace mkdirp with native recursive flag #​4060
  • Replace inherits package with builtin utility #​4059

v0.21.6

Compare Source

New features:
  • CLI: New config parameter / CLI flag to prefixing seed filename with timestamp #​3873
  • CLI: throw an error when specific seed file cannot be found #​4011
  • Warn if whereNot is used with 'in' or 'between' #​4038
Bug fixes:
  • CLI: Fix double merging of config for migrator #​4040
Typings:
  • Unify SeedsConfig and SeederConfig #​4003
  • Allow string[] type for directory in SeedsConfig #​4033

v0.21.5

Compare Source

New features:
Test / internal changes:
  • Bump version of dtslint #​3984
  • Test/document esm interop mixed formats (knexfile/migrations/seeds) #​3986

v0.21.4

Compare Source

New features:
  • CLI: Add new option for seed: recursive #​3974
Bug fixes:
  • CLI: Do not load seeds from subfolders recursively by default #​3974

v0.21.3

Compare Source

New features:
  • CLI: Support multiple directories for seeds #​3967
Bug fixes:
  • Ensure DB stream is destroyed when the PassThrough is destroyed #​2324
  • Support postProcessResponse for streams #​3931
  • Fix ESM module interop for calling module/package of type 'module' #​3938
  • CLI: Fix migration source name in rollback all #​3956
  • Fix getMergedConfig calls to include client logger #​3920
  • Escape single quoted values passed to defaultTo function #​3899
Typings:
  • Add .timeout(ms) to .raw()'s typescript typings #​3885
  • Add typing for double table column builder #​3950
  • Add a phantom tag to Ref type to mark received type parameters as used #​3934
  • Add null as valid binding type #​3946
Test / internal changes:
  • Change query lab link to https #​3933

v0.21.2

Compare Source

New features:
  • Warn user if custom migration source is being reset #​3839
  • Prefer void as return type on migration generator ts stub #​3865
  • MSSQL: Added the removal of a columns default constraint, before dropping the column #​3855
Typings:
  • Fix definition for raw querybuilders #​3846
Test / internal changes:
  • Refactor migration logic to use async/await #​3838

v0.21.1

Compare Source

  • SQLite: Made the constraint detection case-insensitive #​4332

v0.21.0

Compare Source

Improvements
  • Reduce size of lodash in bundle #​3804
Breaking changes
  • Dropped support for Node 8
  • Breaking upstream change in pg-query-stream: Changed stream.close to stream.destroy which is the official way to terminate a readable stream. This is a breaking change if you rely on the stream.close method on pg-query-stream...though should be just a find/replace type operation to upgrade as the semantics remain very similar (not exactly the same, since internals are rewritten, but more in line with how streams are "supposed" to behave).
Test / internal changes:
  • Updated Tarn.js to a version 3.0.0
  • Updated mkdirp to a version 1.0.4
  • Updated examples to use ES2015 style #​3810

v0.20.15

Compare Source

Bug fixes:
  • Support for .finally(..) on knex's Promise-alikes #​3800
Typings:

v0.20.14

Compare Source

New features:
  • CLI: adds support for asynchronous knexfile loading #​3748
  • Add clearGroup method #​3771
Typings:
  • Support Raw types for insert, where, update #​3730
  • Add typings for MigrationSource #​3756
  • Update signature of orderBy to support QueryBuilder inside array #​3757
  • Add toSQL and toString to SchemaBuilder #​3758
  • interface Knex and function Knex should have the same types #​3787
  • Fix minor issues around typings #​3765
Test / internal changes:
  • Minor test internal enhancements #​3747
  • Minor improvements on the usage of fs utilities #​3749
  • Split tests in groups #​3785

v0.20.13

Compare Source

Bug fixes:
  • Correctly handle dateToString escaping without timezone passed #​3742
  • Make protocol length check more defensive #​3744
Typings:
  • Make the ChainableInterface conform to Promise #​3724

v0.20.12

Compare Source

Bug fixes:
  • Added missing call to _reject in Transactor#transaction #​3706
  • Fix method binding on knex proxy #​3717
  • Oracle: Transaction_OracleDB can use config.connection #​3731
Typings:
  • Fix incorrect type signature of Having #​3719
Test / internal changes:
  • Cleanup/remove transaction stalling #​3716
  • Rewrote Transaction#acquireConnection() methods to use async #​3707

v0.20.11

Compare Source

Breaking changes:
  • Knex returns native JS promises instead of Bluebird ones. This means that you no longer use such methods as map, spread and reduce on QueryBuilder instance.
New features:
  • Oracle: Add OracleDB handling for buffer type in fetchAsString #​3685
Bug fixes:
  • Fix race condition in non-container transactions #​3671
Typings:
  • Mark knex arguments of composite/collection types to be readonly #​3680
Test / internal changes:
  • Remove dependency on Bluebird methods from sources #​3683
  • Cleanup and extract Transaction Workflow logic #​3674

v0.20.10

Compare Source

Bug fixes:
  • Oracle: commit was a no-op causing race conditions #​3668
  • CLI: Knex calls process.chdir() before opening Knexfile #​3661
  • Fixed unresolved promise in cancelQuery() #​3666
Typings:
  • fn.now takes optionally a precision argument. #​3662
  • PG: Include SSL in connection definition #​3659
Test / internal changes:

v0.20.9

Compare Source

Bug fixes:
  • CLI: Improve Support for Liftoff's Preloaders - this should fix some cases like using TS for your migrations #​3613
Typings:
  • MSSQL: Add enableArithAbort to MsSqlConnectionConfig
Test / internal changes:
  • Refactor more tests to use cli-testlab #​3640
  • Update QueryCompiler implementation to use classes #​3647

v0.20.8

Compare Source

New features:
  • CLI: Support ES6 modules via flag --esm #​3616
Bug fixes:
  • CLI: Print help only when there are no arguments #​3617
Typings:
  • Fix incorrect type of QueryBuilder.first('*') result #​3621

v0.20.7

Compare Source

New features:
  • Throw better error when trying to modify schema while using unsupported dialect #​3609
Bug fixes:
  • Oracle: dispose connection on connection error #​3611
  • Oracle: fix not releasing connection from pool on disconnect #​3605
  • CLI: prevent warning with root command #​3604
Typings:
  • Add create/drop schema methods to SchemaBuilder #​3579

v0.20.6

Compare Source

Bug fixes:
  • Enforce Unix (lf) line terminators #​3598

v0.20.4

Compare Source

Bug fixes:
  • Fix debug logger messing up queries with % #​3566
  • Make logger methods mutually consistent #​3567
Typings:
Test / internal changes:

v0.20.3

Compare Source

New features:
  • MSSQL, MySQL: Add connection string qs to connection params #​3547
Bug fixes:
  • Oracle: Fix issue retrieving BLOB from database #​3545
  • PostgreSQL: Timeout for postgresql use cancel instead of terminate #​3518
  • Make sure CLI works for namespaced knex packages #​2539
Typings:
  • Lift up dialect specific methods in the CreateTableBuilder #​3532
  • Add client property to QueryBuilder type #​3541
  • Support 'only' option #​3551

v0.20.2

Compare Source

New features:
  • Add support for distinct on for postgres #​3513
Bug fixes:
  • Make sqlite3 hasColumn case insensitive #​3435
Typings:
  • Fix PoolConfig typing #​3505
  • Expand SeedsConfig types #​3531
  • Make the default type parameters of QueryBuilder less strict #​3520
  • Fix regression in older version of node when Promise#finally was not available #​3507

v0.20.1

Compare Source

Bug fixes:
  • Support for .finally(..) on knex's Promise-alikes #​3800
Typings:

v0.20.0

Compare Source

New features:
  • orderBy accepts QueryBuilder #​3491
  • Add validation in .offset() #​2908
  • disable_migrations_list_validation feature #​3448
Bug fixes:
  • Fix oracledb driver v4 support #​3480
  • Fix some issues around seed and migration generation #​3479
  • Fix bugs in replacement logic used when dropping columns in SQLite #​3476
Typings:
  • Add types to the Migrator interface #​3459
  • Fix typings of index and dropIndex TableBuilder methods #​3486
  • Fixes types for Seeder#run #​3438
Test / internal changes:
  • Execute CI on Node.js 13
  • Bluebird: remove usage of return, reflect, fromCallback methods #​3483
  • Bluebird: remove Bluebird.bind #​3477
  • Bluebird: use util.promisify instead of Bluebird.promisify #​3470
  • Bluebird: remove Bluebird.each #​3471
  • Bluebird: remove Bluebird.map and Bluebird.mapSeries #​3474
  • Bluebird: replace Bluebird.map with Promise.all #​3469
  • Update badges #​3482

Configuration

📅 Schedule: At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Renovate will not automatically rebase this PR, because other commits have been found.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, click this checkbox.

This PR has been generated by WhiteSource Renovate. View repository job log here.

@renovate renovate bot force-pushed the renovate/knex branch 2 times, most recently from c042aab to 2af68a6 Compare September 25, 2021 16:11
@renovate renovate bot force-pushed the renovate/knex branch 2 times, most recently from ae53a24 to 10ba466 Compare October 11, 2021 04:30
@renovate renovate bot force-pushed the renovate/knex branch 5 times, most recently from bff5181 to c9bf98a Compare October 25, 2021 14:45
@Methuselah96 Methuselah96 enabled auto-merge (squash) October 25, 2021 17:44
@Methuselah96 Methuselah96 merged commit 0400e0c into main Oct 25, 2021
@Methuselah96 Methuselah96 deleted the renovate/knex branch October 25, 2021 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants