2966 Commits

Author SHA1 Message Date
Igor Savin
f52b2c5c51 Merge remote-tracking branch 'origin/master' 2022-08-31 22:23:52 +03:00
Igor Savin
05c47077c1 Prepare to release 2.3.0 2022-08-31 22:23:40 +03:00
Igor Savin
13b61c084c
Update dependencies (#5317) 2022-08-31 22:16:28 +03:00
Hasnae
97fccdff7d
Explicit jsonb support for custom pg clients (#5201)
Co-authored-by: Igor Savin <iselwin@gmail.com>
2022-08-31 22:16:17 +03:00
Lucas Bickel
1cc1df9c35
chore: remove bindingHolder for proper scoping (#5235) 2022-08-31 21:26:29 +03:00
Kelly Bourg
e0c0fa9358
Implement mapBinding mssql dialect option (#5292) 2022-08-31 21:25:25 +03:00
dependabot[bot]
29283a1560
Bump tsd from 0.22.0 to 0.23.0 (#5314)
Bumps [tsd](https://github.com/SamVerschueren/tsd) from 0.22.0 to 0.23.0.
- [Release notes](https://github.com/SamVerschueren/tsd/releases)
- [Commits](https://github.com/SamVerschueren/tsd/compare/v0.22.0...v0.23.0)

---
updated-dependencies:
- dependency-name: tsd
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-31 21:19:25 +03:00
mrichards42
57692d38bc
Infer specific column value type in aggregations (#5297)
The first overload of TypePreservingAggregation (taking columnName and
options) used `Readonly<TKey>` for the columnName type. In this context,
`TKey` is supposed to be a single column name, but `Readonly<TKey>` maps
over the full constraint of `ResolveTableType<TRecord>`.

This results in `TKey` being a union of all keys in the table, rather
than a single key. Because of this, the result type ends up being a
union of all values in the table.

The fix is to remove the `Readonly` type, which is fine since `TKey` is
a string and not an object like in the other overloads.
2022-08-28 21:45:04 +02:00
Patrick Wu
579ab4b885
Fix AnalyticFunction type (#5304)
affecting rowNumber, rank and DenseRank
2022-08-28 21:26:20 +02:00
Mingo Zhuang
4ab040300b
types: fix WhereJsonObject withCompositeTableType (#5306)
Issue: https://github.com/knex/knex/issues/5305
2022-08-28 21:19:35 +02:00
dependabot[bot]
3835e9d1c1
Bump typescript from 4.7.4 to 4.8.2 (#5312)
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.7.4 to 4.8.2.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.7.4...v4.8.2)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-26 14:47:21 +03:00
Simon Plenderleith
2dadde4214
Support returning with sqlite3 and better-sqlite3 (#5285) 2022-08-03 00:04:34 +03:00
Elan Ruusamäe
133478874a
types: fix knex typo (#5267) 2022-07-30 20:40:38 +03:00
Nathan Shively-Sanders
658cde3ba2
Update types for TS 4.8 (#5279) 2022-07-30 20:39:15 +03:00
Igor Savin
72065c1797 Prepare to release 2.2.0 2.2.0 2022-07-19 00:24:38 +03:00
dependabot[bot]
49ea2b5fa9
Bump actions/setup-node from 3.4.0 to 3.4.1 (#5265)
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 3.4.0 to 3.4.1.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v3.4.0...v3.4.1)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-16 21:54:13 +02:00
dependabot[bot]
707aa35bf7
Bump actions/setup-node from 3.2.0 to 3.4.0 (#5261)
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 3.2.0 to 3.4.0.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v3.2.0...v3.4.0)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-14 17:23:26 +02:00
David Garner
f33768ccdd
Fix unclosed stream connections (#5243)
* Destroy should not trigger an error. If there was an error, it is piped by the transform.

* fix: Close the database connection when a stream iterator fails

Co-authored-by: Daniel Cohen Gindi <danielgindi@gmail.com>
2022-07-14 16:14:05 +02:00
dependabot[bot]
aaada36120
Bump tsd from 0.21.0 to 0.22.0 (#5247)
Bumps [tsd](https://github.com/SamVerschueren/tsd) from 0.21.0 to 0.22.0.
- [Release notes](https://github.com/SamVerschueren/tsd/releases)
- [Commits](https://github.com/SamVerschueren/tsd/compare/v0.21.0...v0.22.0)

---
updated-dependencies:
- dependency-name: tsd
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-14 15:28:11 +02:00
dependabot[bot]
27be81ab8c
Bump @types/node from 17.0.45 to 18.0.4 (#5262)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 17.0.45 to 18.0.4.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-14 15:24:59 +02:00
Lucas Bickel
8b0dd49700
feat: inline primary key creation for postgres flavours (#5233) 2022-06-30 16:09:25 +03:00
dependabot[bot]
d371c0424a
Bump colorette from 2.0.18 to 2.0.19 (#5226)
Bumps [colorette](https://github.com/jorgebucaran/colorette) from 2.0.18 to 2.0.19.
- [Release notes](https://github.com/jorgebucaran/colorette/releases)
- [Commits](https://github.com/jorgebucaran/colorette/compare/2.0.18...2.0.19)

---
updated-dependencies:
- dependency-name: colorette
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-20 21:01:14 +02:00
Delgermurun
a0c6947f60
Updating raw query bind parameter type (#5208)
Allowing custom object type in bind parameter for raw query.
2022-06-20 21:00:48 +02:00
dependabot[bot]
fbb774b4dd
Bump typescript from 4.7.3 to 4.7.4 (#5230)
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.7.3 to 4.7.4.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.7.3...v4.7.4)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-20 11:26:02 +02:00
Pedro Ramos
19c007901d
Add warning for undefined connection file (#5223) 2022-06-14 20:27:11 +02:00
dependabot[bot]
49f90f4892
Bump tsd from 0.20.0 to 0.21.0 (#5215)
Bumps [tsd](https://github.com/SamVerschueren/tsd) from 0.20.0 to 0.21.0.
- [Release notes](https://github.com/SamVerschueren/tsd/releases)
- [Commits](https://github.com/SamVerschueren/tsd/compare/v0.20.0...v0.21.0)

---
updated-dependencies:
- dependency-name: tsd
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-14 15:25:09 +02:00
dependabot[bot]
cd092ccf95
Bump colorette from 2.0.17 to 2.0.18 (#5220)
Bumps [colorette](https://github.com/jorgebucaran/colorette) from 2.0.17 to 2.0.18.
- [Release notes](https://github.com/jorgebucaran/colorette/releases)
- [Commits](https://github.com/jorgebucaran/colorette/compare/2.0.17...2.0.18)

---
updated-dependencies:
- dependency-name: colorette
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-14 13:10:20 +02:00
Dominic Vonk
f80ec1cfc5
Added promisable and better types (#5222) 2022-06-14 13:10:01 +02:00
Lucas Bickel
0918bf9bde
fix(postgresql): add primaryKey option for uuid (#5212) 2022-06-08 11:41:43 +03:00
dependabot[bot]
bb07d42aa2
Bump typescript from 4.7.2 to 4.7.3 (#5209)
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.7.2 to 4.7.3.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.7.2...v4.7.3)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-06 18:21:07 +02:00
dependabot[bot]
1dc0966fdd
Bump colorette from 2.0.16 to 2.0.17 (#5210)
Bumps [colorette](https://github.com/jorgebucaran/colorette) from 2.0.16 to 2.0.17.
- [Release notes](https://github.com/jorgebucaran/colorette/releases)
- [Commits](https://github.com/jorgebucaran/colorette/compare/2.0.16...2.0.17)

---
updated-dependencies:
- dependency-name: colorette
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-06 18:20:51 +02:00
Vítor Marques de Almeida
29ba203839
chore: update docs reference in sqlite3 warning (#5207) 2022-06-03 20:37:32 +02:00
dependabot[bot]
84af57a9f6
Bump lint-staged from 12.5.0 to 13.0.0 (#5204)
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 12.5.0 to 13.0.0.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](https://github.com/okonet/lint-staged/compare/v12.5.0...v13.0.0)

---
updated-dependencies:
- dependency-name: lint-staged
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-02 09:16:41 +02:00
ByteOPCode
8a50dd7462
feat: Add JSON parameter support for MSSQL connection (#5200)
Co-authored-by: k144 <k144@debian-BULLSEYE-live-builder-AMD64>
2022-05-29 08:07:07 +02:00
Igor Savin
8bb9e830ff Update TypeScript 2.1.0 2022-05-26 12:02:55 +03:00
Igor Savin
ac4ba2b9ec Add missing hook 2022-05-26 12:00:55 +03:00
Igor Savin
a581116015 Prepare to release 2.1.0 2022-05-26 11:59:29 +03:00
dependabot[bot]
bd59d93fa0
Bump sinon from 13.0.2 to 14.0.0 (#5169)
Bumps [sinon](https://github.com/sinonjs/sinon) from 13.0.2 to 14.0.0.
- [Release notes](https://github.com/sinonjs/sinon/releases)
- [Changelog](https://github.com/sinonjs/sinon/blob/main/docs/changelog.md)
- [Commits](https://github.com/sinonjs/sinon/compare/v13.0.2...v14.0.0)

---
updated-dependencies:
- dependency-name: sinon
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-22 14:58:16 +02:00
Pedro Ramos
e308184988
MSSQL: Fix .hasTable result when using .withSchema (#5176) 2022-05-22 15:56:53 +03:00
Joel Venable
d671288b09
Update type definitions for pg connection (#5139)
Co-authored-by: Igor Savin <iselwin@gmail.com>
2022-05-22 15:55:58 +03:00
Connor Tumbleson
b20047bba5
Fixes Maria issue with 'NULL' returned instead of NULL on MariaDB 10.2.6+ (#5181) 2022-05-22 14:39:45 +02:00
dependabot[bot]
bf4318f0ec
Bump actions/setup-node from 3.1.1 to 3.2.0 (#5183)
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 3.1.1 to 3.2.0.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v3.1.1...v3.2.0)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-22 14:34:53 +02:00
dependabot[bot]
bbaeadf582
Bump mocha from 9.2.2 to 10.0.0 (#5153)
Bumps [mocha](https://github.com/mochajs/mocha) from 9.2.2 to 10.0.0.
- [Release notes](https://github.com/mochajs/mocha/releases)
- [Changelog](https://github.com/mochajs/mocha/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mochajs/mocha/compare/v9.2.2...v10.0.0)

---
updated-dependencies:
- dependency-name: mocha
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-22 15:05:18 +03:00
Johnny Robeson
3a874ec3ab
Use correct paths in package.json browser field (#5174) 2022-05-22 15:04:55 +03:00
Ferris
1baeefedf1
Allow Knex 2.x with Typescript to be installed via git (#5187) 2022-05-20 12:54:36 +03:00
Ferris
211c6a7765
Fix #5184, ensure Typescript developer experience doesn't influence user experience (#5185) 2022-05-17 23:09:07 +03:00
Dominic Vonk
a4df3e3540
Implement extendable builders (#5041)
Co-authored-by: Olivier Cavadenti <olivier.cavadenti@gmail.com>
2022-05-17 13:07:26 +03:00
Ferris
ad62d9072f
Fix #4869, oracledb correctlyINSERTS Buffer (#5167) 2022-05-13 21:31:15 +02:00
Dmitry Kudryavtsev
e2516cd058
Refresh materialized view concurrently for PostgreSQL (#5166) 2022-05-08 20:15:43 +02:00
Ferris
3eec52ea25
Improving Typescript developer experience (#5151) 2022-05-06 11:36:23 +03:00