3082 Commits

Author SHA1 Message Date
Igor Savin
3475d81668 Prepare to release 2.4.0 2.4.0 2023-01-06 17:42:59 +02:00
dependabot[bot]
e97f92201a
Bump tsd from 0.24.1 to 0.25.0 (#5396)
Bumps [tsd](https://github.com/SamVerschueren/tsd) from 0.24.1 to 0.25.0.
- [Release notes](https://github.com/SamVerschueren/tsd/releases)
- [Commits](https://github.com/SamVerschueren/tsd/compare/v0.24.1...v0.25.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>
2023-01-05 23:30:12 +01:00
Anton Savchenko
e145322da9
1227: add assertion for basic where clause values (#5417) 2023-01-05 23:27:49 +01:00
dependabot[bot]
962bb0a635
Bump sinon from 14.0.2 to 15.0.1 (#5413)
Bumps [sinon](https://github.com/sinonjs/sinon) from 14.0.2 to 15.0.1.
- [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/v14.0.2...v15.0.1)

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

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-12-19 21:12:36 +01:00
Richard
ab45314e70
Add JSDoc (TS Flavour) to mjs stub file (#5390) 2022-11-23 09:14:14 +01:00
Suhyeong Cho
72bd1f7396
Fix: orWhereJson (#5361) 2022-11-18 23:23:52 +01:00
Matt
4fc939a176
Fixes unexpected max acquire-timeout (#5377)
Important for applications where high pool contention is expected, and completion is favored over latency.

Co-authored-by: Matt <matt.goodson.business@gmail.com>
2022-11-17 09:53:16 +01:00
Kyler Nelson
5c4837cd4f
Fix lib/.gitignore path separator on Windows. (#5325) 2022-11-14 14:19:07 +01:00
dependabot[bot]
7dbbd00701
Bump actions/setup-node from 3.4.1 to 3.5.1 (#5356)
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 3.4.1 to 3.5.1.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v3.4.1...v3.5.1)

---
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>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-14 14:15:07 +01:00
Sam Adams
d39051f4a5
fix: add missing type for 'expirationChecker' on PgConnectionConfig (#5334)
Co-authored-by: Igor Savin <iselwin@gmail.com>
2022-09-28 00:25:12 +03:00
Jakob Joonas
f7ccde80c9
Make compiling SQL in error message optional (#5282) 2022-09-23 09:39:15 +02:00
dependabot[bot]
82610ca4e7
Bump tsd from 0.23.0 to 0.24.1 (#5329)
Bumps [tsd](https://github.com/SamVerschueren/tsd) from 0.23.0 to 0.24.1.
- [Release notes](https://github.com/SamVerschueren/tsd/releases)
- [Commits](https://github.com/SamVerschueren/tsd/compare/v0.23.0...v0.24.1)

---
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-09-23 09:25:27 +02:00
dependabot[bot]
cb5be880c1
Bump typescript from 4.8.2 to 4.8.3 (#5324)
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.8.2 to 4.8.3.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.8.2...v4.8.3)

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

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-09-13 11:45:14 +02:00
Mingo Zhuang
dc6dbbf900
fix: insert array into json column (#5321)
* fix: insert array into json column

* fix: determine array
2022-09-02 12:10:18 +02:00
abal
864530cd67
feat: support partial unique indexes (#5316) 2022-09-02 00:18:05 +03:00
Nicola Krumschmidt
6bed5e99dd
Fix changing the default value of a boolean column in SQLite (#5319) 2.3.0 2022-09-01 17:31:52 +03:00
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