@prisma/internals 6.1.0-dev.1 → 6.1.0-dev.10
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/chunk-2DXAGCPS.js +177 -0
- package/dist/{chunk-AV3YRAF7.js → chunk-2PP7BHKH.js} +5 -5
- package/dist/{chunk-R3WQECNL.js → chunk-55PAE34A.js} +5 -5
- package/dist/chunk-5XRQ7ONW.js +122 -0
- package/dist/{chunk-WVGKD3KM.js → chunk-D3RJUCYF.js} +5 -5
- package/dist/{chunk-VCUPZJX2.js → chunk-DJVVAZ4V.js} +7 -7
- package/dist/{chunk-KFFXIB4M.js → chunk-EPKZPJC5.js} +8 -35
- package/dist/{chunk-QDOMMF5G.js → chunk-JB3CRKLW.js} +19 -19
- package/dist/{chunk-3PBQDKPK.js → chunk-LATZTP6I.js} +5 -5
- package/dist/{chunk-UQJVO3AP.js → chunk-LRKKVLK2.js} +5 -5
- package/dist/{chunk-UFZF4RUO.js → chunk-MF6PH2QC.js} +8 -35
- package/dist/{chunk-SBSURDHK.js → chunk-NM5GRZUZ.js} +8 -8
- package/dist/{chunk-YNPUNJMZ.js → chunk-OMKOI3F5.js} +8 -8
- package/dist/{chunk-CCGCZ6T3.js → chunk-PC46MJ4M.js} +8 -8
- package/dist/{chunk-GUD2WGWW.js → chunk-PDG6GFQR.js} +5 -5
- package/dist/{chunk-5RRTA2GZ.js → chunk-PWZWCXZX.js} +24 -795
- package/dist/{chunk-Z7ROEU4E.js → chunk-Q7FFMIXH.js} +5 -5
- package/dist/chunk-QIVUAERL.js +2202 -0
- package/dist/chunk-QJZIYUVB.js +110 -0
- package/dist/{chunk-BNRRMKGX.js → chunk-QXZ36MBX.js} +8 -8
- package/dist/{chunk-KNBPQSE7.js → chunk-RFYKY4ZX.js} +7 -7
- package/dist/{chunk-YARHADMO.js → chunk-RQPIXAON.js} +5 -5
- package/dist/{chunk-HRCVABJC.js → chunk-SM6BW5WS.js} +5 -5
- package/dist/{chunk-MIOYH7IR.js → chunk-T2RTHBYQ.js} +4 -4
- package/dist/chunk-TFSZCVKC.js +166 -0
- package/dist/chunk-V2VWODV3.js +54 -0
- package/dist/cli/checkUnsupportedDataProxy.js +12 -12
- package/dist/cli/getSchema.js +17 -17
- package/dist/cli/hashes.js +12 -12
- package/dist/engine-commands/errorHelpers.js +4 -4
- package/dist/engine-commands/formatSchema.js +11 -11
- package/dist/engine-commands/getConfig.js +10 -10
- package/dist/engine-commands/getDmmf.js +7 -7
- package/dist/engine-commands/index.js +20 -20
- package/dist/engine-commands/lintSchema.js +8 -8
- package/dist/engine-commands/mergeSchemas.js +7 -7
- package/dist/engine-commands/validate.js +7 -7
- package/dist/get-generators/generatorResolvers/generatorResolvers.js +11 -11
- package/dist/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkTypeScriptVersion.js +11 -11
- package/dist/get-generators/generatorResolvers/prisma-client-js/prismaClientResolver.js +12 -12
- package/dist/get-generators/getGenerators.js +14 -14
- package/dist/index.js +39 -39
- package/dist/sendPanic.js +11 -11
- package/dist/utils/getEnvPaths.js +11 -11
- package/dist/utils/getVersionFromPackageJson.js +3 -3
- package/dist/utils/handlePanic.js +11 -11
- package/dist/utils/loadEnvFile.js +11 -11
- package/dist/wasm.js +4 -4
- package/package.json +8 -8
|
@@ -16,15 +16,15 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
return to;
|
|
17
17
|
};
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var
|
|
20
|
-
__export(
|
|
19
|
+
var chunk_LRKKVLK2_exports = {};
|
|
20
|
+
__export(chunk_LRKKVLK2_exports, {
|
|
21
21
|
addVersionDetailsToErrorMessage: () => addVersionDetailsToErrorMessage
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
24
|
-
var
|
|
23
|
+
module.exports = __toCommonJS(chunk_LRKKVLK2_exports);
|
|
24
|
+
var import_chunk_Q7FFMIXH = require("./chunk-Q7FFMIXH.js");
|
|
25
25
|
var import_chunk_QN6PSQY7 = require("./chunk-QN6PSQY7.js");
|
|
26
26
|
function addVersionDetailsToErrorMessage(message) {
|
|
27
|
-
const rows = [["Prisma CLI Version",
|
|
27
|
+
const rows = [["Prisma CLI Version", import_chunk_Q7FFMIXH.version]];
|
|
28
28
|
return `${message}
|
|
29
29
|
|
|
30
30
|
${(0, import_chunk_QN6PSQY7.formatTable)(rows)}`;
|
|
@@ -26,18 +26,18 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
26
|
mod
|
|
27
27
|
));
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var
|
|
30
|
-
__export(
|
|
29
|
+
var chunk_MF6PH2QC_exports = {};
|
|
30
|
+
__export(chunk_MF6PH2QC_exports, {
|
|
31
31
|
GetDmmfError: () => GetDmmfError,
|
|
32
32
|
getDMMF: () => getDMMF
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
34
|
+
module.exports = __toCommonJS(chunk_MF6PH2QC_exports);
|
|
35
35
|
var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
|
|
36
36
|
var import_chunk_I4467NNA = require("./chunk-I4467NNA.js");
|
|
37
|
-
var
|
|
37
|
+
var import_chunk_LRKKVLK2 = require("./chunk-LRKKVLK2.js");
|
|
38
38
|
var import_chunk_PFLLVWZX = require("./chunk-PFLLVWZX.js");
|
|
39
39
|
var import_chunk_H3T4L34H = require("./chunk-H3T4L34H.js");
|
|
40
|
-
var
|
|
40
|
+
var import_chunk_D3RJUCYF = require("./chunk-D3RJUCYF.js");
|
|
41
41
|
var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
|
|
42
42
|
var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
|
|
43
43
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
|
@@ -60,12 +60,11 @@ ${detailsHeader} ${message}`;
|
|
|
60
60
|
}).exhaustive();
|
|
61
61
|
const errorMessageWithContext = `${constructedErrorMessage}
|
|
62
62
|
[Context: getDmmf]`;
|
|
63
|
-
super((0,
|
|
63
|
+
super((0, import_chunk_LRKKVLK2.addVersionDetailsToErrorMessage)(errorMessageWithContext));
|
|
64
64
|
this.name = "GetDmmfError";
|
|
65
65
|
}
|
|
66
66
|
};
|
|
67
67
|
async function getDMMF(options) {
|
|
68
|
-
warnOnDeprecatedFeatureFlag(options.previewFeatures);
|
|
69
68
|
const debugErrorType = (0, import_chunk_I4467NNA.createDebugErrorType)(debug, "getDmmfWasm");
|
|
70
69
|
debug(`Using getDmmf Wasm`);
|
|
71
70
|
const dmmfPipeline = (0, import_function.pipe)(
|
|
@@ -91,13 +90,13 @@ async function getDMMF(options) {
|
|
|
91
90
|
() => {
|
|
92
91
|
if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_DMMF) {
|
|
93
92
|
debug("Triggering a Rust panic...");
|
|
94
|
-
|
|
93
|
+
import_chunk_D3RJUCYF.prismaSchemaWasm.debug_panic();
|
|
95
94
|
}
|
|
96
95
|
const params = JSON.stringify({
|
|
97
96
|
prismaSchema: datamodel,
|
|
98
97
|
noColor: Boolean(process.env.NO_COLOR)
|
|
99
98
|
});
|
|
100
|
-
const data =
|
|
99
|
+
const data = import_chunk_D3RJUCYF.prismaSchemaWasm.get_dmmf(params);
|
|
101
100
|
return data;
|
|
102
101
|
},
|
|
103
102
|
(e) => ({
|
|
@@ -165,29 +164,3 @@ Datamodel path: "${e.datamodelPath}"`,
|
|
|
165
164
|
}).exhaustive();
|
|
166
165
|
throw error;
|
|
167
166
|
}
|
|
168
|
-
function warnOnDeprecatedFeatureFlag(previewFeatures) {
|
|
169
|
-
const getMessage = (flag) => `${(0, import_chunk_PG5FDKSF.blue)((0, import_chunk_PG5FDKSF.bold)("info"))} The preview flag "${flag}" is not needed anymore, please remove it from your schema.prisma`;
|
|
170
|
-
const removedFeatureFlagMap = {
|
|
171
|
-
insensitiveFilters: getMessage("insensitiveFilters"),
|
|
172
|
-
atomicNumberOperations: getMessage("atomicNumberOperations"),
|
|
173
|
-
connectOrCreate: getMessage("connectOrCreate"),
|
|
174
|
-
transaction: getMessage("transaction"),
|
|
175
|
-
nApi: getMessage("nApi"),
|
|
176
|
-
transactionApi: getMessage("transactionApi"),
|
|
177
|
-
uncheckedScalarInputs: getMessage("uncheckedScalarInputs"),
|
|
178
|
-
nativeTypes: getMessage("nativeTypes"),
|
|
179
|
-
createMany: getMessage("createMany"),
|
|
180
|
-
groupBy: getMessage("groupBy"),
|
|
181
|
-
referentialActions: getMessage("referentialActions"),
|
|
182
|
-
microsoftSqlServer: getMessage("microsoftSqlServer"),
|
|
183
|
-
selectRelationCount: getMessage("selectRelationCount"),
|
|
184
|
-
orderByRelation: getMessage("orderByRelation"),
|
|
185
|
-
orderByAggregateGroup: getMessage("orderByAggregateGroup")
|
|
186
|
-
};
|
|
187
|
-
previewFeatures?.forEach((f) => {
|
|
188
|
-
const removedMessage = removedFeatureFlagMap[f];
|
|
189
|
-
if (removedMessage && !process.env.PRISMA_HIDE_PREVIEW_FLAG_WARNINGS) {
|
|
190
|
-
console.warn(removedMessage);
|
|
191
|
-
}
|
|
192
|
-
});
|
|
193
|
-
}
|
|
@@ -26,19 +26,19 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
26
|
mod
|
|
27
27
|
));
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var
|
|
30
|
-
__export(
|
|
29
|
+
var chunk_NM5GRZUZ_exports = {};
|
|
30
|
+
__export(chunk_NM5GRZUZ_exports, {
|
|
31
31
|
ValidateError: () => ValidateError,
|
|
32
32
|
validate: () => validate
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
34
|
+
module.exports = __toCommonJS(chunk_NM5GRZUZ_exports);
|
|
35
35
|
var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
|
|
36
36
|
var import_chunk_I4467NNA = require("./chunk-I4467NNA.js");
|
|
37
37
|
var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
|
|
38
|
-
var
|
|
38
|
+
var import_chunk_LATZTP6I = require("./chunk-LATZTP6I.js");
|
|
39
39
|
var import_chunk_PFLLVWZX = require("./chunk-PFLLVWZX.js");
|
|
40
40
|
var import_chunk_H3T4L34H = require("./chunk-H3T4L34H.js");
|
|
41
|
-
var
|
|
41
|
+
var import_chunk_SM6BW5WS = require("./chunk-SM6BW5WS.js");
|
|
42
42
|
var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
|
|
43
43
|
var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
|
|
44
44
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
|
@@ -60,7 +60,7 @@ ${detailsHeader} ${message}`;
|
|
|
60
60
|
}).exhaustive();
|
|
61
61
|
const errorMessageWithContext = `${constructedErrorMessage}
|
|
62
62
|
[Context: validate]`;
|
|
63
|
-
super((0,
|
|
63
|
+
super((0, import_chunk_LATZTP6I.addVersionDetailsToErrorMessage)(errorMessageWithContext));
|
|
64
64
|
this.name = "ValidateError";
|
|
65
65
|
}
|
|
66
66
|
};
|
|
@@ -72,13 +72,13 @@ function validate(options) {
|
|
|
72
72
|
() => {
|
|
73
73
|
if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_DMMF) {
|
|
74
74
|
debug("Triggering a Rust panic...");
|
|
75
|
-
|
|
75
|
+
import_chunk_SM6BW5WS.prismaSchemaWasm.debug_panic();
|
|
76
76
|
}
|
|
77
77
|
const params = JSON.stringify({
|
|
78
78
|
prismaSchema: options.schemas,
|
|
79
79
|
noColor: Boolean(process.env.NO_COLOR)
|
|
80
80
|
});
|
|
81
|
-
|
|
81
|
+
import_chunk_SM6BW5WS.prismaSchemaWasm.validate(params);
|
|
82
82
|
},
|
|
83
83
|
(e) => ({
|
|
84
84
|
type: "wasm-error",
|
|
@@ -26,19 +26,19 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
26
|
mod
|
|
27
27
|
));
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var
|
|
30
|
-
__export(
|
|
29
|
+
var chunk_OMKOI3F5_exports = {};
|
|
30
|
+
__export(chunk_OMKOI3F5_exports, {
|
|
31
31
|
ValidateError: () => ValidateError,
|
|
32
32
|
validate: () => validate
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
34
|
+
module.exports = __toCommonJS(chunk_OMKOI3F5_exports);
|
|
35
35
|
var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
|
|
36
36
|
var import_chunk_I4467NNA = require("./chunk-I4467NNA.js");
|
|
37
37
|
var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
|
|
38
|
-
var
|
|
38
|
+
var import_chunk_LRKKVLK2 = require("./chunk-LRKKVLK2.js");
|
|
39
39
|
var import_chunk_PFLLVWZX = require("./chunk-PFLLVWZX.js");
|
|
40
40
|
var import_chunk_H3T4L34H = require("./chunk-H3T4L34H.js");
|
|
41
|
-
var
|
|
41
|
+
var import_chunk_D3RJUCYF = require("./chunk-D3RJUCYF.js");
|
|
42
42
|
var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
|
|
43
43
|
var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
|
|
44
44
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
|
@@ -60,7 +60,7 @@ ${detailsHeader} ${message}`;
|
|
|
60
60
|
}).exhaustive();
|
|
61
61
|
const errorMessageWithContext = `${constructedErrorMessage}
|
|
62
62
|
[Context: validate]`;
|
|
63
|
-
super((0,
|
|
63
|
+
super((0, import_chunk_LRKKVLK2.addVersionDetailsToErrorMessage)(errorMessageWithContext));
|
|
64
64
|
this.name = "ValidateError";
|
|
65
65
|
}
|
|
66
66
|
};
|
|
@@ -72,13 +72,13 @@ function validate(options) {
|
|
|
72
72
|
() => {
|
|
73
73
|
if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_DMMF) {
|
|
74
74
|
debug("Triggering a Rust panic...");
|
|
75
|
-
|
|
75
|
+
import_chunk_D3RJUCYF.prismaSchemaWasm.debug_panic();
|
|
76
76
|
}
|
|
77
77
|
const params = JSON.stringify({
|
|
78
78
|
prismaSchema: options.schemas,
|
|
79
79
|
noColor: Boolean(process.env.NO_COLOR)
|
|
80
80
|
});
|
|
81
|
-
|
|
81
|
+
import_chunk_D3RJUCYF.prismaSchemaWasm.validate(params);
|
|
82
82
|
},
|
|
83
83
|
(e) => ({
|
|
84
84
|
type: "wasm-error",
|
|
@@ -26,22 +26,22 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
26
|
mod
|
|
27
27
|
));
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var
|
|
30
|
-
__export(
|
|
29
|
+
var chunk_PC46MJ4M_exports = {};
|
|
30
|
+
__export(chunk_PC46MJ4M_exports, {
|
|
31
31
|
GetConfigError: () => GetConfigError,
|
|
32
32
|
getConfig: () => getConfig,
|
|
33
33
|
getDirectUrl: () => getDirectUrl,
|
|
34
34
|
getEffectiveUrl: () => getEffectiveUrl,
|
|
35
35
|
resolveUrl: () => resolveUrl
|
|
36
36
|
});
|
|
37
|
-
module.exports = __toCommonJS(
|
|
37
|
+
module.exports = __toCommonJS(chunk_PC46MJ4M_exports);
|
|
38
38
|
var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
|
|
39
39
|
var import_chunk_I4467NNA = require("./chunk-I4467NNA.js");
|
|
40
40
|
var import_chunk_C47SCASR = require("./chunk-C47SCASR.js");
|
|
41
|
-
var
|
|
41
|
+
var import_chunk_LATZTP6I = require("./chunk-LATZTP6I.js");
|
|
42
42
|
var import_chunk_PFLLVWZX = require("./chunk-PFLLVWZX.js");
|
|
43
43
|
var import_chunk_H3T4L34H = require("./chunk-H3T4L34H.js");
|
|
44
|
-
var
|
|
44
|
+
var import_chunk_SM6BW5WS = require("./chunk-SM6BW5WS.js");
|
|
45
45
|
var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
|
|
46
46
|
var import_chunk_7MD6344A = require("./chunk-7MD6344A.js");
|
|
47
47
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
|
@@ -65,7 +65,7 @@ ${detailsHeader} ${message}`;
|
|
|
65
65
|
}).exhaustive();
|
|
66
66
|
const errorMessageWithContext = `${constructedErrorMessage}
|
|
67
67
|
[Context: getConfig]`;
|
|
68
|
-
super((0,
|
|
68
|
+
super((0, import_chunk_LATZTP6I.addVersionDetailsToErrorMessage)(errorMessageWithContext));
|
|
69
69
|
this.name = "GetConfigError";
|
|
70
70
|
}
|
|
71
71
|
};
|
|
@@ -90,7 +90,7 @@ async function getConfig(options) {
|
|
|
90
90
|
() => {
|
|
91
91
|
if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_CONFIG) {
|
|
92
92
|
debug("Triggering a Rust panic...");
|
|
93
|
-
|
|
93
|
+
import_chunk_SM6BW5WS.prismaSchemaWasm.debug_panic();
|
|
94
94
|
}
|
|
95
95
|
const params = JSON.stringify({
|
|
96
96
|
prismaSchema: options.datamodel,
|
|
@@ -98,7 +98,7 @@ async function getConfig(options) {
|
|
|
98
98
|
ignoreEnvVarErrors: options.ignoreEnvVarErrors ?? false,
|
|
99
99
|
env: process.env
|
|
100
100
|
});
|
|
101
|
-
const data =
|
|
101
|
+
const data = import_chunk_SM6BW5WS.prismaSchemaWasm.get_config(params);
|
|
102
102
|
return data;
|
|
103
103
|
},
|
|
104
104
|
(e) => ({
|
|
@@ -16,21 +16,21 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
return to;
|
|
17
17
|
};
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var
|
|
20
|
-
__export(
|
|
19
|
+
var chunk_PDG6GFQR_exports = {};
|
|
20
|
+
__export(chunk_PDG6GFQR_exports, {
|
|
21
21
|
getLintWarnings: () => getLintWarnings,
|
|
22
22
|
getLintWarningsAsText: () => getLintWarningsAsText,
|
|
23
23
|
handleLintPanic: () => handleLintPanic,
|
|
24
24
|
lintSchema: () => lintSchema,
|
|
25
25
|
warningToString: () => warningToString
|
|
26
26
|
});
|
|
27
|
-
module.exports = __toCommonJS(
|
|
27
|
+
module.exports = __toCommonJS(chunk_PDG6GFQR_exports);
|
|
28
28
|
var import_chunk_YRBRUREX = require("./chunk-YRBRUREX.js");
|
|
29
|
-
var
|
|
29
|
+
var import_chunk_SM6BW5WS = require("./chunk-SM6BW5WS.js");
|
|
30
30
|
var import_chunk_A4QWQE3W = require("./chunk-A4QWQE3W.js");
|
|
31
31
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
|
32
32
|
function lintSchema({ schemas }) {
|
|
33
|
-
const lintResult =
|
|
33
|
+
const lintResult = import_chunk_SM6BW5WS.prismaSchemaWasm.lint(JSON.stringify(schemas));
|
|
34
34
|
const lintDiagnostics = JSON.parse(lintResult);
|
|
35
35
|
return lintDiagnostics;
|
|
36
36
|
}
|