@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 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.15 |
17
- | Processed | 2026-03-31 |
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
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "bumped": {},
3
- "timestamp": "2026-03-31T04:54:34.705Z",
3
+ "timestamp": "2026-04-10T20:16:53.878Z",
4
4
  "totalUpdated": 0
5
5
  }
@@ -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 @SelectQueryBuilder.$asTuple | $asTuple}
527
+ * in this case you need to use the {@link SelectQueryBuilder.$asTuple | $asTuple}
528
528
  * function:
529
529
  *
530
530
  * ```ts
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @module
3
+ * @mergeModuleWith <project>
4
+ */
1
5
  export * from './kysely.js';
2
6
  export * from './query-creator.js';
3
7
  export * from './expression/expression.js';
package/dist/cjs/index.js CHANGED
@@ -1,4 +1,8 @@
1
1
  "use strict";
2
+ /**
3
+ * @module
4
+ * @mergeModuleWith <project>
5
+ */
2
6
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
7
  if (k2 === undefined) k2 = k;
4
8
  var desc = Object.getOwnPropertyDescriptor(m, k);
@@ -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
- * @description This is only supported by some dialects like MySQL or SQLite with `SQLITE_ENABLE_UPDATE_DELETE_LIMIT`.
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
- * @description This is only supported by some dialects like MySQL or SQLite with `SQLITE_ENABLE_UPDATE_DELETE_LIMIT`.
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
- * @description This is only supported by some dialects like MySQL or SQLite with `SQLITE_ENABLE_UPDATE_DELETE_LIMIT`.
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
- * @description This is only supported by some dialects like MySQL or SQLite with `SQLITE_ENABLE_UPDATE_DELETE_LIMIT`.
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
- * @description This is only supported by some dialects like MySQL or SQLite with `SQLITE_ENABLE_UPDATE_DELETE_LIMIT`.
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
- * @description This is only supported by some dialects like MySQL or SQLite with `SQLITE_ENABLE_UPDATE_DELETE_LIMIT`.
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
- * @description This is only supported by some dialects like MySQL or SQLite with `SQLITE_ENABLE_UPDATE_DELETE_LIMIT`.
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
- * @description This is only supported by some dialects like MySQL or SQLite with `SQLITE_ENABLE_UPDATE_DELETE_LIMIT`.
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 @SelectQueryBuilder.$asTuple | $asTuple}
527
+ * in this case you need to use the {@link SelectQueryBuilder.$asTuple | $asTuple}
528
528
  * function:
529
529
  *
530
530
  * ```ts
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @module
3
+ * @mergeModuleWith <project>
4
+ */
1
5
  export * from './kysely.js';
2
6
  export * from './query-creator.js';
3
7
  export * from './expression/expression.js';
package/dist/esm/index.js CHANGED
@@ -1,4 +1,8 @@
1
1
  /// <reference types="./index.d.ts" />
2
+ /**
3
+ * @module
4
+ * @mergeModuleWith <project>
5
+ */
2
6
  export * from './kysely.js';
3
7
  export * from './query-creator.js';
4
8
  export * from './expression/expression.js';
@@ -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
- * @description This is only supported by some dialects like MySQL or SQLite with `SQLITE_ENABLE_UPDATE_DELETE_LIMIT`.
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
- * @description This is only supported by some dialects like MySQL or SQLite with `SQLITE_ENABLE_UPDATE_DELETE_LIMIT`.
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
- * @description This is only supported by some dialects like MySQL or SQLite with `SQLITE_ENABLE_UPDATE_DELETE_LIMIT`.
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
- * @description This is only supported by some dialects like MySQL or SQLite with `SQLITE_ENABLE_UPDATE_DELETE_LIMIT`.
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
- * @description This is only supported by some dialects like MySQL or SQLite with `SQLITE_ENABLE_UPDATE_DELETE_LIMIT`.
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
- * @description This is only supported by some dialects like MySQL or SQLite with `SQLITE_ENABLE_UPDATE_DELETE_LIMIT`.
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
- * @description This is only supported by some dialects like MySQL or SQLite with `SQLITE_ENABLE_UPDATE_DELETE_LIMIT`.
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
- * @description This is only supported by some dialects like MySQL or SQLite with `SQLITE_ENABLE_UPDATE_DELETE_LIMIT`.
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.15-depup.0",
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": "^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.0",
95
- "@types/pg": "^8.20.0",
96
- "@types/pg-cursor": "^2.7.2",
97
- "@types/semver": "^7.7.1",
98
- "@types/sinon": "^21.0.0",
99
- "better-sqlite3": "^12.8.0",
100
- "chai": "^6.2.2",
101
- "chai-as-promised": "^8.0.2",
102
- "esbuild": "^0.27.4",
103
- "jsr": "^0.14.3",
104
- "lodash": "^4.17.23",
105
- "mocha": "^11.7.5",
106
- "mysql2": "^3.20.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.58.2",
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"
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/local.test.ts && deno run --allow-env --allow-read --allow-net --no-lock test/deno/cdn.test.ts",
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.15",
158
- "processedAt": "2026-03-31T04:54:42.825Z",
157
+ "originalVersion": "0.28.16",
158
+ "processedAt": "2026-04-10T20:17:05.891Z",
159
159
  "smokeTest": "passed"
160
160
  }
161
161
  }