@prisma/client-generator-ts 7.2.0-integration-engines-7-2-0-3-aqrln-zpupkzknszlw-04d61c41ec1a025cabe14093fa3121a5f45040ab.1 → 7.3.0-integration-fix-6-19-0-cloudflare-accelerate-engine.1
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/TSClient/Args.d.ts +5 -5
- package/dist/TSClient/Datasources.d.ts +6 -0
- package/dist/TSClient/GenerateContext.d.ts +2 -5
- package/dist/TSClient/NullTypes.d.ts +1 -1
- package/dist/TSClient/PrismaClient.d.ts +1 -0
- package/dist/TSClient/TSClient.d.ts +1 -1
- package/dist/TSClient/file-generators/BrowserFile.d.ts +1 -1
- package/dist/extractSqliteSources.d.ts +6 -0
- package/dist/extractSqliteSources.test.d.ts +1 -0
- package/dist/generateClient.d.ts +7 -1
- package/dist/index.d.mts +7 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.js +518 -287
- package/dist/index.mjs +503 -266
- package/dist/resolveDatasources.d.ts +1 -0
- package/dist/resolveDatasources.test.d.ts +1 -0
- package/dist/runtime-targets.d.ts +3 -3
- package/dist/serializeDatasources.d.ts +4 -0
- package/dist/serializeDatasources.test.d.ts +1 -0
- package/dist/utils/buildDebugInitialization.d.ts +1 -1
- package/dist/utils/buildInjectableEdgeEnv.d.ts +20 -0
- package/dist/utils/buildInlineDatasources.d.ts +3 -0
- package/dist/utils/buildNFTAnnotations.d.ts +11 -0
- package/dist/utils/buildNFTAnnotations.test.d.ts +1 -0
- package/dist/utils/runtimeImport.d.ts +8 -1
- package/dist/utils/wasm.d.ts +2 -1
- package/package.json +11 -10
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function absolutizeRelativePath(url: string, cwd: string, outputDir: string, absolutePaths?: boolean): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare const supportedInternalRuntimes: readonly ["nodejs", "workerd", "vercel-edge", "deno"];
|
|
2
|
-
declare const supportedPublicRuntimes: readonly ["nodejs", "deno", "bun", "workerd", "cloudflare", "vercel-edge", "edge-light"];
|
|
1
|
+
export declare const supportedInternalRuntimes: readonly ["nodejs", "workerd", "vercel-edge", "deno", "react-native"];
|
|
2
|
+
declare const supportedPublicRuntimes: readonly ["nodejs", "deno", "bun", "workerd", "cloudflare", "vercel-edge", "edge-light", "react-native"];
|
|
3
3
|
/**
|
|
4
4
|
* The user-facing `runtime` attribute for the `prisma-client` generator.
|
|
5
5
|
*/
|
|
@@ -8,5 +8,5 @@ export type RuntimeTarget = (typeof supportedPublicRuntimes)[number];
|
|
|
8
8
|
* The internal representation of the `runtime` attribute for the `prisma-client` generator.
|
|
9
9
|
*/
|
|
10
10
|
export type RuntimeTargetInternal = (typeof supportedInternalRuntimes)[number];
|
|
11
|
-
export declare function parseRuntimeTargetFromUnknown(target: unknown): "nodejs" | "workerd" | "vercel-edge" | "deno";
|
|
11
|
+
export declare function parseRuntimeTargetFromUnknown(target: unknown): "nodejs" | "workerd" | "vercel-edge" | "deno" | "react-native";
|
|
12
12
|
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { DataSource } from '@prisma/generator';
|
|
2
|
+
import type { DatasourceOverwrite } from './extractSqliteSources';
|
|
3
|
+
export declare function serializeDatasources(datasources: DatasourceOverwrite[]): string;
|
|
4
|
+
export declare function datasourceToDatasourceOverwrite(datasource: DataSource): DatasourceOverwrite;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -9,4 +9,4 @@
|
|
|
9
9
|
*
|
|
10
10
|
* @param edge Whether the edge runtime is used
|
|
11
11
|
*/
|
|
12
|
-
export declare function buildDebugInitialization(edge: boolean):
|
|
12
|
+
export declare function buildDebugInitialization(edge: boolean): string;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { DataSource } from '@prisma/generator';
|
|
2
|
+
/**
|
|
3
|
+
* Builds an injectable environment for the data proxy edge client. It's useful
|
|
4
|
+
* because it is designed to run in browser-like environments where things like
|
|
5
|
+
* `fs`, `process.env`, and .env file loading are not available. That means env
|
|
6
|
+
* vars are represented as a global variable or injected at build time. This is
|
|
7
|
+
* the glue code to make this work with our existing env var loading logic. It
|
|
8
|
+
* is the place where we make collect the env vars for the edge client. To
|
|
9
|
+
* understand this better, take a look at the generated code in the edge client.
|
|
10
|
+
* @see {@link declareInjectableEdgeEnv}
|
|
11
|
+
* @param edge
|
|
12
|
+
* @param datasources
|
|
13
|
+
* @returns
|
|
14
|
+
*/
|
|
15
|
+
export declare function buildInjectableEdgeEnv(edge: boolean, datasources: DataSource[]): string;
|
|
16
|
+
/**
|
|
17
|
+
* Builds the expression to get the value of an environment variable at run time.
|
|
18
|
+
* @param envVarName Name of the environment variable
|
|
19
|
+
*/
|
|
20
|
+
export declare function getRuntimeEdgeEnvVar(envVarName: string): string;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { BinaryTarget } from '@prisma/get-platform';
|
|
2
|
+
import { ClientEngineType } from '@prisma/internals';
|
|
3
|
+
/**
|
|
4
|
+
* Build bundler-like annotations so that Vercel automatically uploads the
|
|
5
|
+
* prisma schema as well as the query engine binaries to the deployments.
|
|
6
|
+
* @param engineType the client engine in use
|
|
7
|
+
* @param binaryTargets the targeted binaryTargets
|
|
8
|
+
* @param relativeOutdir outdir relative to root
|
|
9
|
+
* @returns
|
|
10
|
+
*/
|
|
11
|
+
export declare function buildNFTAnnotations(noEngine: boolean, engineType: ClientEngineType, binaryTargets: BinaryTarget[] | undefined, relativeOutdir: string): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
import * as ts from '@prisma/ts-builders';
|
|
2
|
-
type RuntimeExport = keyof typeof import('@prisma/client/runtime/
|
|
2
|
+
type RuntimeExport = keyof typeof import('@prisma/client/runtime/library') & string;
|
|
3
|
+
/**
|
|
4
|
+
* Helps to ensure that when we want to refer to a type or value, imported from runtime Module
|
|
5
|
+
* we are referring to the name, that is actually exported
|
|
6
|
+
*
|
|
7
|
+
* @param name imported name
|
|
8
|
+
*/
|
|
9
|
+
export declare function runtimeImport(name: RuntimeExport): string;
|
|
3
10
|
export declare function runtimeImportedType(name: RuntimeExport): ts.NamedType;
|
|
4
11
|
export {};
|
package/dist/utils/wasm.d.ts
CHANGED
|
@@ -4,13 +4,14 @@ import type { ModuleFormat } from '../module-format';
|
|
|
4
4
|
import type { RuntimeTargetInternal } from '../runtime-targets';
|
|
5
5
|
import type { RuntimeName } from '../TSClient/TSClient';
|
|
6
6
|
export type BuildWasmModuleOptions = {
|
|
7
|
+
component: 'engine' | 'compiler';
|
|
7
8
|
runtimeName: RuntimeName;
|
|
8
9
|
runtimeBase: string;
|
|
9
10
|
target: RuntimeTargetInternal;
|
|
10
11
|
activeProvider: ActiveConnectorType;
|
|
11
12
|
moduleFormat: ModuleFormat;
|
|
12
13
|
};
|
|
13
|
-
export declare function buildGetWasmModule({ runtimeName, runtimeBase, activeProvider, moduleFormat }: BuildWasmModuleOptions): string;
|
|
14
|
+
export declare function buildGetWasmModule({ component, runtimeName, runtimeBase, activeProvider, moduleFormat, }: BuildWasmModuleOptions): string;
|
|
14
15
|
export type BuildWasmFileMapOptions = {
|
|
15
16
|
activeProvider: ActiveConnectorType;
|
|
16
17
|
runtimeName: RuntimeName;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/client-generator-ts",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.3.0-integration-fix-6-19-0-cloudflare-accelerate-engine.1",
|
|
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,8 @@
|
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@antfu/ni": "0.21.12",
|
|
28
|
-
"@prisma/engines-version": "7.
|
|
28
|
+
"@prisma/engines-version": "7.1.1-3.c2990dca591cba766e3b7ef5d9e8a84796e47ab7",
|
|
29
|
+
"ci-info": "4.2.0",
|
|
29
30
|
"fast-glob": "3.3.3",
|
|
30
31
|
"get-tsconfig": "4.10.0",
|
|
31
32
|
"indent-string": "4.0.0",
|
|
@@ -33,14 +34,14 @@
|
|
|
33
34
|
"package-up": "5.0.0",
|
|
34
35
|
"pluralize": "8.0.0",
|
|
35
36
|
"ts-pattern": "5.6.2",
|
|
36
|
-
"@prisma/
|
|
37
|
-
"@prisma/dmmf": "7.
|
|
38
|
-
"@prisma/
|
|
39
|
-
"@prisma/fetch-engine": "7.
|
|
40
|
-
"@prisma/generator": "7.
|
|
41
|
-
"@prisma/get-platform": "7.
|
|
42
|
-
"@prisma/ts-builders": "7.
|
|
43
|
-
"@prisma/internals": "7.
|
|
37
|
+
"@prisma/client-common": "7.3.0-integration-fix-6-19-0-cloudflare-accelerate-engine.1",
|
|
38
|
+
"@prisma/dmmf": "7.3.0-integration-fix-6-19-0-cloudflare-accelerate-engine.1",
|
|
39
|
+
"@prisma/debug": "7.3.0-integration-fix-6-19-0-cloudflare-accelerate-engine.1",
|
|
40
|
+
"@prisma/fetch-engine": "7.3.0-integration-fix-6-19-0-cloudflare-accelerate-engine.1",
|
|
41
|
+
"@prisma/generator": "7.3.0-integration-fix-6-19-0-cloudflare-accelerate-engine.1",
|
|
42
|
+
"@prisma/get-platform": "7.3.0-integration-fix-6-19-0-cloudflare-accelerate-engine.1",
|
|
43
|
+
"@prisma/ts-builders": "7.3.0-integration-fix-6-19-0-cloudflare-accelerate-engine.1",
|
|
44
|
+
"@prisma/internals": "7.3.0-integration-fix-6-19-0-cloudflare-accelerate-engine.1"
|
|
44
45
|
},
|
|
45
46
|
"devDependencies": {
|
|
46
47
|
"@types/pluralize": "0.0.33",
|