@prisma/client-generator-ts 6.12.0-dev.4 → 6.12.0-dev.40
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/dist/generateClient.d.ts +3 -1
- package/dist/index.d.mts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +470 -421
- package/dist/index.mjs +486 -437
- package/dist/utils/addPreamble.d.ts +1 -1
- package/dist/utils/{buildGetWasmModule.d.ts → wasm.d.ts} +6 -12
- package/package.json +10 -10
|
@@ -3,4 +3,4 @@ import { FileMap } from '../generateClient';
|
|
|
3
3
|
* To ensure it is clear that this is generated code and shall not be lint and type checked.
|
|
4
4
|
* We still want to typecheck the generated code during our client tests => includeTSNoCheckPreamble = false.
|
|
5
5
|
*/
|
|
6
|
-
export declare function
|
|
6
|
+
export declare function addPreambleToSourceFiles(fileMap: FileMap, includeTSNoCheckPreamble: Boolean): void;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ActiveConnectorType } from '@prisma/generator';
|
|
2
|
+
import type { FileMap } from '../generateClient';
|
|
2
3
|
import { ModuleFormat } from '../module-format';
|
|
3
4
|
import { RuntimeTarget } from '../runtime-targets';
|
|
4
5
|
import { RuntimeName } from '../TSClient/TSClient';
|
|
@@ -10,16 +11,9 @@ export type BuildWasmModuleOptions = {
|
|
|
10
11
|
activeProvider: ActiveConnectorType;
|
|
11
12
|
moduleFormat: ModuleFormat;
|
|
12
13
|
};
|
|
13
|
-
/**
|
|
14
|
-
* This function evaluates to:
|
|
15
|
-
* - `import(name)` for all bundler targets, except Webpack, but including Turbopack.
|
|
16
|
-
* - `__non_webpack_require__(name)` for Webpack targets.
|
|
17
|
-
*
|
|
18
|
-
* This is used to dynamically import a module at runtime, while also excluding it from Webpack's bundle.
|
|
19
|
-
* It allows to mitigate the following issues:
|
|
20
|
-
* - https://github.com/webpack/webpack/issues/19607
|
|
21
|
-
* - https://github.com/prisma/prisma/issues/27049
|
|
22
|
-
* - https://github.com/prisma/prisma/issues/27343
|
|
23
|
-
*/
|
|
24
|
-
export declare function buildDynamicRequireFn(): string;
|
|
25
14
|
export declare function buildGetWasmModule({ component, runtimeName, runtimeBase, target, activeProvider, moduleFormat, }: BuildWasmModuleOptions): string;
|
|
15
|
+
export type BuildWasmFileMapOptions = {
|
|
16
|
+
runtimeName: RuntimeName;
|
|
17
|
+
activeProvider: ActiveConnectorType;
|
|
18
|
+
};
|
|
19
|
+
export declare function buildWasmFileMap({ runtimeName, activeProvider }: BuildWasmFileMapOptions): FileMap;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/client-generator-ts",
|
|
3
|
-
"version": "6.12.0-dev.
|
|
3
|
+
"version": "6.12.0-dev.40",
|
|
4
4
|
"description": "This package is intended for Prisma's internal use",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@antfu/ni": "0.21.12",
|
|
28
|
-
"@prisma/engines-version": "6.
|
|
28
|
+
"@prisma/engines-version": "6.12.0-15.8047c96bbd92db98a2abc7c9323ce77c02c89dbc",
|
|
29
29
|
"ci-info": "4.2.0",
|
|
30
30
|
"fast-glob": "3.3.3",
|
|
31
31
|
"get-tsconfig": "4.10.0",
|
|
@@ -34,14 +34,14 @@
|
|
|
34
34
|
"pkg-up": "3.1.0",
|
|
35
35
|
"pluralize": "8.0.0",
|
|
36
36
|
"ts-pattern": "5.6.2",
|
|
37
|
-
"@prisma/client-common": "6.12.0-dev.
|
|
38
|
-
"@prisma/
|
|
39
|
-
"@prisma/dmmf": "6.12.0-dev.
|
|
40
|
-
"@prisma/
|
|
41
|
-
"@prisma/
|
|
42
|
-
"@prisma/
|
|
43
|
-
"@prisma/
|
|
44
|
-
"@prisma/ts-builders": "6.12.0-dev.
|
|
37
|
+
"@prisma/client-common": "6.12.0-dev.40",
|
|
38
|
+
"@prisma/fetch-engine": "6.12.0-dev.40",
|
|
39
|
+
"@prisma/dmmf": "6.12.0-dev.40",
|
|
40
|
+
"@prisma/debug": "6.12.0-dev.40",
|
|
41
|
+
"@prisma/generator": "6.12.0-dev.40",
|
|
42
|
+
"@prisma/get-platform": "6.12.0-dev.40",
|
|
43
|
+
"@prisma/internals": "6.12.0-dev.40",
|
|
44
|
+
"@prisma/ts-builders": "6.12.0-dev.40"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@types/pluralize": "0.0.33",
|