kysely 0.30.0-beta.0 → 0.30.0-beta.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 +1 -1
- package/dist/dialect/database-introspector.d.ts +38 -4
- package/dist/dialect/mssql/mssql-introspector.d.ts +2 -2
- package/dist/dialect/mssql/mssql-introspector.js +32 -2
- package/dist/dialect/mysql/mysql-dialect-config.d.ts +31 -6
- package/dist/dialect/mysql/mysql-dialect.d.ts +2 -2
- package/dist/dialect/mysql/mysql-dialect.js +2 -2
- package/dist/dialect/mysql/mysql-driver.js +28 -2
- package/dist/dialect/mysql/mysql-introspector.d.ts +2 -2
- package/dist/dialect/mysql/mysql-introspector.js +34 -11
- package/dist/dialect/postgres/postgres-introspector.d.ts +2 -2
- package/dist/dialect/postgres/postgres-introspector.js +18 -7
- package/dist/dialect/sqlite/sqlite-driver.js +7 -8
- package/dist/dialect/sqlite/sqlite-introspector.js +7 -3
- package/dist/driver/dummy-driver.d.ts +2 -2
- package/dist/driver/dummy-driver.js +2 -2
- package/dist/kysely.d.ts +27 -7
- package/dist/kysely.js +0 -14
- package/dist/migration/file-migration-provider.d.ts +1 -1
- package/dist/migration/file-migration-provider.js +1 -1
- package/dist/migration/migrator.d.ts +48 -9
- package/dist/migration/migrator.js +62 -19
- package/dist/query-builder/delete-query-builder.d.ts +2 -2
- package/dist/query-builder/function-module.d.ts +8 -2
- package/dist/query-builder/join-builder.d.ts +2 -2
- package/dist/query-builder/merge-query-builder.d.ts +9 -1
- package/dist/query-builder/select-query-builder.d.ts +28 -6
- package/dist/query-builder/update-query-builder.d.ts +1 -1
- package/dist/query-creator.d.ts +9 -0
- package/dist/raw-builder/raw-builder.d.ts +5 -0
- package/dist/raw-builder/raw-builder.js +12 -0
- package/dist/readonly/readonly-kysely.d.ts +64 -10
- package/dist/readonly/readonly-query-creator.d.ts +9 -1
- package/dist/schema/create-type-builder.d.ts +1 -1
- package/dist/schema/create-type-builder.js +1 -1
- package/dist/util/abort.js +2 -0
- package/package.json +18 -16
package/dist/query-creator.d.ts
CHANGED
|
@@ -12,8 +12,17 @@ import type { SelectFrom } from './parser/select-from-parser.js';
|
|
|
12
12
|
import type { DeleteFrom } from './parser/delete-from-parser.js';
|
|
13
13
|
import type { UpdateTable } from './parser/update-parser.js';
|
|
14
14
|
import type { MergeInto } from './parser/merge-into-parser.js';
|
|
15
|
+
import type { IsAny } from './util/type-utils.js';
|
|
16
|
+
import type { Insertable, Selectable, Updateable } from './util/column-type.js';
|
|
15
17
|
export declare class QueryCreator<DB> {
|
|
16
18
|
#private;
|
|
19
|
+
protected readonly '~DB': IsAny<DB> extends true ? any : {
|
|
20
|
+
[T in keyof DB]: {
|
|
21
|
+
select: () => Selectable<DB[T]>;
|
|
22
|
+
insert: (row: Insertable<DB[T]>) => void;
|
|
23
|
+
update: (row: Updateable<DB[T]>) => void;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
17
26
|
constructor(props: QueryCreatorProps);
|
|
18
27
|
/**
|
|
19
28
|
* Creates a `select` query builder for the given table or tables.
|
|
@@ -6,6 +6,7 @@ import type { QueryExecutorProvider } from '../query-executor/query-executor-pro
|
|
|
6
6
|
import type { QueryId } from '../util/query-id.js';
|
|
7
7
|
import type { AliasableExpression, AliasedExpression, Expression } from '../expression/expression.js';
|
|
8
8
|
import type { AbortableQueryOptions } from '../util/abort.js';
|
|
9
|
+
import type { StreamOptions } from '../util/streamable.js';
|
|
9
10
|
/**
|
|
10
11
|
* An instance of this class can be used to create raw SQL snippets or queries.
|
|
11
12
|
*
|
|
@@ -181,6 +182,10 @@ export interface RawBuilder<O> extends AliasableExpression<O> {
|
|
|
181
182
|
* ```
|
|
182
183
|
*/
|
|
183
184
|
execute(executorProvider: QueryExecutorProvider, options?: AbortableQueryOptions): Promise<QueryResult<O>>;
|
|
185
|
+
/**
|
|
186
|
+
* Executes the raw query and streams the rows.
|
|
187
|
+
*/
|
|
188
|
+
stream(executorOrProvider: QueryExecutorProvider, options?: StreamOptions | StreamOptions['chunkSize']): AsyncIterableIterator<O>;
|
|
184
189
|
/**
|
|
185
190
|
* Creates the OperationNode that describes how to compile this expression into SQL.
|
|
186
191
|
*
|
|
@@ -42,6 +42,18 @@ class RawBuilderImpl {
|
|
|
42
42
|
const executor = this.#getExecutor(executorProvider);
|
|
43
43
|
return executor.executeQuery(this.#compile(executor), options);
|
|
44
44
|
}
|
|
45
|
+
async *stream(executorProvider, chunkSizeOrOptions) {
|
|
46
|
+
const executor = this.#getExecutor(executorProvider);
|
|
47
|
+
if (typeof chunkSizeOrOptions !== 'object') {
|
|
48
|
+
chunkSizeOrOptions = {
|
|
49
|
+
chunkSize: chunkSizeOrOptions,
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
const stream = executor.stream(this.#compile(executor), chunkSizeOrOptions.chunkSize ?? 100, chunkSizeOrOptions);
|
|
53
|
+
for await (const item of stream) {
|
|
54
|
+
yield* item.rows;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
45
57
|
#getExecutor(executorProvider) {
|
|
46
58
|
const executor = executorProvider !== undefined
|
|
47
59
|
? executorProvider.getExecutor()
|
|
@@ -5,11 +5,11 @@ import type { KyselyPlugin } from '../plugin/kysely-plugin.js';
|
|
|
5
5
|
import type { SelectQueryBuilder } from '../query-builder/select-query-builder.js';
|
|
6
6
|
import type { AbortableOperationOptions, AbortableQueryOptions } from '../util/abort.js';
|
|
7
7
|
import type { KyselyTypeError } from '../util/type-error.js';
|
|
8
|
-
import type { DrainOuterGeneric } from '../util/type-utils.js';
|
|
9
8
|
import type { ReadonlyCompiledQuery } from './readonly-compiled-query.js';
|
|
10
9
|
import type { ReadonlyQueryResult } from './readonly-database-connection.js';
|
|
11
10
|
import type { ReadonlyAccessMode } from './readonly-driver.js';
|
|
12
11
|
import type { ReadonlyQueryCreator } from './readonly-query-creator.js';
|
|
12
|
+
export type { ReadonlyKysely, ReadonlyTransaction, ReadonlyControlledTransaction, };
|
|
13
13
|
/**
|
|
14
14
|
* A helper type that allows you to expose a type-level read-only {@link Kysely} version
|
|
15
15
|
* to your service's consumers.
|
|
@@ -43,7 +43,13 @@ import type { ReadonlyQueryCreator } from './readonly-query-creator.js';
|
|
|
43
43
|
* db.deleteFrom('person') // typescript compiler error!
|
|
44
44
|
* ```
|
|
45
45
|
*/
|
|
46
|
-
|
|
46
|
+
declare class ReadonlyKysely<DB> extends ReadonlyQueryCreator<DB> {
|
|
47
|
+
case: Kysely<DB>['case'];
|
|
48
|
+
destroy: Kysely<DB>['destroy'];
|
|
49
|
+
get dynamic(): Kysely<DB>['dynamic'];
|
|
50
|
+
readonly fn: Kysely<DB>['fn'];
|
|
51
|
+
get introspection(): Kysely<DB>['introspection'];
|
|
52
|
+
get isTransaction(): Kysely<DB>['isTransaction'];
|
|
47
53
|
/**
|
|
48
54
|
* Similar to {@link Kysely.connection} but read-only.
|
|
49
55
|
*/
|
|
@@ -89,11 +95,11 @@ export interface ReadonlyKysely<DB> extends ReadonlyQueryCreator<DB>, Pick<Kysel
|
|
|
89
95
|
*
|
|
90
96
|
* @deprecated use {@link $extendTables} instead.
|
|
91
97
|
*/
|
|
92
|
-
withTables<T extends Record<string, Record<string, any>>>(): ReadonlyKysely<
|
|
98
|
+
withTables<T extends Record<string, Record<string, any>>>(): ReadonlyKysely<DB & T>;
|
|
93
99
|
/**
|
|
94
100
|
* Similar to {@link Kysely.$extendTables} but read-only.
|
|
95
101
|
*/
|
|
96
|
-
$extendTables<T extends Record<string, Record<string, any>>>(): ReadonlyKysely<
|
|
102
|
+
$extendTables<T extends Record<string, Record<string, any>>>(): ReadonlyKysely<DB & T>;
|
|
97
103
|
/**
|
|
98
104
|
* Similar to {@link Kysely.$omitTables} but read-only.
|
|
99
105
|
*/
|
|
@@ -132,7 +138,24 @@ export interface ReadonlyTransactionBuilder<DB> {
|
|
|
132
138
|
/**
|
|
133
139
|
* Similar to {@link Transaction} but read-only.
|
|
134
140
|
*/
|
|
135
|
-
|
|
141
|
+
declare class ReadonlyTransaction<DB> extends ReadonlyKysely<DB> {
|
|
142
|
+
/**
|
|
143
|
+
* @deprecated calling the connection method for a Transaction is not supported
|
|
144
|
+
*/
|
|
145
|
+
connection(): never;
|
|
146
|
+
/**
|
|
147
|
+
* @deprecated calling the destroy method for a Transaction is not supported
|
|
148
|
+
*/
|
|
149
|
+
destroy: Transaction<DB>['destroy'];
|
|
150
|
+
get isTransaction(): true;
|
|
151
|
+
/**
|
|
152
|
+
* @deprecated calling the controlled transaction method for a Transaction is not supported
|
|
153
|
+
*/
|
|
154
|
+
startTransaction(): never;
|
|
155
|
+
/**
|
|
156
|
+
* @deprecated calling the transaction method for a Transaction is not supported
|
|
157
|
+
*/
|
|
158
|
+
transaction(): never;
|
|
136
159
|
/**
|
|
137
160
|
* Similar to {@link Transaction.withoutPlugins} but read-only.
|
|
138
161
|
*/
|
|
@@ -150,19 +173,32 @@ export interface ReadonlyTransaction<DB> extends Pick<ReadonlyKysely<DB>, 'case'
|
|
|
150
173
|
*
|
|
151
174
|
* @deprecated use {@link $extendTables} instead.
|
|
152
175
|
*/
|
|
153
|
-
withTables<T extends Record<string, Record<string, any>>>(): ReadonlyTransaction<
|
|
176
|
+
withTables<T extends Record<string, Record<string, any>>>(): ReadonlyTransaction<DB & T>;
|
|
177
|
+
/**
|
|
178
|
+
* Similar to {@link Kysely.withTables} but read-only.
|
|
179
|
+
*
|
|
180
|
+
* @deprecated use {@link $extendTables} instead.
|
|
181
|
+
*/
|
|
182
|
+
withTables<T extends Record<string, Record<string, any>>>(): ReadonlyKysely<DB & T>;
|
|
183
|
+
withTables<T extends Record<string, Record<string, any>>>(): ReadonlyTransaction<DB & T>;
|
|
154
184
|
/**
|
|
155
185
|
* Similar to {@link Transaction.$extendTables} but read-only.
|
|
156
186
|
*/
|
|
157
|
-
$extendTables<T extends Record<string, Record<string, any>>>(): ReadonlyTransaction<
|
|
187
|
+
$extendTables<T extends Record<string, Record<string, any>>>(): ReadonlyTransaction<DB & T>;
|
|
188
|
+
$extendTables<T extends Record<string, Record<string, any>>>(): ReadonlyKysely<DB & T>;
|
|
189
|
+
$extendTables<T extends Record<string, Record<string, any>>>(): ReadonlyTransaction<DB & T>;
|
|
158
190
|
/**
|
|
159
191
|
* Similar to {@link Transaction.$omitTables} but read-only.
|
|
160
192
|
*/
|
|
161
193
|
$omitTables<T extends keyof DB>(): ReadonlyTransaction<DB extends object ? Omit<DB, T> : DB>;
|
|
194
|
+
$omitTables<T extends keyof DB>(): ReadonlyKysely<DB extends object ? Omit<DB, T> : DB>;
|
|
195
|
+
$omitTables<T extends keyof DB>(): ReadonlyTransaction<DB extends object ? Omit<DB, T> : DB>;
|
|
162
196
|
/**
|
|
163
197
|
* Similar to {@link Transaction.$pickTables} but read-only.
|
|
164
198
|
*/
|
|
165
199
|
$pickTables<T extends keyof DB>(): ReadonlyTransaction<DB extends object ? Pick<DB, T> : DB>;
|
|
200
|
+
$pickTables<T extends keyof DB>(): ReadonlyKysely<DB extends object ? Pick<DB, T> : DB>;
|
|
201
|
+
$pickTables<T extends keyof DB>(): ReadonlyTransaction<DB extends object ? Pick<DB, T> : DB>;
|
|
166
202
|
}
|
|
167
203
|
/**
|
|
168
204
|
* Similar to {@link ControlledTransactionBuilder} but read-only.
|
|
@@ -184,7 +220,11 @@ export interface ReadonlyControlledTransactionBuilder<DB> {
|
|
|
184
220
|
/**
|
|
185
221
|
* Similar to {@link ControlledTransaction} but read-only.
|
|
186
222
|
*/
|
|
187
|
-
|
|
223
|
+
declare class ReadonlyControlledTransaction<DB, S extends string[] = []> extends ReadonlyTransaction<DB> {
|
|
224
|
+
commit: ControlledTransaction<DB, S>['commit'];
|
|
225
|
+
get isCommitted(): ControlledTransaction<DB, S>['isCommitted'];
|
|
226
|
+
get isRolledBack(): ControlledTransaction<DB, S>['isRolledBack'];
|
|
227
|
+
rollback: ControlledTransaction<DB, S>['rollback'];
|
|
188
228
|
/**
|
|
189
229
|
* Similar to {@link ControlledTransaction.releaseSavepoint} but read-only.
|
|
190
230
|
*/
|
|
@@ -214,17 +254,31 @@ export interface ReadonlyControlledTransaction<DB, S extends string[] = []> exte
|
|
|
214
254
|
*
|
|
215
255
|
* @deprecated use {@link $extendTables} instead.
|
|
216
256
|
*/
|
|
217
|
-
withTables<T extends Record<string, Record<string, any>>>(): ReadonlyControlledTransaction<
|
|
257
|
+
withTables<T extends Record<string, Record<string, any>>>(): ReadonlyControlledTransaction<DB & T, S>;
|
|
258
|
+
/**
|
|
259
|
+
* Similar to {@link Transaction.withTables} but read-only.
|
|
260
|
+
*
|
|
261
|
+
* @deprecated use {@link $extendTables} instead.
|
|
262
|
+
*/
|
|
263
|
+
withTables<T extends Record<string, Record<string, any>>>(): ReadonlyKysely<DB & T>;
|
|
264
|
+
withTables<T extends Record<string, Record<string, any>>>(): ReadonlyControlledTransaction<DB & T, S>;
|
|
218
265
|
/**
|
|
219
266
|
* Similar to {@link ControlledTransaction.$extendTables} but read-only.
|
|
220
267
|
*/
|
|
221
|
-
$extendTables<T extends Record<string, Record<string, any>>>(): ReadonlyControlledTransaction<
|
|
268
|
+
$extendTables<T extends Record<string, Record<string, any>>>(): ReadonlyControlledTransaction<DB & T, S>;
|
|
269
|
+
$extendTables<T extends Record<string, Record<string, any>>>(): ReadonlyKysely<DB & T>;
|
|
270
|
+
$extendTables<T extends Record<string, Record<string, any>>>(): ReadonlyControlledTransaction<DB & T, S>;
|
|
222
271
|
/**
|
|
223
272
|
* Similar to {@link ControlledTransaction.$omitTables} but read-only.
|
|
224
273
|
*/
|
|
225
274
|
$omitTables<T extends keyof DB>(): ReadonlyControlledTransaction<DB extends object ? Omit<DB, T> : DB, S>;
|
|
275
|
+
$omitTables<T extends keyof DB>(): ReadonlyKysely<DB extends object ? Omit<DB, T> : DB>;
|
|
276
|
+
$omitTables<T extends keyof DB>(): ReadonlyTransaction<DB extends object ? Omit<DB, T> : DB>;
|
|
277
|
+
$omitTables<T extends keyof DB>(): ReadonlyControlledTransaction<DB extends object ? Omit<DB, T> : DB, S>;
|
|
226
278
|
/**
|
|
227
279
|
* Similar to {@link ControlledTransaction.$pickTables} but read-only.
|
|
228
280
|
*/
|
|
229
281
|
$pickTables<T extends keyof DB>(): ReadonlyControlledTransaction<DB extends object ? Pick<DB, T> : DB, S>;
|
|
282
|
+
$pickTables<T extends keyof DB>(): ReadonlyKysely<DB extends object ? Pick<DB, T> : DB>;
|
|
283
|
+
$pickTables<T extends keyof DB>(): ReadonlyControlledTransaction<DB extends object ? Pick<DB, T> : DB, S>;
|
|
230
284
|
}
|
|
@@ -1,11 +1,19 @@
|
|
|
1
1
|
import type { CTEBuilderCallback } from '../query-builder/cte-builder.js';
|
|
2
2
|
import type { QueryCreator } from '../query-creator.js';
|
|
3
|
+
import type { Selectable } from '../util/column-type.js';
|
|
4
|
+
import type { IsAny } from '../util/type-utils.js';
|
|
3
5
|
import type { KyselyTypeError } from '../util/type-error.js';
|
|
4
6
|
import type { ReadonlyCommonTableExpression, ReadonlyQueryCreatorWithCommonTableExpression, ReadonlyRecursiveCommonTableExpression } from './readonly-with-parser.js';
|
|
7
|
+
export type { ReadonlyQueryCreator };
|
|
5
8
|
/**
|
|
6
9
|
* Similar to {@link QueryCreator} but read-only.
|
|
7
10
|
*/
|
|
8
|
-
|
|
11
|
+
declare class ReadonlyQueryCreator<DB> {
|
|
12
|
+
protected readonly '~DB': IsAny<DB> extends true ? any : {
|
|
13
|
+
[T in keyof DB]: Selectable<DB[T]>;
|
|
14
|
+
};
|
|
15
|
+
selectFrom: QueryCreator<DB>['selectFrom'];
|
|
16
|
+
selectNoFrom: QueryCreator<DB>['selectNoFrom'];
|
|
9
17
|
/**
|
|
10
18
|
* @deprecated not allowed with a read-only Kysely instance.
|
|
11
19
|
*/
|
package/dist/util/abort.js
CHANGED
|
@@ -8,6 +8,7 @@ export function getInflightQueryAbortHandler(abortStrategy = 'ignore query', con
|
|
|
8
8
|
if (abortStrategy === 'cancel query') {
|
|
9
9
|
const handler = connection.cancelQuery;
|
|
10
10
|
if (!handler) {
|
|
11
|
+
beforeThrow();
|
|
11
12
|
throwUnsupportedInflightQueryAbortStrategyError(abortStrategy, connection.killSession ? 'kill session' : undefined);
|
|
12
13
|
}
|
|
13
14
|
return handler.bind(connection);
|
|
@@ -15,6 +16,7 @@ export function getInflightQueryAbortHandler(abortStrategy = 'ignore query', con
|
|
|
15
16
|
if (abortStrategy === 'kill session') {
|
|
16
17
|
const handler = connection.killSession;
|
|
17
18
|
if (!handler) {
|
|
19
|
+
beforeThrow();
|
|
18
20
|
throwUnsupportedInflightQueryAbortStrategyError(abortStrategy, connection.cancelQuery ? 'cancel query' : undefined);
|
|
19
21
|
}
|
|
20
22
|
return handler.bind(connection);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kysely",
|
|
3
|
-
"version": "0.30.0-beta.
|
|
3
|
+
"version": "0.30.0-beta.2",
|
|
4
4
|
"description": "Type safe SQL query builder",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -63,39 +63,40 @@
|
|
|
63
63
|
"devDependencies": {
|
|
64
64
|
"@arethetypeswrong/cli": "0.18.5",
|
|
65
65
|
"@electric-sql/pglite": "0.5.4",
|
|
66
|
-
"@types/better-sqlite3": "
|
|
66
|
+
"@types/better-sqlite3": "9.6.0",
|
|
67
67
|
"@types/chai": "5.2.3",
|
|
68
68
|
"@types/chai-as-promised": "8.0.2",
|
|
69
69
|
"@types/mocha": "10.0.10",
|
|
70
|
-
"@types/node": "26.
|
|
71
|
-
"@types/pg": "8.
|
|
70
|
+
"@types/node": "26.2.0",
|
|
71
|
+
"@types/pg": "8.21.0",
|
|
72
72
|
"@types/pg-cursor": "2.7.2",
|
|
73
73
|
"@types/prototype-pollution-vulnerable-lodash.merge-dont-upgrade": "npm:@types/lodash.merge@4.6.1",
|
|
74
|
-
"@types/semver": "7.
|
|
74
|
+
"@types/semver": "7.8.0",
|
|
75
75
|
"@types/sinon": "22.0.0",
|
|
76
|
-
"better-sqlite3": "
|
|
76
|
+
"better-sqlite3": "13.0.3",
|
|
77
77
|
"chai": "6.2.2",
|
|
78
78
|
"chai-as-promised": "8.0.2",
|
|
79
|
-
"esbuild": "0.28.
|
|
79
|
+
"esbuild": "0.28.2",
|
|
80
80
|
"jsr": "0.14.3",
|
|
81
|
-
"mocha": "11.
|
|
82
|
-
"mysql2": "3.23.
|
|
81
|
+
"mocha": "11.8.0",
|
|
82
|
+
"mysql2": "3.23.3",
|
|
83
83
|
"pathe": "2.0.3",
|
|
84
|
-
"pg": "8.
|
|
85
|
-
"pg-cursor": "2.
|
|
86
|
-
"playwright": "1.
|
|
87
|
-
"prettier": "3.9.
|
|
84
|
+
"pg": "8.23.0",
|
|
85
|
+
"pg-cursor": "2.22.0",
|
|
86
|
+
"playwright": "1.62.1",
|
|
87
|
+
"prettier": "3.9.6",
|
|
88
88
|
"prototype-pollution-vulnerable-lodash.merge-dont-upgrade": "npm:lodash.merge@4.6.1",
|
|
89
89
|
"remeda": "2.39.0",
|
|
90
90
|
"semver": "7.8.5",
|
|
91
|
-
"sinon": "22.
|
|
91
|
+
"sinon": "22.1.0",
|
|
92
92
|
"std-env": "4.2.0",
|
|
93
93
|
"tarn": "3.1.2",
|
|
94
94
|
"tedious": "20.0.0",
|
|
95
95
|
"tsd": "0.33.0",
|
|
96
|
-
"tsx": "4.23.
|
|
96
|
+
"tsx": "4.23.12",
|
|
97
97
|
"typescript": "7.0.2",
|
|
98
|
-
"typescript-6": "npm:typescript@6.0.3"
|
|
98
|
+
"typescript-6": "npm:typescript@6.0.3",
|
|
99
|
+
"vitest": "5.0.0"
|
|
99
100
|
},
|
|
100
101
|
"scripts": {
|
|
101
102
|
"clean": "rm -rf dist & rm -rf test/node/dist & rm -rf test/browser/bundle.js",
|
|
@@ -110,6 +111,7 @@
|
|
|
110
111
|
"test:cloudflare-workers": "pnpm build && pnpm -r test --filter kysely-cloudflare-workers-test",
|
|
111
112
|
"test:deno": "deno run --allow-env --allow-read --allow-net --no-lock test/deno/test.ts",
|
|
112
113
|
"test:typings": "tsd test/typings",
|
|
114
|
+
"test:typings:vitest": "vitest run --config test/typings/vitest.config.ts",
|
|
113
115
|
"test:esmimports": "node scripts/check-esm-imports.cjs",
|
|
114
116
|
"test:esbuild": "esbuild --bundle --platform=node --external:pg-native dist/index.js --outfile=/dev/null",
|
|
115
117
|
"test:exports": "attw --profile esm-only --pack . && node scripts/check-exports.cjs",
|