@prisma/client-generator-js 7.1.0-dev.3 → 7.1.0-dev.30
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/index.js +13 -13
- package/dist/index.mjs +13 -13
- package/package.json +10 -10
package/dist/index.js
CHANGED
|
@@ -2405,7 +2405,7 @@ var package_default = {
|
|
|
2405
2405
|
},
|
|
2406
2406
|
license: "Apache-2.0",
|
|
2407
2407
|
engines: {
|
|
2408
|
-
node: "^20.19 || ^22.12 ||
|
|
2408
|
+
node: "^20.19 || ^22.12 || >=24.0"
|
|
2409
2409
|
},
|
|
2410
2410
|
homepage: "https://www.prisma.io",
|
|
2411
2411
|
repository: {
|
|
@@ -2483,7 +2483,7 @@ var package_default = {
|
|
|
2483
2483
|
"@prisma/dmmf": "workspace:*",
|
|
2484
2484
|
"@prisma/driver-adapter-utils": "workspace:*",
|
|
2485
2485
|
"@prisma/engines": "workspace:*",
|
|
2486
|
-
"@prisma/engines-version": "
|
|
2486
|
+
"@prisma/engines-version": "7.1.0-5.ab17e348034e9823a063101c707b39f4ba1e6dd4",
|
|
2487
2487
|
"@prisma/fetch-engine": "workspace:*",
|
|
2488
2488
|
"@prisma/generator": "workspace:*",
|
|
2489
2489
|
"@prisma/generator-helper": "workspace:*",
|
|
@@ -2491,7 +2491,7 @@ var package_default = {
|
|
|
2491
2491
|
"@prisma/instrumentation": "workspace:*",
|
|
2492
2492
|
"@prisma/internals": "workspace:*",
|
|
2493
2493
|
"@prisma/migrate": "workspace:*",
|
|
2494
|
-
"@prisma/query-compiler-wasm": "
|
|
2494
|
+
"@prisma/query-compiler-wasm": "7.1.0-5.ab17e348034e9823a063101c707b39f4ba1e6dd4",
|
|
2495
2495
|
"@prisma/query-plan-executor": "workspace:*",
|
|
2496
2496
|
"@prisma/ts-builders": "workspace:*",
|
|
2497
2497
|
"@snaplet/copycat": "6.0.0",
|
|
@@ -5434,7 +5434,7 @@ function queryRawDefinition(context) {
|
|
|
5434
5434
|
* const result = await prisma.$queryRaw\`SELECT * FROM User WHERE id = \${1} OR email = \${'user@email.com'};\`
|
|
5435
5435
|
* \`\`\`
|
|
5436
5436
|
*
|
|
5437
|
-
* Read more in our [docs](https://
|
|
5437
|
+
* Read more in our [docs](https://pris.ly/d/raw-queries).
|
|
5438
5438
|
*/
|
|
5439
5439
|
$queryRaw<T = unknown>(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise<T>;
|
|
5440
5440
|
|
|
@@ -5446,7 +5446,7 @@ function queryRawDefinition(context) {
|
|
|
5446
5446
|
* const result = await prisma.$queryRawUnsafe('SELECT * FROM User WHERE id = $1 OR email = $2;', 1, 'user@email.com')
|
|
5447
5447
|
* \`\`\`
|
|
5448
5448
|
*
|
|
5449
|
-
* Read more in our [docs](https://
|
|
5449
|
+
* Read more in our [docs](https://pris.ly/d/raw-queries).
|
|
5450
5450
|
*/
|
|
5451
5451
|
$queryRawUnsafe<T = unknown>(query: string, ...values: any[]): Prisma.PrismaPromise<T>;`;
|
|
5452
5452
|
}
|
|
@@ -5462,7 +5462,7 @@ function executeRawDefinition(context) {
|
|
|
5462
5462
|
* const result = await prisma.$executeRaw\`UPDATE User SET cool = \${true} WHERE email = \${'user@email.com'};\`
|
|
5463
5463
|
* \`\`\`
|
|
5464
5464
|
*
|
|
5465
|
-
* Read more in our [docs](https://
|
|
5465
|
+
* Read more in our [docs](https://pris.ly/d/raw-queries).
|
|
5466
5466
|
*/
|
|
5467
5467
|
$executeRaw<T = unknown>(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise<number>;
|
|
5468
5468
|
|
|
@@ -5474,7 +5474,7 @@ function executeRawDefinition(context) {
|
|
|
5474
5474
|
* const result = await prisma.$executeRawUnsafe('UPDATE User SET cool = $1 WHERE email = $2 ;', true, 'user@email.com')
|
|
5475
5475
|
* \`\`\`
|
|
5476
5476
|
*
|
|
5477
|
-
* Read more in our [docs](https://
|
|
5477
|
+
* Read more in our [docs](https://pris.ly/d/raw-queries).
|
|
5478
5478
|
*/
|
|
5479
5479
|
$executeRawUnsafe<T = unknown>(query: string, ...values: any[]): Prisma.PrismaPromise<number>;`;
|
|
5480
5480
|
}
|
|
@@ -5519,7 +5519,7 @@ function runCommandRawDefinition(context) {
|
|
|
5519
5519
|
})
|
|
5520
5520
|
\`\`\`
|
|
5521
5521
|
|
|
5522
|
-
Read more in our [docs](https://
|
|
5522
|
+
Read more in our [docs](https://pris.ly/d/raw-queries).
|
|
5523
5523
|
`);
|
|
5524
5524
|
return ts11.stringify(method3, { indentLevel: 1, newLine: "leading" });
|
|
5525
5525
|
}
|
|
@@ -5554,7 +5554,7 @@ var PrismaClientClass = class {
|
|
|
5554
5554
|
* \`\`\`
|
|
5555
5555
|
*
|
|
5556
5556
|
*
|
|
5557
|
-
* Read more in our [docs](https://
|
|
5557
|
+
* Read more in our [docs](https://pris.ly/d/client).
|
|
5558
5558
|
*/`;
|
|
5559
5559
|
}
|
|
5560
5560
|
toTSWithoutNamespace() {
|
|
@@ -5712,7 +5712,7 @@ export type TransactionClient = Omit<Prisma.DefaultPrismaClient, runtime.ITXClie
|
|
|
5712
5712
|
{ emit: 'stdout', level: 'error' }
|
|
5713
5713
|
]
|
|
5714
5714
|
\`\`\`
|
|
5715
|
-
Read more in our [docs](https://
|
|
5715
|
+
Read more in our [docs](https://pris.ly/d/logging).
|
|
5716
5716
|
`)
|
|
5717
5717
|
);
|
|
5718
5718
|
const transactionOptions = ts11.objectType().add(ts11.property("maxWait", ts11.numberType).optional()).add(ts11.property("timeout", ts11.numberType).optional());
|
|
@@ -6570,7 +6570,7 @@ To learn more about how to rename models, check out https://pris.ly/d/naming-mod
|
|
|
6570
6570
|
}
|
|
6571
6571
|
const schemaTargetPath = import_path.default.join(outputDir, "schema.prisma");
|
|
6572
6572
|
await import_promises.default.writeFile(schemaTargetPath, datamodel, { encoding: "utf-8" });
|
|
6573
|
-
if (isWasmEngineSupported(provider)
|
|
6573
|
+
if (isWasmEngineSupported(provider)) {
|
|
6574
6574
|
const suffix = provider === "postgres" ? "postgresql" : provider;
|
|
6575
6575
|
const filename = "query_compiler_bg";
|
|
6576
6576
|
const wasmJsBundlePath = import_path.default.join(runtimeSourcePath, `${filename}.${suffix}.wasm-base64.js`);
|
|
@@ -6602,7 +6602,7 @@ function writeFileMap(outputDir, fileMap) {
|
|
|
6602
6602
|
);
|
|
6603
6603
|
}
|
|
6604
6604
|
function isWasmEngineSupported(provider) {
|
|
6605
|
-
return provider === "postgresql" || provider === "postgres" || provider === "mysql" || provider === "sqlite" || provider === "sqlserver";
|
|
6605
|
+
return provider === "postgresql" || provider === "postgres" || provider === "cockroachdb" || provider === "mysql" || provider === "sqlite" || provider === "sqlserver";
|
|
6606
6606
|
}
|
|
6607
6607
|
function validateDmmfAgainstDenylists(prismaClientDmmf) {
|
|
6608
6608
|
const errorArray = [];
|
|
@@ -6787,7 +6787,7 @@ var import_engines_version = require("@prisma/engines-version");
|
|
|
6787
6787
|
var import_internals9 = require("@prisma/internals");
|
|
6788
6788
|
|
|
6789
6789
|
// package.json
|
|
6790
|
-
var version = "7.1.0-dev.
|
|
6790
|
+
var version = "7.1.0-dev.30";
|
|
6791
6791
|
|
|
6792
6792
|
// src/resolvePrismaClient.ts
|
|
6793
6793
|
var import_promises2 = __toESM(require("node:fs/promises"));
|
package/dist/index.mjs
CHANGED
|
@@ -2394,7 +2394,7 @@ var package_default = {
|
|
|
2394
2394
|
},
|
|
2395
2395
|
license: "Apache-2.0",
|
|
2396
2396
|
engines: {
|
|
2397
|
-
node: "^20.19 || ^22.12 ||
|
|
2397
|
+
node: "^20.19 || ^22.12 || >=24.0"
|
|
2398
2398
|
},
|
|
2399
2399
|
homepage: "https://www.prisma.io",
|
|
2400
2400
|
repository: {
|
|
@@ -2472,7 +2472,7 @@ var package_default = {
|
|
|
2472
2472
|
"@prisma/dmmf": "workspace:*",
|
|
2473
2473
|
"@prisma/driver-adapter-utils": "workspace:*",
|
|
2474
2474
|
"@prisma/engines": "workspace:*",
|
|
2475
|
-
"@prisma/engines-version": "
|
|
2475
|
+
"@prisma/engines-version": "7.1.0-5.ab17e348034e9823a063101c707b39f4ba1e6dd4",
|
|
2476
2476
|
"@prisma/fetch-engine": "workspace:*",
|
|
2477
2477
|
"@prisma/generator": "workspace:*",
|
|
2478
2478
|
"@prisma/generator-helper": "workspace:*",
|
|
@@ -2480,7 +2480,7 @@ var package_default = {
|
|
|
2480
2480
|
"@prisma/instrumentation": "workspace:*",
|
|
2481
2481
|
"@prisma/internals": "workspace:*",
|
|
2482
2482
|
"@prisma/migrate": "workspace:*",
|
|
2483
|
-
"@prisma/query-compiler-wasm": "
|
|
2483
|
+
"@prisma/query-compiler-wasm": "7.1.0-5.ab17e348034e9823a063101c707b39f4ba1e6dd4",
|
|
2484
2484
|
"@prisma/query-plan-executor": "workspace:*",
|
|
2485
2485
|
"@prisma/ts-builders": "workspace:*",
|
|
2486
2486
|
"@snaplet/copycat": "6.0.0",
|
|
@@ -5426,7 +5426,7 @@ function queryRawDefinition(context) {
|
|
|
5426
5426
|
* const result = await prisma.$queryRaw\`SELECT * FROM User WHERE id = \${1} OR email = \${'user@email.com'};\`
|
|
5427
5427
|
* \`\`\`
|
|
5428
5428
|
*
|
|
5429
|
-
* Read more in our [docs](https://
|
|
5429
|
+
* Read more in our [docs](https://pris.ly/d/raw-queries).
|
|
5430
5430
|
*/
|
|
5431
5431
|
$queryRaw<T = unknown>(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise<T>;
|
|
5432
5432
|
|
|
@@ -5438,7 +5438,7 @@ function queryRawDefinition(context) {
|
|
|
5438
5438
|
* const result = await prisma.$queryRawUnsafe('SELECT * FROM User WHERE id = $1 OR email = $2;', 1, 'user@email.com')
|
|
5439
5439
|
* \`\`\`
|
|
5440
5440
|
*
|
|
5441
|
-
* Read more in our [docs](https://
|
|
5441
|
+
* Read more in our [docs](https://pris.ly/d/raw-queries).
|
|
5442
5442
|
*/
|
|
5443
5443
|
$queryRawUnsafe<T = unknown>(query: string, ...values: any[]): Prisma.PrismaPromise<T>;`;
|
|
5444
5444
|
}
|
|
@@ -5454,7 +5454,7 @@ function executeRawDefinition(context) {
|
|
|
5454
5454
|
* const result = await prisma.$executeRaw\`UPDATE User SET cool = \${true} WHERE email = \${'user@email.com'};\`
|
|
5455
5455
|
* \`\`\`
|
|
5456
5456
|
*
|
|
5457
|
-
* Read more in our [docs](https://
|
|
5457
|
+
* Read more in our [docs](https://pris.ly/d/raw-queries).
|
|
5458
5458
|
*/
|
|
5459
5459
|
$executeRaw<T = unknown>(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise<number>;
|
|
5460
5460
|
|
|
@@ -5466,7 +5466,7 @@ function executeRawDefinition(context) {
|
|
|
5466
5466
|
* const result = await prisma.$executeRawUnsafe('UPDATE User SET cool = $1 WHERE email = $2 ;', true, 'user@email.com')
|
|
5467
5467
|
* \`\`\`
|
|
5468
5468
|
*
|
|
5469
|
-
* Read more in our [docs](https://
|
|
5469
|
+
* Read more in our [docs](https://pris.ly/d/raw-queries).
|
|
5470
5470
|
*/
|
|
5471
5471
|
$executeRawUnsafe<T = unknown>(query: string, ...values: any[]): Prisma.PrismaPromise<number>;`;
|
|
5472
5472
|
}
|
|
@@ -5511,7 +5511,7 @@ function runCommandRawDefinition(context) {
|
|
|
5511
5511
|
})
|
|
5512
5512
|
\`\`\`
|
|
5513
5513
|
|
|
5514
|
-
Read more in our [docs](https://
|
|
5514
|
+
Read more in our [docs](https://pris.ly/d/raw-queries).
|
|
5515
5515
|
`);
|
|
5516
5516
|
return ts11.stringify(method3, { indentLevel: 1, newLine: "leading" });
|
|
5517
5517
|
}
|
|
@@ -5546,7 +5546,7 @@ var PrismaClientClass = class {
|
|
|
5546
5546
|
* \`\`\`
|
|
5547
5547
|
*
|
|
5548
5548
|
*
|
|
5549
|
-
* Read more in our [docs](https://
|
|
5549
|
+
* Read more in our [docs](https://pris.ly/d/client).
|
|
5550
5550
|
*/`;
|
|
5551
5551
|
}
|
|
5552
5552
|
toTSWithoutNamespace() {
|
|
@@ -5704,7 +5704,7 @@ export type TransactionClient = Omit<Prisma.DefaultPrismaClient, runtime.ITXClie
|
|
|
5704
5704
|
{ emit: 'stdout', level: 'error' }
|
|
5705
5705
|
]
|
|
5706
5706
|
\`\`\`
|
|
5707
|
-
Read more in our [docs](https://
|
|
5707
|
+
Read more in our [docs](https://pris.ly/d/logging).
|
|
5708
5708
|
`)
|
|
5709
5709
|
);
|
|
5710
5710
|
const transactionOptions = ts11.objectType().add(ts11.property("maxWait", ts11.numberType).optional()).add(ts11.property("timeout", ts11.numberType).optional());
|
|
@@ -6562,7 +6562,7 @@ To learn more about how to rename models, check out https://pris.ly/d/naming-mod
|
|
|
6562
6562
|
}
|
|
6563
6563
|
const schemaTargetPath = path.join(outputDir, "schema.prisma");
|
|
6564
6564
|
await fs.writeFile(schemaTargetPath, datamodel, { encoding: "utf-8" });
|
|
6565
|
-
if (isWasmEngineSupported(provider)
|
|
6565
|
+
if (isWasmEngineSupported(provider)) {
|
|
6566
6566
|
const suffix = provider === "postgres" ? "postgresql" : provider;
|
|
6567
6567
|
const filename = "query_compiler_bg";
|
|
6568
6568
|
const wasmJsBundlePath = path.join(runtimeSourcePath, `${filename}.${suffix}.wasm-base64.js`);
|
|
@@ -6594,7 +6594,7 @@ function writeFileMap(outputDir, fileMap) {
|
|
|
6594
6594
|
);
|
|
6595
6595
|
}
|
|
6596
6596
|
function isWasmEngineSupported(provider) {
|
|
6597
|
-
return provider === "postgresql" || provider === "postgres" || provider === "mysql" || provider === "sqlite" || provider === "sqlserver";
|
|
6597
|
+
return provider === "postgresql" || provider === "postgres" || provider === "cockroachdb" || provider === "mysql" || provider === "sqlite" || provider === "sqlserver";
|
|
6598
6598
|
}
|
|
6599
6599
|
function validateDmmfAgainstDenylists(prismaClientDmmf) {
|
|
6600
6600
|
const errorArray = [];
|
|
@@ -6779,7 +6779,7 @@ import { enginesVersion } from "@prisma/engines-version";
|
|
|
6779
6779
|
import { parseEnvValue } from "@prisma/internals";
|
|
6780
6780
|
|
|
6781
6781
|
// package.json
|
|
6782
|
-
var version = "7.1.0-dev.
|
|
6782
|
+
var version = "7.1.0-dev.30";
|
|
6783
6783
|
|
|
6784
6784
|
// src/resolvePrismaClient.ts
|
|
6785
6785
|
import fs2 from "node:fs/promises";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/client-generator-js",
|
|
3
|
-
"version": "7.1.0-dev.
|
|
3
|
+
"version": "7.1.0-dev.30",
|
|
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,21 +25,21 @@
|
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@antfu/ni": "0.21.12",
|
|
28
|
-
"@prisma/engines-version": "
|
|
28
|
+
"@prisma/engines-version": "7.1.0-5.ab17e348034e9823a063101c707b39f4ba1e6dd4",
|
|
29
29
|
"env-paths": "2.2.1",
|
|
30
30
|
"indent-string": "4.0.0",
|
|
31
31
|
"klona": "2.0.6",
|
|
32
32
|
"package-up": "5.0.0",
|
|
33
33
|
"pluralize": "8.0.0",
|
|
34
34
|
"ts-pattern": "5.6.2",
|
|
35
|
-
"@prisma/client-common": "7.1.0-dev.
|
|
36
|
-
"@prisma/dmmf": "7.1.0-dev.
|
|
37
|
-
"@prisma/
|
|
38
|
-
"@prisma/
|
|
39
|
-
"@prisma/
|
|
40
|
-
"@prisma/
|
|
41
|
-
"@prisma/
|
|
42
|
-
"@prisma/
|
|
35
|
+
"@prisma/client-common": "7.1.0-dev.30",
|
|
36
|
+
"@prisma/dmmf": "7.1.0-dev.30",
|
|
37
|
+
"@prisma/fetch-engine": "7.1.0-dev.30",
|
|
38
|
+
"@prisma/generator": "7.1.0-dev.30",
|
|
39
|
+
"@prisma/debug": "7.1.0-dev.30",
|
|
40
|
+
"@prisma/get-platform": "7.1.0-dev.30",
|
|
41
|
+
"@prisma/internals": "7.1.0-dev.30",
|
|
42
|
+
"@prisma/ts-builders": "7.1.0-dev.30"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@types/pluralize": "0.0.33",
|