@prisma/client 6.19.0-integration-next.20 → 6.19.0-integration-next.22
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/generator-build/index.js +3 -36
- package/package.json +28 -28
- package/runtime/client.d.mts +0 -18
- package/runtime/client.d.ts +0 -18
- package/runtime/client.js +22 -25
- package/runtime/client.js.map +4 -4
- package/runtime/client.mjs +22 -25
- package/runtime/client.mjs.map +4 -4
- package/runtime/wasm-compiler-edge.js +19 -22
- package/runtime/wasm-compiler-edge.js.map +4 -4
- package/runtime/wasm-compiler-edge.mjs +19 -22
- package/runtime/wasm-compiler-edge.mjs.map +4 -4
- package/scripts/default-index.js +1 -1
package/generator-build/index.js
CHANGED
|
@@ -7270,7 +7270,7 @@ var import_path5 = __toESM(require("path"));
|
|
|
7270
7270
|
// package.json
|
|
7271
7271
|
var package_default = {
|
|
7272
7272
|
name: "@prisma/client",
|
|
7273
|
-
version: "6.19.0-integration-next.
|
|
7273
|
+
version: "6.19.0-integration-next.22",
|
|
7274
7274
|
description: "Prisma Client is an auto-generated, type-safe and modern JavaScript/TypeScript ORM for Node.js that's tailored to your data. Supports PostgreSQL, CockroachDB, MySQL, MariaDB, SQL Server, SQLite & MongoDB databases.",
|
|
7275
7275
|
keywords: [
|
|
7276
7276
|
"ORM",
|
|
@@ -10773,44 +10773,12 @@ var GenericArgsInfo = class {
|
|
|
10773
10773
|
}
|
|
10774
10774
|
};
|
|
10775
10775
|
|
|
10776
|
-
// ../client-generator-js/src/utils/buildInjectableEdgeEnv.ts
|
|
10777
|
-
function buildInjectableEdgeEnv(edge, datasources) {
|
|
10778
|
-
if (edge === true) {
|
|
10779
|
-
return declareInjectableEdgeEnv(datasources);
|
|
10780
|
-
}
|
|
10781
|
-
return ``;
|
|
10782
|
-
}
|
|
10783
|
-
function declareInjectableEdgeEnv(datasources) {
|
|
10784
|
-
const injectableEdgeEnv = { parsed: {} };
|
|
10785
|
-
const envVarNames = getSelectedEnvVarNames(datasources);
|
|
10786
|
-
for (const envVarName of envVarNames) {
|
|
10787
|
-
injectableEdgeEnv.parsed[envVarName] = getRuntimeEdgeEnvVar(envVarName);
|
|
10788
|
-
}
|
|
10789
|
-
const injectableEdgeEnvJson = JSON.stringify(injectableEdgeEnv, null, 2);
|
|
10790
|
-
const injectableEdgeEnvCode = injectableEdgeEnvJson.replace(/"/g, "");
|
|
10791
|
-
return `
|
|
10792
|
-
config.injectableEdgeEnv = () => (${injectableEdgeEnvCode})`;
|
|
10793
|
-
}
|
|
10794
|
-
function getSelectedEnvVarNames(datasources) {
|
|
10795
|
-
return datasources.reduce((acc, datasource) => {
|
|
10796
|
-
if (datasource.url.fromEnvVar) {
|
|
10797
|
-
return [...acc, datasource.url.fromEnvVar];
|
|
10798
|
-
}
|
|
10799
|
-
return acc;
|
|
10800
|
-
}, []);
|
|
10801
|
-
}
|
|
10802
|
-
function getRuntimeEdgeEnvVar(envVarName) {
|
|
10803
|
-
const cfwEnv = `typeof globalThis !== 'undefined' && globalThis['${envVarName}']`;
|
|
10804
|
-
const nodeOrVercelEnv = `typeof process !== 'undefined' && process.env && process.env.${envVarName}`;
|
|
10805
|
-
return `${cfwEnv} || ${nodeOrVercelEnv} || undefined`;
|
|
10806
|
-
}
|
|
10807
|
-
|
|
10808
10776
|
// ../client-generator-js/src/utils/buildDebugInitialization.ts
|
|
10809
10777
|
function buildDebugInitialization(edge) {
|
|
10810
10778
|
if (!edge) {
|
|
10811
10779
|
return "";
|
|
10812
10780
|
}
|
|
10813
|
-
const debugVar =
|
|
10781
|
+
const debugVar = `typeof globalThis !== 'undefined' && globalThis['DEBUG'] || (typeof process !== 'undefined' && process.env && process.env.DEBUG) || undefined`;
|
|
10814
10782
|
return `if (${debugVar}) {
|
|
10815
10783
|
Debug.enable(${debugVar})
|
|
10816
10784
|
}
|
|
@@ -12176,7 +12144,6 @@ ${buildDirname(edge, relativeOutdir)}
|
|
|
12176
12144
|
${buildRuntimeDataModel(this.dmmf.datamodel, runtimeNameJs)}
|
|
12177
12145
|
${buildQueryEngineWasmModule(runtimeNameJs)}
|
|
12178
12146
|
${buildQueryCompilerWasmModule(wasm, runtimeNameJs)}
|
|
12179
|
-
${buildInjectableEdgeEnv(edge, datasources)}
|
|
12180
12147
|
${buildDebugInitialization(edge)}
|
|
12181
12148
|
const PrismaClient = getPrismaClient(config)
|
|
12182
12149
|
exports.PrismaClient = PrismaClient
|
|
@@ -13158,7 +13125,7 @@ var import_node_path6 = __toESM(require("node:path"));
|
|
|
13158
13125
|
var import_engines_version = __toESM(require_engines_version());
|
|
13159
13126
|
|
|
13160
13127
|
// ../client-generator-js/package.json
|
|
13161
|
-
var version = "6.19.0-integration-next.
|
|
13128
|
+
var version = "6.19.0-integration-next.22";
|
|
13162
13129
|
|
|
13163
13130
|
// ../client-generator-js/src/resolvePrismaClient.ts
|
|
13164
13131
|
var import_promises6 = __toESM(require("node:fs/promises"));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/client",
|
|
3
|
-
"version": "6.19.0-integration-next.
|
|
3
|
+
"version": "6.19.0-integration-next.22",
|
|
4
4
|
"description": "Prisma Client is an auto-generated, type-safe and modern JavaScript/TypeScript ORM for Node.js that's tailored to your data. Supports PostgreSQL, CockroachDB, MySQL, MariaDB, SQL Server, SQLite & MongoDB databases.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ORM",
|
|
@@ -219,35 +219,35 @@
|
|
|
219
219
|
"typescript": "5.4.5",
|
|
220
220
|
"undici": "7.4.0",
|
|
221
221
|
"zx": "8.4.1",
|
|
222
|
-
"@prisma/adapter-
|
|
223
|
-
"@prisma/adapter-
|
|
224
|
-
"@prisma/adapter-libsql": "6.19.0-integration-next.
|
|
225
|
-
"@prisma/adapter-
|
|
226
|
-
"@prisma/adapter-
|
|
227
|
-
"@prisma/adapter-neon": "6.19.0-integration-next.
|
|
228
|
-
"@prisma/adapter-pg": "6.19.0-integration-next.
|
|
229
|
-
"@prisma/adapter-planetscale": "6.19.0-integration-next.
|
|
230
|
-
"@prisma/client-common": "6.19.0-integration-next.
|
|
231
|
-
"@prisma/client-generator-js": "6.19.0-integration-next.
|
|
232
|
-
"@prisma/client-engine-runtime": "6.19.0-integration-next.
|
|
233
|
-
"@prisma/client-generator-ts": "6.19.0-integration-next.
|
|
234
|
-
"@prisma/
|
|
235
|
-
"@prisma/
|
|
236
|
-
"@prisma/
|
|
237
|
-
"@prisma/driver-adapter-utils": "6.19.0-integration-next.
|
|
238
|
-
"@prisma/engines": "6.19.0-integration-next.
|
|
239
|
-
"@prisma/
|
|
240
|
-
"@prisma/generator
|
|
241
|
-
"@prisma/
|
|
242
|
-
"@prisma/get-platform": "6.19.0-integration-next.
|
|
243
|
-
"@prisma/
|
|
244
|
-
"@prisma/
|
|
245
|
-
"@prisma/
|
|
246
|
-
"@prisma/
|
|
247
|
-
"@prisma/ts-builders": "6.19.0-integration-next.
|
|
222
|
+
"@prisma/adapter-d1": "6.19.0-integration-next.22",
|
|
223
|
+
"@prisma/adapter-better-sqlite3": "6.19.0-integration-next.22",
|
|
224
|
+
"@prisma/adapter-libsql": "6.19.0-integration-next.22",
|
|
225
|
+
"@prisma/adapter-mssql": "6.19.0-integration-next.22",
|
|
226
|
+
"@prisma/adapter-mariadb": "6.19.0-integration-next.22",
|
|
227
|
+
"@prisma/adapter-neon": "6.19.0-integration-next.22",
|
|
228
|
+
"@prisma/adapter-pg": "6.19.0-integration-next.22",
|
|
229
|
+
"@prisma/adapter-planetscale": "6.19.0-integration-next.22",
|
|
230
|
+
"@prisma/client-common": "6.19.0-integration-next.22",
|
|
231
|
+
"@prisma/client-generator-js": "6.19.0-integration-next.22",
|
|
232
|
+
"@prisma/client-engine-runtime": "6.19.0-integration-next.22",
|
|
233
|
+
"@prisma/client-generator-ts": "6.19.0-integration-next.22",
|
|
234
|
+
"@prisma/debug": "6.19.0-integration-next.22",
|
|
235
|
+
"@prisma/dmmf": "6.19.0-integration-next.22",
|
|
236
|
+
"@prisma/config": "6.19.0-integration-next.22",
|
|
237
|
+
"@prisma/driver-adapter-utils": "6.19.0-integration-next.22",
|
|
238
|
+
"@prisma/engines": "6.19.0-integration-next.22",
|
|
239
|
+
"@prisma/fetch-engine": "6.19.0-integration-next.22",
|
|
240
|
+
"@prisma/generator": "6.19.0-integration-next.22",
|
|
241
|
+
"@prisma/generator-helper": "6.19.0-integration-next.22",
|
|
242
|
+
"@prisma/get-platform": "6.19.0-integration-next.22",
|
|
243
|
+
"@prisma/internals": "6.19.0-integration-next.22",
|
|
244
|
+
"@prisma/migrate": "6.19.0-integration-next.22",
|
|
245
|
+
"@prisma/query-plan-executor": "6.19.0-integration-next.22",
|
|
246
|
+
"@prisma/instrumentation": "6.19.0-integration-next.22",
|
|
247
|
+
"@prisma/ts-builders": "6.19.0-integration-next.22"
|
|
248
248
|
},
|
|
249
249
|
"dependencies": {
|
|
250
|
-
"@prisma/client-runtime-utils": "6.19.0-integration-next.
|
|
250
|
+
"@prisma/client-runtime-utils": "6.19.0-integration-next.22"
|
|
251
251
|
},
|
|
252
252
|
"peerDependencies": {
|
|
253
253
|
"prisma": "*",
|
package/runtime/client.d.mts
CHANGED
|
@@ -410,14 +410,6 @@ declare type DataRule = {
|
|
|
410
410
|
type: 'never';
|
|
411
411
|
};
|
|
412
412
|
|
|
413
|
-
declare type Datasource = {
|
|
414
|
-
url?: string;
|
|
415
|
-
};
|
|
416
|
-
|
|
417
|
-
declare type Datasources = {
|
|
418
|
-
[name in string]: Datasource;
|
|
419
|
-
};
|
|
420
|
-
|
|
421
413
|
export { DbNull }
|
|
422
414
|
|
|
423
415
|
export declare const Debug: typeof debugCreate & {
|
|
@@ -780,13 +772,8 @@ declare interface EngineConfig {
|
|
|
780
772
|
cwd: string;
|
|
781
773
|
dirname: string;
|
|
782
774
|
enableDebugLogs?: boolean;
|
|
783
|
-
allowTriggerPanic?: boolean;
|
|
784
775
|
prismaPath?: string;
|
|
785
776
|
generator?: GeneratorConfig;
|
|
786
|
-
/**
|
|
787
|
-
* @remarks this field is used internally by Policy, do not rename or remove
|
|
788
|
-
*/
|
|
789
|
-
overrideDatasources: Datasources;
|
|
790
777
|
showColors?: boolean;
|
|
791
778
|
logQueries?: boolean;
|
|
792
779
|
logLevel?: 'info' | 'warn';
|
|
@@ -2225,10 +2212,6 @@ export declare type PrismaClientOptions = {
|
|
|
2225
2212
|
* Prisma Accelerate URL allowing the client to connect through Accelerate instead of a direct database.
|
|
2226
2213
|
*/
|
|
2227
2214
|
accelerateUrl?: string;
|
|
2228
|
-
/**
|
|
2229
|
-
* Overwrites the datasource url from your schema.prisma file
|
|
2230
|
-
*/
|
|
2231
|
-
datasources?: Datasources;
|
|
2232
2215
|
/**
|
|
2233
2216
|
* @default "colorless"
|
|
2234
2217
|
*/
|
|
@@ -2266,7 +2249,6 @@ export declare type PrismaClientOptions = {
|
|
|
2266
2249
|
cwd?: string;
|
|
2267
2250
|
binaryPath?: string;
|
|
2268
2251
|
endpoint?: string;
|
|
2269
|
-
allowTriggerPanic?: boolean;
|
|
2270
2252
|
};
|
|
2271
2253
|
/** This can be used for testing purposes */
|
|
2272
2254
|
configOverride?: (config: GetPrismaClientConfig) => GetPrismaClientConfig;
|
package/runtime/client.d.ts
CHANGED
|
@@ -410,14 +410,6 @@ declare type DataRule = {
|
|
|
410
410
|
type: 'never';
|
|
411
411
|
};
|
|
412
412
|
|
|
413
|
-
declare type Datasource = {
|
|
414
|
-
url?: string;
|
|
415
|
-
};
|
|
416
|
-
|
|
417
|
-
declare type Datasources = {
|
|
418
|
-
[name in string]: Datasource;
|
|
419
|
-
};
|
|
420
|
-
|
|
421
413
|
export { DbNull }
|
|
422
414
|
|
|
423
415
|
export declare const Debug: typeof debugCreate & {
|
|
@@ -780,13 +772,8 @@ declare interface EngineConfig {
|
|
|
780
772
|
cwd: string;
|
|
781
773
|
dirname: string;
|
|
782
774
|
enableDebugLogs?: boolean;
|
|
783
|
-
allowTriggerPanic?: boolean;
|
|
784
775
|
prismaPath?: string;
|
|
785
776
|
generator?: GeneratorConfig;
|
|
786
|
-
/**
|
|
787
|
-
* @remarks this field is used internally by Policy, do not rename or remove
|
|
788
|
-
*/
|
|
789
|
-
overrideDatasources: Datasources;
|
|
790
777
|
showColors?: boolean;
|
|
791
778
|
logQueries?: boolean;
|
|
792
779
|
logLevel?: 'info' | 'warn';
|
|
@@ -2225,10 +2212,6 @@ export declare type PrismaClientOptions = {
|
|
|
2225
2212
|
* Prisma Accelerate URL allowing the client to connect through Accelerate instead of a direct database.
|
|
2226
2213
|
*/
|
|
2227
2214
|
accelerateUrl?: string;
|
|
2228
|
-
/**
|
|
2229
|
-
* Overwrites the datasource url from your schema.prisma file
|
|
2230
|
-
*/
|
|
2231
|
-
datasources?: Datasources;
|
|
2232
2215
|
/**
|
|
2233
2216
|
* @default "colorless"
|
|
2234
2217
|
*/
|
|
@@ -2266,7 +2249,6 @@ export declare type PrismaClientOptions = {
|
|
|
2266
2249
|
cwd?: string;
|
|
2267
2250
|
binaryPath?: string;
|
|
2268
2251
|
endpoint?: string;
|
|
2269
|
-
allowTriggerPanic?: boolean;
|
|
2270
2252
|
};
|
|
2271
2253
|
/** This can be used for testing purposes */
|
|
2272
2254
|
configOverride?: (config: GetPrismaClientConfig) => GetPrismaClientConfig;
|