Olivier Cavadenti
df7568bd92
Update CHANGELOG
2023-07-12 22:49:14 +02:00
Ricardo Costa
a37f4f1fb8
Improve linting ( #5460 )
...
Co-authored-by: Olivier Cavadenti <olivier.cavadenti@gmail.com>
2023-07-12 22:42:57 +02:00
Olivier Cavadenti
ce6b591d33
Prepare to release 2.5.0
2.5.0
2023-07-08 22:08:37 +02:00
Olivier Cavadenti
9f86836bda
Update CHANGELOG
2023-07-08 22:08:04 +02:00
André Ricardo
440fe50a1e
Add uuid helper function ( #5617 )
2023-07-08 14:54:15 +02:00
Olivier Cavadenti
5e747f1904
Remove LGTM (closed)
2023-07-07 13:33:00 +02:00
dependabot[bot]
d3c68b2fe6
Bump @types/node from 18.16.19 to 20.4.0 ( #5620 )
...
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node ) from 18.16.19 to 20.4.0.
- [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>
2023-07-07 10:13:22 +02:00
Warren Seymour
61ee5338b3
feat(pg): implement QueryBuilder#updateFrom ( #5386 )
2023-07-06 13:31:28 +02:00
dependabot[bot]
34f85ba4a3
Bump actions/setup-node from 3.6.0 to 3.7.0 ( #5621 )
...
Bumps [actions/setup-node](https://github.com/actions/setup-node ) from 3.6.0 to 3.7.0.
- [Release notes](https://github.com/actions/setup-node/releases )
- [Commits](https://github.com/actions/setup-node/compare/v3.6.0...v3.7.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>
2023-07-06 13:12:15 +02:00
Dmitry Maganov
8e2944d829
Add knex.mjs to files in package.json ( #5518 )
2023-07-05 16:17:58 +02:00
Luke Stevens
d96bc191e3
fix: handle numeric array elements in .orderBy() ( #5551 )
2023-07-04 22:23:01 +02:00
Luke Stevens
e7dc724fcf
fix: attach error handler early enough ( #5552 )
2023-07-04 21:53:19 +02:00
Linda Xu
2a6c20f27c
fix #3837 so that update with returning * actually returns an object isntead of the number of rows. Also fixes returning * when within a transaction ( #5598 )
...
Co-authored-by: Linda Xu <linda_xu2@apple.com>
2023-07-04 21:34:35 +02:00
Bruno Moreira
89cebb0e04
Fix typing for toSql ( #5593 ) ( #5594 )
2023-07-04 20:14:37 +02:00
Liran Tal
0b1a2a01cc
fix: add mjs extension type ( #5616 )
2023-07-04 13:00:09 +02:00
Andy Wooldridge
2da5822fe4
fix: creating a unique index in postgres using the index method ( #5601 )
2023-07-04 12:59:17 +02:00
Jesper Engberg
c8da0dfc13
fix: add ResolveTableType for .merge() ( #5605 )
2023-07-04 12:43:06 +02:00
dependabot[bot]
9e5fdfae89
Bump pg-connection-string from 2.5.0 to 2.6.1 ( #5610 )
...
Bumps [pg-connection-string](https://github.com/brianc/node-postgres/tree/HEAD/packages/pg-connection-string ) from 2.5.0 to 2.6.1.
- [Changelog](https://github.com/brianc/node-postgres/blob/master/CHANGELOG.md )
- [Commits](https://github.com/brianc/node-postgres/commits/pg-connection-string@2.6.1/packages/pg-connection-string )
---
updated-dependencies:
- dependency-name: pg-connection-string
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>
2023-07-04 10:14:27 +02:00
Andrés Correa Casablanca
f6ea8122b6
fix(security): avoid password leaks on query logs ( #5559 )
...
Signed-off-by: Andres Correa Casablanca <castarco@coderspirit.xyz>
2023-07-03 21:03:27 +02:00
florian-lackner365
d9f333313b
add collate to the columnbuilder interface ( #5568 )
2023-06-28 23:46:31 +02:00
Erin Dees
2ed6988d80
Ensure test DB exists at correct path in better-sqlite3 tests ( #5608 )
2023-06-27 10:26:30 +02:00
Erin Dees
dab051b6da
Add readonly option to Better-SQLite3 ( #5530 )
...
Co-authored-by: Adam Haglund <ahaglund@paypal.com>
2023-06-25 21:30:11 +02:00
Olivier Cavadenti
0f8bbe92b5
Mysql2 require breaks with Node 12 ( #5579 )
2023-06-20 12:34:42 +03:00
Shean de Montigny-Desautels
5ffe289c33
fix() manually close source stream ( #5466 )
2023-05-31 17:53:27 +02:00
Matt Meyers
b6d04f75b3
Add object syntax overload to decrement method ( #5555 )
2023-04-21 09:19:44 +02:00
dependabot[bot]
775c719043
Bump typescript from 5.0.3 to 5.0.4 ( #5538 )
...
Bumps [typescript](https://github.com/Microsoft/TypeScript ) from 5.0.3 to 5.0.4.
- [Release notes](https://github.com/Microsoft/TypeScript/releases )
- [Commits](https://github.com/Microsoft/TypeScript/compare/v5.0.3...v5.0.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>
2023-04-20 09:07:36 +02:00
François de Metz
704d12e9ba
Add ability to prepend query comments ( #5289 )
...
Co-authored-by: Ryan Fink <ryanjfink@gmail.com>
2023-04-14 06:07:05 +02:00
dependabot[bot]
ce56f40020
Bump typescript from 5.0.2 to 5.0.3 ( #5533 )
...
Bumps [typescript](https://github.com/Microsoft/TypeScript ) from 5.0.2 to 5.0.3.
- [Release notes](https://github.com/Microsoft/TypeScript/releases )
- [Commits](https://github.com/Microsoft/TypeScript/commits )
---
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>
2023-04-03 09:23:56 +02:00
Muhammad Syaifudin
7f0a9fe8ed
add fetchAsString option ( #5484 )
2023-03-31 09:54:10 +02:00
Zhang Yidong
ab1f9ae372
[Sqlite3] Fix can not get table sql because of case sensitive ( #5509 )
...
Co-authored-by: Olivier Cavadenti <olivier.cavadenti@gmail.com>
2023-03-30 18:15:04 +02:00
dependabot[bot]
13936f2702
Bump typescript from 4.8.3 to 5.0.2 ( #5519 )
...
Bumps [typescript](https://github.com/Microsoft/TypeScript ) from 4.8.3 to 5.0.2.
- [Release notes](https://github.com/Microsoft/TypeScript/releases )
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.8.3...v5.0.2 )
---
updated-dependencies:
- dependency-name: typescript
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>
2023-03-30 11:52:47 +02:00
ian
8ea5690bac
Use implicit check on json fields for OracleDB ( #5478 )
2023-03-29 23:45:19 +02:00
Varun Sharma
b981bf1d00
Add minimum GitHub token permissions for workflows ( #5318 )
...
Signed-off-by: Varun Sharma <varunsh@stepsecurity.io>
2023-03-29 23:40:33 +02:00
Olivier Cavadenti
cba2210fd3
linting
2023-03-29 20:38:55 +02:00
David Tanner
2ad7719923
TableBuilder methods typically return the SchemaBuilder, so updating methods to reflect that. ( #5486 )
2023-03-29 14:04:57 +02:00
Deirdre Sweeney
4d5ae61bfe
[ISSUE-5350] Create EXCEPT as a valid keyword ( #5357 )
2023-03-29 14:03:59 +02:00
Omar Abdelkader
570a7eae48
Add readonly transaction access mode ( #5445 )
2023-03-29 13:59:05 +02:00
Pierre Ducher
7dd56826b9
[TypeScript ]Add missing types for havingNull and havingNotNull ( #5529 )
2023-03-29 12:50:32 +02:00
dependabot[bot]
de2a8a2df4
Bump commander from 9.5.0 to 10.0.0 ( #5447 )
...
Bumps [commander](https://github.com/tj/commander.js ) from 9.5.0 to 10.0.0.
- [Release notes](https://github.com/tj/commander.js/releases )
- [Changelog](https://github.com/tj/commander.js/blob/master/CHANGELOG.md )
- [Commits](https://github.com/tj/commander.js/compare/v9.5.0...v10.0.0 )
---
updated-dependencies:
- dependency-name: commander
dependency-type: direct:production
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>
2023-03-28 22:31:49 +02:00
dependabot[bot]
a312423be8
Bump actions/setup-node from 3.5.1 to 3.6.0 ( #5429 )
...
Bumps [actions/setup-node](https://github.com/actions/setup-node ) from 3.5.1 to 3.6.0.
- [Release notes](https://github.com/actions/setup-node/releases )
- [Commits](https://github.com/actions/setup-node/compare/v3.5.1...v3.6.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>
2023-03-28 22:30:08 +02:00
dependabot[bot]
676ae9fa3b
Bump mysql2 from 2.3.3 to 3.2.0 ( #5505 )
...
Bumps [mysql2](https://github.com/sidorares/node-mysql2 ) from 2.3.3 to 3.2.0.
- [Release notes](https://github.com/sidorares/node-mysql2/releases )
- [Changelog](https://github.com/sidorares/node-mysql2/blob/master/Changelog.md )
- [Commits](https://github.com/sidorares/node-mysql2/compare/v2.3.3...v3.2.0 )
---
updated-dependencies:
- dependency-name: mysql2
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>
2023-03-28 22:17:36 +02:00
dependabot[bot]
833c039cb8
Bump tsd from 0.25.0 to 0.28.1 ( #5528 )
...
Bumps [tsd](https://github.com/SamVerschueren/tsd ) from 0.25.0 to 0.28.1.
- [Release notes](https://github.com/SamVerschueren/tsd/releases )
- [Commits](https://github.com/SamVerschueren/tsd/compare/v0.25.0...v0.28.1 )
---
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>
2023-03-28 22:14:29 +02:00
Adam Haglund
ac59ab7bb6
Add nativeBindings option to better-sqlite3 options ( #5461 )
2023-03-28 22:12:05 +02:00
Rudi Dykman
42b91980b7
Update dates in Changelog for 2023 ( #5468 )
2023-03-28 14:44:41 +02:00
Luca Kiebel
c374a30f53
[TypeScript] Add Object syntax overload to increment method ( #5512 )
...
The [documentation for `QueryBuilder#icrements`](https://knexjs.org/guide/query-builder.html#increment ) says, that the method accepts columns and values either as separate arguments, or in Object syntax ([the code also checks if the column is an object](0d27bcb60b/lib/query/querybuilder.js (L1111) )).
But currently this code:
````typescript
knex("table")
.where({ id: 1 })
.increment({
foo: 1,
bar: 2,
});
````
Throws an error:
````
No overload matches this call.
Overload 1 of 2, '(columnName: string | number | symbol, amount?: number): QueryBuilder<any, number>', gave the following error.
Argument of type '{ views: number; clicks: number; sales: number; }' is not assignable to parameter of type 'string | number | symbol'.
Overload 2 of 2, '(columnName: string, amount?: number): QueryBuilder<any, number>', gave the following error.
Argument of type '{ views: number; clicks: number; sales: number; }' is not assignable to parameter of type 'string'.
````
This adds an overload to the increment method type definition for the case where the first argument is an Object consisting of keys from TRecord and numbers as values.
2023-03-28 14:43:21 +02:00
dependabot[bot]
01688a49f0
Bump prettier from 2.8.3 to 2.8.7 ( #5527 )
...
Bumps [prettier](https://github.com/prettier/prettier ) from 2.8.3 to 2.8.7.
- [Release notes](https://github.com/prettier/prettier/releases )
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md )
- [Commits](https://github.com/prettier/prettier/compare/2.8.3...2.8.7 )
---
updated-dependencies:
- dependency-name: prettier
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>
2023-03-28 14:42:32 +02:00
Igor Savin
0d27bcb60b
Update changelog
2023-01-22 16:14:56 +02:00
Igor Savin
73a3e33a32
Prepare to release 2.4.2
2.4.2
2023-01-22 16:13:58 +02:00
Igor Savin
9a6c5ba62f
Additional lint checks before publishing ( #5459 )
2023-01-22 16:13:24 +02:00
Minh TRINH
5caf526c27
tests(insert): add tests for json, text array, integer array ( #5451 )
2023-01-18 02:05:36 +02:00