kysely 0.29.0 → 0.29.2
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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
[](https://stand-with-ukraine.pp.ua)
|
|
2
2
|
|
|
3
3
|
[](https://github.com/kysely-org/kysely/releases/latest)
|
|
4
|
-
[](https://socket.dev/npm/package/kysely/overview/0.29.2)
|
|
5
5
|
[](https://github.com/kysely-org/kysely)
|
|
6
6
|
[](https://github.com/kysely-org/kysely/blob/master/LICENSE)
|
|
7
7
|
[](https://github.com/kysely-org/kysely/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc)
|
|
@@ -160,13 +160,9 @@ export class QueryExecutorBase {
|
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
162
|
async #transformResult(result, queryId, options) {
|
|
163
|
-
const
|
|
164
|
-
queryId,
|
|
165
|
-
result,
|
|
166
|
-
signal: options?.signal,
|
|
167
|
-
});
|
|
163
|
+
const { signal } = options || {};
|
|
168
164
|
for (const plugin of this.#plugins) {
|
|
169
|
-
result = await plugin.transformResult(
|
|
165
|
+
result = await plugin.transformResult(freeze({ queryId, result, signal }));
|
|
170
166
|
}
|
|
171
167
|
return result;
|
|
172
168
|
}
|
|
@@ -121,7 +121,7 @@ export type IsAny<T> = 0 extends T & 1 ? true : false;
|
|
|
121
121
|
*/
|
|
122
122
|
export type Equals<T, U> = (<G>() => G extends T ? 1 : 2) extends <G>() => G extends U ? 1 : 2 ? true : false;
|
|
123
123
|
export type NarrowPartial<O, T> = T extends object ? DrainOuterGeneric<{
|
|
124
|
-
[K in keyof O & string]: K extends keyof T ? T[K] extends NotNull ? Exclude<O[K], null> : T[K] extends
|
|
124
|
+
[K in keyof O & string]: K extends keyof T ? T[K] extends NotNull ? Exclude<O[K], null> : T[K] extends O[K] ? T[K] : T[K] extends object ? SimplifyDeep<O[K] & NarrowPartial<O[K], T[K]>> : KyselyTypeError<`$narrowType() call failed: passed type does not exist in '${K}'s type union`> : O[K];
|
|
125
125
|
}> : never;
|
|
126
126
|
export type SimplifyDeep<T> = T extends object ? T extends Date | RegExp | Map<any, any> | Set<any> ? T : DrainOuterGeneric<{
|
|
127
127
|
[K in keyof T]: SimplifyDeep<T[K]>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kysely",
|
|
3
|
-
"version": "0.29.
|
|
3
|
+
"version": "0.29.2",
|
|
4
4
|
"description": "Type safe SQL query builder",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -68,33 +68,33 @@
|
|
|
68
68
|
"@types/chai": "5.2.3",
|
|
69
69
|
"@types/chai-as-promised": "8.0.2",
|
|
70
70
|
"@types/mocha": "10.0.10",
|
|
71
|
-
"@types/node": "25.
|
|
71
|
+
"@types/node": "25.8.0",
|
|
72
72
|
"@types/pg": "8.20.0",
|
|
73
73
|
"@types/pg-cursor": "2.7.2",
|
|
74
74
|
"@types/prototype-pollution-vulnerable-lodash.merge-dont-upgrade": "npm:@types/lodash.merge@4.6.1",
|
|
75
75
|
"@types/semver": "7.7.1",
|
|
76
76
|
"@types/sinon": "21.0.1",
|
|
77
|
-
"better-sqlite3": "12.
|
|
77
|
+
"better-sqlite3": "12.10.0",
|
|
78
78
|
"chai": "6.2.2",
|
|
79
79
|
"chai-as-promised": "8.0.2",
|
|
80
80
|
"esbuild": "0.28.0",
|
|
81
81
|
"jsr": "0.14.3",
|
|
82
|
-
"lodash": "4.18.1",
|
|
83
82
|
"mocha": "11.7.5",
|
|
84
83
|
"mysql2": "3.22.3",
|
|
85
84
|
"pathe": "2.0.3",
|
|
86
85
|
"pg": "8.20.0",
|
|
87
86
|
"pg-cursor": "2.19.0",
|
|
88
|
-
"playwright": "1.
|
|
87
|
+
"playwright": "1.60.0",
|
|
89
88
|
"prettier": "3.8.3",
|
|
90
89
|
"prototype-pollution-vulnerable-lodash.merge-dont-upgrade": "npm:lodash.merge@4.6.1",
|
|
91
|
-
"
|
|
90
|
+
"remeda": "2.34.1",
|
|
91
|
+
"semver": "7.8.0",
|
|
92
92
|
"sinon": "22.0.0",
|
|
93
93
|
"std-env": "4.1.0",
|
|
94
94
|
"tarn": "3.0.2",
|
|
95
95
|
"tedious": "19.2.1",
|
|
96
96
|
"tsd": "0.33.0",
|
|
97
|
-
"tsx": "4.
|
|
97
|
+
"tsx": "4.22.0",
|
|
98
98
|
"typescript": "6.0.3"
|
|
99
99
|
},
|
|
100
100
|
"scripts": {
|
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
"script:copy-interface-doc": "node scripts/copy-interface-documentation.cjs",
|
|
122
122
|
"script:add-deno-type-references": "node scripts/add-deno-type-references.cjs",
|
|
123
123
|
"script:align-versions": "node --experimental-strip-types scripts/align-versions.mts",
|
|
124
|
-
"script:generate-site-examples": "node scripts/generate-site-examples.
|
|
124
|
+
"script:generate-site-examples": "node scripts/generate-site-examples.mts",
|
|
125
125
|
"script:override-tsconfig-target": "node --experimental-strip-types scripts/override-tsconfig-target.mts",
|
|
126
126
|
"script:remove-global-augmentations": "node --experimental-strip-types scripts/remove-global-augmentations.mts",
|
|
127
127
|
"version": "pnpm script:align-versions && git add ."
|