@prisma/client-generator-js 7.4.0-dev.21 → 7.4.0-dev.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/dist/TSClient/TSClient.d.ts +1 -0
- package/dist/index.js +13 -1
- package/dist/index.mjs +13 -1
- package/package.json +10 -9
|
@@ -23,6 +23,7 @@ export declare class TSClient implements Generable {
|
|
|
23
23
|
protected readonly dmmf: DMMFHelper;
|
|
24
24
|
protected readonly genericsInfo: GenericArgsInfo;
|
|
25
25
|
constructor(options: TSClientOptions);
|
|
26
|
+
private buildParamGraphConfig;
|
|
26
27
|
toJS(): string;
|
|
27
28
|
toTS(): string;
|
|
28
29
|
toBrowserJS(): string;
|
package/dist/index.js
CHANGED
|
@@ -2494,6 +2494,8 @@ var package_default = {
|
|
|
2494
2494
|
"@prisma/json-protocol": "workspace:*",
|
|
2495
2495
|
"@prisma/migrate": "workspace:*",
|
|
2496
2496
|
"@prisma/query-compiler-wasm": "7.4.0-18.2997580c8cb38878f73e100453e7b27119e8faeb",
|
|
2497
|
+
"@prisma/param-graph": "workspace:*",
|
|
2498
|
+
"@prisma/param-graph-builder": "workspace:*",
|
|
2497
2499
|
"@prisma/query-plan-executor": "workspace:*",
|
|
2498
2500
|
"@prisma/sqlcommenter": "workspace:*",
|
|
2499
2501
|
"@prisma/sqlcommenter-trace-context": "workspace:*",
|
|
@@ -4336,6 +4338,7 @@ function fluentWrapperName(modelName) {
|
|
|
4336
4338
|
|
|
4337
4339
|
// src/TSClient/TSClient.ts
|
|
4338
4340
|
var import_dmmf = require("@prisma/dmmf");
|
|
4341
|
+
var import_param_graph_builder = require("@prisma/param-graph-builder");
|
|
4339
4342
|
var ts12 = __toESM(require("@prisma/ts-builders"));
|
|
4340
4343
|
var import_indent_string7 = __toESM(require("indent-string"));
|
|
4341
4344
|
|
|
@@ -5804,6 +5807,14 @@ var TSClient = class {
|
|
|
5804
5807
|
}
|
|
5805
5808
|
dmmf;
|
|
5806
5809
|
genericsInfo;
|
|
5810
|
+
buildParamGraphConfig() {
|
|
5811
|
+
const serialized = (0, import_param_graph_builder.buildAndSerializeParamGraph)(this.options.dmmf);
|
|
5812
|
+
const stringsJson = JSON.stringify(JSON.stringify(serialized.strings));
|
|
5813
|
+
return `config.parameterizationSchema = {
|
|
5814
|
+
strings: JSON.parse(${stringsJson}),
|
|
5815
|
+
graph: "${serialized.graph}"
|
|
5816
|
+
}`;
|
|
5817
|
+
}
|
|
5807
5818
|
toJS() {
|
|
5808
5819
|
const { edge, wasm, generator, datamodel: inlineSchema, runtimeName, reusedJs, compilerBuild } = this.options;
|
|
5809
5820
|
if (reusedJs) {
|
|
@@ -5837,6 +5848,7 @@ ${new Enum(
|
|
|
5837
5848
|
*/
|
|
5838
5849
|
const config = ${JSON.stringify(config, null, 2)}
|
|
5839
5850
|
${buildRuntimeDataModel(this.dmmf.datamodel, runtimeName)}
|
|
5851
|
+
${this.buildParamGraphConfig()}
|
|
5840
5852
|
${buildQueryCompilerWasmModule(wasm, runtimeName, compilerBuild)}
|
|
5841
5853
|
${buildDebugInitialization(edge)}
|
|
5842
5854
|
const PrismaClient = getPrismaClient(config)
|
|
@@ -6814,7 +6826,7 @@ var import_engines_version = require("@prisma/engines-version");
|
|
|
6814
6826
|
var import_internals9 = require("@prisma/internals");
|
|
6815
6827
|
|
|
6816
6828
|
// package.json
|
|
6817
|
-
var version = "7.4.0-dev.
|
|
6829
|
+
var version = "7.4.0-dev.22";
|
|
6818
6830
|
|
|
6819
6831
|
// src/resolvePrismaClient.ts
|
|
6820
6832
|
var import_promises2 = __toESM(require("node:fs/promises"));
|
package/dist/index.mjs
CHANGED
|
@@ -2483,6 +2483,8 @@ var package_default = {
|
|
|
2483
2483
|
"@prisma/json-protocol": "workspace:*",
|
|
2484
2484
|
"@prisma/migrate": "workspace:*",
|
|
2485
2485
|
"@prisma/query-compiler-wasm": "7.4.0-18.2997580c8cb38878f73e100453e7b27119e8faeb",
|
|
2486
|
+
"@prisma/param-graph": "workspace:*",
|
|
2487
|
+
"@prisma/param-graph-builder": "workspace:*",
|
|
2486
2488
|
"@prisma/query-plan-executor": "workspace:*",
|
|
2487
2489
|
"@prisma/sqlcommenter": "workspace:*",
|
|
2488
2490
|
"@prisma/sqlcommenter-trace-context": "workspace:*",
|
|
@@ -4325,6 +4327,7 @@ function fluentWrapperName(modelName) {
|
|
|
4325
4327
|
|
|
4326
4328
|
// src/TSClient/TSClient.ts
|
|
4327
4329
|
import { datamodelEnumToSchemaEnum } from "@prisma/dmmf";
|
|
4330
|
+
import { buildAndSerializeParamGraph } from "@prisma/param-graph-builder";
|
|
4328
4331
|
import * as ts12 from "@prisma/ts-builders";
|
|
4329
4332
|
import indent7 from "indent-string";
|
|
4330
4333
|
|
|
@@ -5796,6 +5799,14 @@ var TSClient = class {
|
|
|
5796
5799
|
}
|
|
5797
5800
|
dmmf;
|
|
5798
5801
|
genericsInfo;
|
|
5802
|
+
buildParamGraphConfig() {
|
|
5803
|
+
const serialized = buildAndSerializeParamGraph(this.options.dmmf);
|
|
5804
|
+
const stringsJson = JSON.stringify(JSON.stringify(serialized.strings));
|
|
5805
|
+
return `config.parameterizationSchema = {
|
|
5806
|
+
strings: JSON.parse(${stringsJson}),
|
|
5807
|
+
graph: "${serialized.graph}"
|
|
5808
|
+
}`;
|
|
5809
|
+
}
|
|
5799
5810
|
toJS() {
|
|
5800
5811
|
const { edge, wasm, generator, datamodel: inlineSchema, runtimeName, reusedJs, compilerBuild } = this.options;
|
|
5801
5812
|
if (reusedJs) {
|
|
@@ -5829,6 +5840,7 @@ ${new Enum(
|
|
|
5829
5840
|
*/
|
|
5830
5841
|
const config = ${JSON.stringify(config, null, 2)}
|
|
5831
5842
|
${buildRuntimeDataModel(this.dmmf.datamodel, runtimeName)}
|
|
5843
|
+
${this.buildParamGraphConfig()}
|
|
5832
5844
|
${buildQueryCompilerWasmModule(wasm, runtimeName, compilerBuild)}
|
|
5833
5845
|
${buildDebugInitialization(edge)}
|
|
5834
5846
|
const PrismaClient = getPrismaClient(config)
|
|
@@ -6806,7 +6818,7 @@ import { enginesVersion } from "@prisma/engines-version";
|
|
|
6806
6818
|
import { parseEnvValue } from "@prisma/internals";
|
|
6807
6819
|
|
|
6808
6820
|
// package.json
|
|
6809
|
-
var version = "7.4.0-dev.
|
|
6821
|
+
var version = "7.4.0-dev.22";
|
|
6810
6822
|
|
|
6811
6823
|
// src/resolvePrismaClient.ts
|
|
6812
6824
|
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.4.0-dev.
|
|
3
|
+
"version": "7.4.0-dev.22",
|
|
4
4
|
"description": "This package is intended for Prisma's internal use",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -32,14 +32,15 @@
|
|
|
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.4.0-dev.
|
|
36
|
-
"@prisma/
|
|
37
|
-
"@prisma/
|
|
38
|
-
"@prisma/
|
|
39
|
-
"@prisma/
|
|
40
|
-
"@prisma/
|
|
41
|
-
"@prisma/
|
|
42
|
-
"@prisma/
|
|
35
|
+
"@prisma/client-common": "7.4.0-dev.22",
|
|
36
|
+
"@prisma/dmmf": "7.4.0-dev.22",
|
|
37
|
+
"@prisma/fetch-engine": "7.4.0-dev.22",
|
|
38
|
+
"@prisma/generator": "7.4.0-dev.22",
|
|
39
|
+
"@prisma/debug": "7.4.0-dev.22",
|
|
40
|
+
"@prisma/get-platform": "7.4.0-dev.22",
|
|
41
|
+
"@prisma/internals": "7.4.0-dev.22",
|
|
42
|
+
"@prisma/param-graph-builder": "7.4.0-dev.22",
|
|
43
|
+
"@prisma/ts-builders": "7.4.0-dev.22"
|
|
43
44
|
},
|
|
44
45
|
"devDependencies": {
|
|
45
46
|
"@types/pluralize": "0.0.33",
|