@depup/kysely 0.28.15-depup.0 → 0.28.16-depup.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/changes.json +1 -1
- package/dist/cjs/expression/expression-builder.d.ts +1 -1
- package/dist/cjs/index.d.ts +4 -0
- package/dist/cjs/index.js +4 -0
- package/dist/cjs/parser/binary-operation-parser.d.ts +3 -1
- package/dist/cjs/query-builder/delete-query-builder.d.ts +4 -4
- package/dist/cjs/query-builder/update-query-builder.d.ts +4 -4
- package/dist/esm/expression/expression-builder.d.ts +1 -1
- package/dist/esm/index.d.ts +4 -0
- package/dist/esm/index.js +4 -0
- package/dist/esm/parser/binary-operation-parser.d.ts +3 -1
- package/dist/esm/query-builder/delete-query-builder.d.ts +4 -4
- package/dist/esm/query-builder/update-query-builder.d.ts +4 -4
- package/package.json +36 -36
package/README.md
CHANGED
|
@@ -13,8 +13,8 @@ npm install @depup/kysely
|
|
|
13
13
|
|
|
14
14
|
| Field | Value |
|
|
15
15
|
|-------|-------|
|
|
16
|
-
| Original | [kysely](https://www.npmjs.com/package/kysely) @ 0.28.
|
|
17
|
-
| Processed | 2026-
|
|
16
|
+
| Original | [kysely](https://www.npmjs.com/package/kysely) @ 0.28.16 |
|
|
17
|
+
| Processed | 2026-04-10 |
|
|
18
18
|
| Smoke test | passed |
|
|
19
19
|
| Deps updated | 0 |
|
|
20
20
|
|
package/changes.json
CHANGED
|
@@ -524,7 +524,7 @@ export interface ExpressionBuilder<DB, TB extends keyof DB> {
|
|
|
524
524
|
* ```
|
|
525
525
|
*
|
|
526
526
|
* In the next example a reference tuple is compared to a subquery. Note that
|
|
527
|
-
* in this case you need to use the {@link
|
|
527
|
+
* in this case you need to use the {@link SelectQueryBuilder.$asTuple | $asTuple}
|
|
528
528
|
* function:
|
|
529
529
|
*
|
|
530
530
|
* ```ts
|
package/dist/cjs/index.d.ts
CHANGED
package/dist/cjs/index.js
CHANGED
|
@@ -6,12 +6,14 @@ import { type ValueExpression, type ValueExpressionOrList } from './value-parser
|
|
|
6
6
|
import type { OperationNode } from '../operation-node/operation-node.js';
|
|
7
7
|
import type { Expression } from '../expression/expression.js';
|
|
8
8
|
import type { SelectType } from '../util/column-type.js';
|
|
9
|
+
import type { IsNever } from '../util/type-utils.js';
|
|
10
|
+
import type { KyselyTypeError } from '../util/type-error.js';
|
|
9
11
|
export type OperandValueExpression<DB, TB extends keyof DB, RE> = ValueExpression<DB, TB, ExtractTypeFromReferenceExpression<DB, TB, RE>>;
|
|
10
12
|
export type OperandValueExpressionOrList<DB, TB extends keyof DB, RE> = ValueExpressionOrList<DB, TB, ExtractTypeFromReferenceExpression<DB, TB, RE> | null>;
|
|
11
13
|
export type OperatorExpression = Operator | Expression<unknown>;
|
|
12
14
|
export type BinaryOperatorExpression = BinaryOperator | Expression<unknown>;
|
|
13
15
|
export type ComparisonOperatorExpression = ComparisonOperator | Expression<unknown>;
|
|
14
|
-
export type FilterObject<DB, TB extends keyof DB> = {
|
|
16
|
+
export type FilterObject<DB, TB extends keyof DB> = IsNever<TB> extends true ? KyselyTypeError<'there are no tables in query context, so a filter object cannot be defined. try passing an array instead.'> : {
|
|
15
17
|
[R in StringReference<DB, TB>]?: ValueExpressionOrList<DB, TB, SelectType<ExtractTypeFromStringReference<DB, TB, R>>>;
|
|
16
18
|
};
|
|
17
19
|
export declare function parseValueBinaryOperationOrExpression(args: any[]): OperationNode;
|
|
@@ -976,21 +976,21 @@ export declare class DeleteQueryBuilder<DB, TB extends keyof DB, O> implements W
|
|
|
976
976
|
*/
|
|
977
977
|
clearLimit(): DeleteQueryBuilder<DB, TB, O>;
|
|
978
978
|
/**
|
|
979
|
-
* @
|
|
979
|
+
* @remarks This is only supported by some dialects like MySQL or SQLite with `SQLITE_ENABLE_UPDATE_DELETE_LIMIT`.
|
|
980
980
|
*/
|
|
981
981
|
orderBy<OE extends OrderByExpression<DB, TB, {}>>(expr: OE, modifiers?: OrderByModifiers): DeleteQueryBuilder<DB, TB, O>;
|
|
982
982
|
/**
|
|
983
|
-
* @
|
|
983
|
+
* @remarks This is only supported by some dialects like MySQL or SQLite with `SQLITE_ENABLE_UPDATE_DELETE_LIMIT`.
|
|
984
984
|
* @deprecated It does ~2-2.6x more compile-time instantiations compared to multiple chained `orderBy(expr, modifiers?)` calls (in `order by` clauses with reasonable item counts), and has broken autocompletion.
|
|
985
985
|
*/
|
|
986
986
|
orderBy<OE extends OrderByExpression<DB, TB, {}> | DirectedOrderByStringReference<DB, TB, {}>>(exprs: ReadonlyArray<OE>): DeleteQueryBuilder<DB, TB, O>;
|
|
987
987
|
/**
|
|
988
|
-
* @
|
|
988
|
+
* @remarks This is only supported by some dialects like MySQL or SQLite with `SQLITE_ENABLE_UPDATE_DELETE_LIMIT`.
|
|
989
989
|
* @deprecated It does ~2.9x more compile-time instantiations compared to a `orderBy(expr, direction)` call.
|
|
990
990
|
*/
|
|
991
991
|
orderBy<OE extends DirectedOrderByStringReference<DB, TB, {}>>(expr: OE): DeleteQueryBuilder<DB, TB, O>;
|
|
992
992
|
/**
|
|
993
|
-
* @
|
|
993
|
+
* @remarks This is only supported by some dialects like MySQL or SQLite with `SQLITE_ENABLE_UPDATE_DELETE_LIMIT`.
|
|
994
994
|
* @deprecated Use `orderBy(expr, (ob) => ...)` instead.
|
|
995
995
|
*/
|
|
996
996
|
orderBy<OE extends OrderByExpression<DB, TB, {}>>(expr: OE, modifiers: Expression<any>): DeleteQueryBuilder<DB, TB, O>;
|
|
@@ -602,21 +602,21 @@ export declare class UpdateQueryBuilder<DB, UT extends keyof DB, TB extends keyo
|
|
|
602
602
|
fullJoin<TE extends TableExpression<DB, TB>, K1 extends JoinReferenceExpression<DB, TB, TE>, K2 extends JoinReferenceExpression<DB, TB, TE>>(table: TE, k1: K1, k2: K2): UpdateQueryBuilderWithFullJoin<DB, UT, TB, O, TE>;
|
|
603
603
|
fullJoin<TE extends TableExpression<DB, TB>, FN extends JoinCallbackExpression<DB, TB, TE>>(table: TE, callback: FN): UpdateQueryBuilderWithFullJoin<DB, UT, TB, O, TE>;
|
|
604
604
|
/**
|
|
605
|
-
* @
|
|
605
|
+
* @remarks This is only supported by some dialects like MySQL or SQLite with `SQLITE_ENABLE_UPDATE_DELETE_LIMIT`.
|
|
606
606
|
*/
|
|
607
607
|
orderBy<OE extends OrderByExpression<DB, TB, {}>>(expr: OE, modifiers?: OrderByModifiers): UpdateQueryBuilder<DB, UT, TB, O>;
|
|
608
608
|
/**
|
|
609
|
-
* @
|
|
609
|
+
* @remarks This is only supported by some dialects like MySQL or SQLite with `SQLITE_ENABLE_UPDATE_DELETE_LIMIT`.
|
|
610
610
|
* @deprecated It does ~2-2.6x more compile-time instantiations compared to multiple chained `orderBy(expr, modifiers?)` calls (in `order by` clauses with reasonable item counts), and has broken autocompletion.
|
|
611
611
|
*/
|
|
612
612
|
orderBy<OE extends OrderByExpression<DB, TB, {}> | DirectedOrderByStringReference<DB, TB, {}>>(exprs: ReadonlyArray<OE>): UpdateQueryBuilder<DB, UT, TB, O>;
|
|
613
613
|
/**
|
|
614
|
-
* @
|
|
614
|
+
* @remarks This is only supported by some dialects like MySQL or SQLite with `SQLITE_ENABLE_UPDATE_DELETE_LIMIT`.
|
|
615
615
|
* @deprecated It does ~2.9x more compile-time instantiations compared to a `orderBy(expr, direction)` call.
|
|
616
616
|
*/
|
|
617
617
|
orderBy<OE extends DirectedOrderByStringReference<DB, TB, {}>>(expr: OE): UpdateQueryBuilder<DB, UT, TB, O>;
|
|
618
618
|
/**
|
|
619
|
-
* @
|
|
619
|
+
* @remarks This is only supported by some dialects like MySQL or SQLite with `SQLITE_ENABLE_UPDATE_DELETE_LIMIT`.
|
|
620
620
|
* @deprecated Use `orderBy(expr, (ob) => ...)` instead.
|
|
621
621
|
*/
|
|
622
622
|
orderBy<OE extends OrderByExpression<DB, TB, {}>>(expr: OE, modifiers: Expression<any>): UpdateQueryBuilder<DB, UT, TB, O>;
|
|
@@ -524,7 +524,7 @@ export interface ExpressionBuilder<DB, TB extends keyof DB> {
|
|
|
524
524
|
* ```
|
|
525
525
|
*
|
|
526
526
|
* In the next example a reference tuple is compared to a subquery. Note that
|
|
527
|
-
* in this case you need to use the {@link
|
|
527
|
+
* in this case you need to use the {@link SelectQueryBuilder.$asTuple | $asTuple}
|
|
528
528
|
* function:
|
|
529
529
|
*
|
|
530
530
|
* ```ts
|
package/dist/esm/index.d.ts
CHANGED
package/dist/esm/index.js
CHANGED
|
@@ -6,12 +6,14 @@ import { type ValueExpression, type ValueExpressionOrList } from './value-parser
|
|
|
6
6
|
import type { OperationNode } from '../operation-node/operation-node.js';
|
|
7
7
|
import type { Expression } from '../expression/expression.js';
|
|
8
8
|
import type { SelectType } from '../util/column-type.js';
|
|
9
|
+
import type { IsNever } from '../util/type-utils.js';
|
|
10
|
+
import type { KyselyTypeError } from '../util/type-error.js';
|
|
9
11
|
export type OperandValueExpression<DB, TB extends keyof DB, RE> = ValueExpression<DB, TB, ExtractTypeFromReferenceExpression<DB, TB, RE>>;
|
|
10
12
|
export type OperandValueExpressionOrList<DB, TB extends keyof DB, RE> = ValueExpressionOrList<DB, TB, ExtractTypeFromReferenceExpression<DB, TB, RE> | null>;
|
|
11
13
|
export type OperatorExpression = Operator | Expression<unknown>;
|
|
12
14
|
export type BinaryOperatorExpression = BinaryOperator | Expression<unknown>;
|
|
13
15
|
export type ComparisonOperatorExpression = ComparisonOperator | Expression<unknown>;
|
|
14
|
-
export type FilterObject<DB, TB extends keyof DB> = {
|
|
16
|
+
export type FilterObject<DB, TB extends keyof DB> = IsNever<TB> extends true ? KyselyTypeError<'there are no tables in query context, so a filter object cannot be defined. try passing an array instead.'> : {
|
|
15
17
|
[R in StringReference<DB, TB>]?: ValueExpressionOrList<DB, TB, SelectType<ExtractTypeFromStringReference<DB, TB, R>>>;
|
|
16
18
|
};
|
|
17
19
|
export declare function parseValueBinaryOperationOrExpression(args: any[]): OperationNode;
|
|
@@ -976,21 +976,21 @@ export declare class DeleteQueryBuilder<DB, TB extends keyof DB, O> implements W
|
|
|
976
976
|
*/
|
|
977
977
|
clearLimit(): DeleteQueryBuilder<DB, TB, O>;
|
|
978
978
|
/**
|
|
979
|
-
* @
|
|
979
|
+
* @remarks This is only supported by some dialects like MySQL or SQLite with `SQLITE_ENABLE_UPDATE_DELETE_LIMIT`.
|
|
980
980
|
*/
|
|
981
981
|
orderBy<OE extends OrderByExpression<DB, TB, {}>>(expr: OE, modifiers?: OrderByModifiers): DeleteQueryBuilder<DB, TB, O>;
|
|
982
982
|
/**
|
|
983
|
-
* @
|
|
983
|
+
* @remarks This is only supported by some dialects like MySQL or SQLite with `SQLITE_ENABLE_UPDATE_DELETE_LIMIT`.
|
|
984
984
|
* @deprecated It does ~2-2.6x more compile-time instantiations compared to multiple chained `orderBy(expr, modifiers?)` calls (in `order by` clauses with reasonable item counts), and has broken autocompletion.
|
|
985
985
|
*/
|
|
986
986
|
orderBy<OE extends OrderByExpression<DB, TB, {}> | DirectedOrderByStringReference<DB, TB, {}>>(exprs: ReadonlyArray<OE>): DeleteQueryBuilder<DB, TB, O>;
|
|
987
987
|
/**
|
|
988
|
-
* @
|
|
988
|
+
* @remarks This is only supported by some dialects like MySQL or SQLite with `SQLITE_ENABLE_UPDATE_DELETE_LIMIT`.
|
|
989
989
|
* @deprecated It does ~2.9x more compile-time instantiations compared to a `orderBy(expr, direction)` call.
|
|
990
990
|
*/
|
|
991
991
|
orderBy<OE extends DirectedOrderByStringReference<DB, TB, {}>>(expr: OE): DeleteQueryBuilder<DB, TB, O>;
|
|
992
992
|
/**
|
|
993
|
-
* @
|
|
993
|
+
* @remarks This is only supported by some dialects like MySQL or SQLite with `SQLITE_ENABLE_UPDATE_DELETE_LIMIT`.
|
|
994
994
|
* @deprecated Use `orderBy(expr, (ob) => ...)` instead.
|
|
995
995
|
*/
|
|
996
996
|
orderBy<OE extends OrderByExpression<DB, TB, {}>>(expr: OE, modifiers: Expression<any>): DeleteQueryBuilder<DB, TB, O>;
|
|
@@ -602,21 +602,21 @@ export declare class UpdateQueryBuilder<DB, UT extends keyof DB, TB extends keyo
|
|
|
602
602
|
fullJoin<TE extends TableExpression<DB, TB>, K1 extends JoinReferenceExpression<DB, TB, TE>, K2 extends JoinReferenceExpression<DB, TB, TE>>(table: TE, k1: K1, k2: K2): UpdateQueryBuilderWithFullJoin<DB, UT, TB, O, TE>;
|
|
603
603
|
fullJoin<TE extends TableExpression<DB, TB>, FN extends JoinCallbackExpression<DB, TB, TE>>(table: TE, callback: FN): UpdateQueryBuilderWithFullJoin<DB, UT, TB, O, TE>;
|
|
604
604
|
/**
|
|
605
|
-
* @
|
|
605
|
+
* @remarks This is only supported by some dialects like MySQL or SQLite with `SQLITE_ENABLE_UPDATE_DELETE_LIMIT`.
|
|
606
606
|
*/
|
|
607
607
|
orderBy<OE extends OrderByExpression<DB, TB, {}>>(expr: OE, modifiers?: OrderByModifiers): UpdateQueryBuilder<DB, UT, TB, O>;
|
|
608
608
|
/**
|
|
609
|
-
* @
|
|
609
|
+
* @remarks This is only supported by some dialects like MySQL or SQLite with `SQLITE_ENABLE_UPDATE_DELETE_LIMIT`.
|
|
610
610
|
* @deprecated It does ~2-2.6x more compile-time instantiations compared to multiple chained `orderBy(expr, modifiers?)` calls (in `order by` clauses with reasonable item counts), and has broken autocompletion.
|
|
611
611
|
*/
|
|
612
612
|
orderBy<OE extends OrderByExpression<DB, TB, {}> | DirectedOrderByStringReference<DB, TB, {}>>(exprs: ReadonlyArray<OE>): UpdateQueryBuilder<DB, UT, TB, O>;
|
|
613
613
|
/**
|
|
614
|
-
* @
|
|
614
|
+
* @remarks This is only supported by some dialects like MySQL or SQLite with `SQLITE_ENABLE_UPDATE_DELETE_LIMIT`.
|
|
615
615
|
* @deprecated It does ~2.9x more compile-time instantiations compared to a `orderBy(expr, direction)` call.
|
|
616
616
|
*/
|
|
617
617
|
orderBy<OE extends DirectedOrderByStringReference<DB, TB, {}>>(expr: OE): UpdateQueryBuilder<DB, UT, TB, O>;
|
|
618
618
|
/**
|
|
619
|
-
* @
|
|
619
|
+
* @remarks This is only supported by some dialects like MySQL or SQLite with `SQLITE_ENABLE_UPDATE_DELETE_LIMIT`.
|
|
620
620
|
* @deprecated Use `orderBy(expr, (ob) => ...)` instead.
|
|
621
621
|
*/
|
|
622
622
|
orderBy<OE extends OrderByExpression<DB, TB, {}>>(expr: OE, modifiers: Expression<any>): UpdateQueryBuilder<DB, UT, TB, O>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depup/kysely",
|
|
3
|
-
"version": "0.28.
|
|
3
|
+
"version": "0.28.16-depup.0",
|
|
4
4
|
"description": "Type safe SQL query builder (with updated dependencies)",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -85,38 +85,38 @@
|
|
|
85
85
|
"Igal Klebanov <igalklebanov@gmail.com>"
|
|
86
86
|
],
|
|
87
87
|
"devDependencies": {
|
|
88
|
-
"@arethetypeswrong/cli": "
|
|
89
|
-
"@ark/attest": "
|
|
90
|
-
"@types/better-sqlite3": "
|
|
91
|
-
"@types/chai": "
|
|
92
|
-
"@types/chai-as-promised": "
|
|
93
|
-
"@types/mocha": "
|
|
94
|
-
"@types/node": "
|
|
95
|
-
"@types/pg": "
|
|
96
|
-
"@types/pg-cursor": "
|
|
97
|
-
"@types/semver": "
|
|
98
|
-
"@types/sinon": "
|
|
99
|
-
"better-sqlite3": "
|
|
100
|
-
"chai": "
|
|
101
|
-
"chai-as-promised": "
|
|
102
|
-
"esbuild": "
|
|
103
|
-
"jsr": "
|
|
104
|
-
"lodash": "
|
|
105
|
-
"mocha": "
|
|
106
|
-
"mysql2": "
|
|
107
|
-
"pathe": "
|
|
108
|
-
"pg": "
|
|
109
|
-
"pg-cursor": "
|
|
110
|
-
"pkg-types": "
|
|
111
|
-
"playwright": "
|
|
112
|
-
"prettier": "
|
|
113
|
-
"semver": "
|
|
114
|
-
"sinon": "
|
|
115
|
-
"std-env": "
|
|
116
|
-
"tarn": "
|
|
117
|
-
"tedious": "
|
|
118
|
-
"tsd": "
|
|
119
|
-
"typescript": "
|
|
88
|
+
"@arethetypeswrong/cli": "0.18.2",
|
|
89
|
+
"@ark/attest": "0.56.0",
|
|
90
|
+
"@types/better-sqlite3": "7.6.13",
|
|
91
|
+
"@types/chai": "5.2.3",
|
|
92
|
+
"@types/chai-as-promised": "8.0.2",
|
|
93
|
+
"@types/mocha": "10.0.10",
|
|
94
|
+
"@types/node": "25.5.2",
|
|
95
|
+
"@types/pg": "8.20.0",
|
|
96
|
+
"@types/pg-cursor": "2.7.2",
|
|
97
|
+
"@types/semver": "7.7.1",
|
|
98
|
+
"@types/sinon": "21.0.1",
|
|
99
|
+
"better-sqlite3": "12.8.0",
|
|
100
|
+
"chai": "6.2.2",
|
|
101
|
+
"chai-as-promised": "8.0.2",
|
|
102
|
+
"esbuild": "0.28.0",
|
|
103
|
+
"jsr": "0.14.3",
|
|
104
|
+
"lodash": "4.18.1",
|
|
105
|
+
"mocha": "11.7.5",
|
|
106
|
+
"mysql2": "3.21.0",
|
|
107
|
+
"pathe": "2.0.3",
|
|
108
|
+
"pg": "8.20.0",
|
|
109
|
+
"pg-cursor": "2.19.0",
|
|
110
|
+
"pkg-types": "2.3.0",
|
|
111
|
+
"playwright": "1.59.1",
|
|
112
|
+
"prettier": "3.8.1",
|
|
113
|
+
"semver": "7.7.4",
|
|
114
|
+
"sinon": "21.0.3",
|
|
115
|
+
"std-env": "4.0.0",
|
|
116
|
+
"tarn": "3.0.2",
|
|
117
|
+
"tedious": "19.2.1",
|
|
118
|
+
"tsd": "0.33.0",
|
|
119
|
+
"typescript": "6.0.2"
|
|
120
120
|
},
|
|
121
121
|
"scripts": {
|
|
122
122
|
"clean": "rm -rf dist & rm -rf test/node/dist & rm -rf test/browser/bundle.js & rm -rf helpers",
|
|
@@ -129,7 +129,7 @@
|
|
|
129
129
|
"test:browser": "pnpm build && pnpm test:browser:build && node test/browser/test.js",
|
|
130
130
|
"test:bun": "pnpm build && bun link && cd test/bun && bun install && bun run test",
|
|
131
131
|
"test:cloudflare-workers": "pnpm build && pnpm -r test --filter kysely-cloudflare-workers-test",
|
|
132
|
-
"test:deno": "deno run --allow-env --allow-read --allow-net --no-lock test/deno/
|
|
132
|
+
"test:deno": "deno run --allow-env --allow-read --allow-net --no-lock test/deno/test.ts",
|
|
133
133
|
"test:typings": "tsd test/typings",
|
|
134
134
|
"test:esmimports": "node scripts/check-esm-imports.cjs",
|
|
135
135
|
"test:esbuild": "esbuild --bundle --platform=node --external:pg-native dist/esm/index.js --outfile=/dev/null",
|
|
@@ -154,8 +154,8 @@
|
|
|
154
154
|
"changes": {},
|
|
155
155
|
"depsUpdated": 0,
|
|
156
156
|
"originalPackage": "kysely",
|
|
157
|
-
"originalVersion": "0.28.
|
|
158
|
-
"processedAt": "2026-
|
|
157
|
+
"originalVersion": "0.28.16",
|
|
158
|
+
"processedAt": "2026-04-10T20:17:05.891Z",
|
|
159
159
|
"smokeTest": "passed"
|
|
160
160
|
}
|
|
161
161
|
}
|