@prisma/internals 6.13.0-dev.3 → 6.13.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/{chunk-67Y3H3QN.js → chunk-2MSHYWMA.js} +5 -5
- package/dist/{chunk-VYQWNWBL.js → chunk-3M66CQNO.js} +8 -8
- package/dist/{chunk-CHOXBASF.js → chunk-4JCVHBYR.js} +5 -5
- package/dist/{chunk-MMDCFN6O.js → chunk-5OP3XZGE.js} +7 -7
- package/dist/{chunk-MY5KA4VU.js → chunk-67I7CEQJ.js} +329 -12
- package/dist/{chunk-HCLB23CV.js → chunk-7QYPTKF6.js} +5 -5
- package/dist/{chunk-PYESN73R.js → chunk-BMYDKBRY.js} +26 -26
- package/dist/{chunk-X4L5SQSX.js → chunk-BPDSYUHC.js} +5 -5
- package/dist/{chunk-7ZY357OA.js → chunk-C7GQLGCK.js} +6 -6
- package/dist/{chunk-ZIFBTC6Y.js → chunk-CILEY36B.js} +5150 -477
- package/dist/{chunk-JIFFPM7F.js → chunk-E6WAJV3T.js} +5 -5
- package/dist/{chunk-ZCBEMBHR.js → chunk-EYVG6XQS.js} +11 -23
- package/dist/{chunk-7LZMIPS5.js → chunk-FJWKIEZH.js} +8 -8
- package/dist/{chunk-NNDSWLTF.js → chunk-GIP47CQ4.js} +5 -5
- package/dist/{chunk-FUVIRDZG.js → chunk-J57X5W4Z.js} +8 -8
- package/dist/{chunk-SFFH45R3.js → chunk-KU5OQ7FI.js} +5 -5
- package/dist/{chunk-3R5MIUGK.js → chunk-LJJRFSMO.js} +5 -5
- package/dist/chunk-LWJT6EL5.js +27 -0
- package/dist/{chunk-F44R72ET.js → chunk-M574LXYH.js} +7 -7
- package/dist/{chunk-O3FLU6UD.js → chunk-NUJNCHJZ.js} +8 -8
- package/dist/{chunk-VMDJ6R7V.js → chunk-PWHLRKOF.js} +8 -8
- package/dist/{chunk-BL6J3WTY.js → chunk-SL6XBC2C.js} +5 -5
- package/dist/{chunk-NSA7BFND.js → chunk-SQXZIRNZ.js} +5 -5
- package/dist/{chunk-6I574ZIF.js → chunk-U2URCEW5.js} +26 -26
- package/dist/{chunk-7G7FICFI.js → chunk-VXUA6PHH.js} +7 -7
- package/dist/{chunk-YU3N5MWB.js → chunk-XFFAWWK4.js} +8 -8
- package/dist/{chunk-WXRTT6AT.js → chunk-XLPPGCBH.js} +8 -8
- package/dist/cli/checkUnsupportedDataProxy.js +20 -21
- package/dist/cli/checkUnsupportedSchemaEngineWasm.js +20 -21
- package/dist/cli/getSchema.d.ts +6 -8
- package/dist/cli/getSchema.js +5 -9
- package/dist/cli/hashes.js +4 -7
- package/dist/cli/schemaContext.js +20 -21
- package/dist/engine-commands/errorHelpers.js +4 -4
- package/dist/engine-commands/formatSchema.js +19 -20
- package/dist/engine-commands/getConfig.js +10 -10
- package/dist/engine-commands/getDmmf.js +7 -7
- package/dist/engine-commands/index.js +28 -29
- 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/getGenerators.js +22 -23
- package/dist/getPackedPackage.js +5 -6
- package/dist/index.d.ts +1 -1
- package/dist/index.js +48 -50
- package/dist/migrateTypes.d.ts +10 -0
- package/dist/resolvePkg.js +2 -3
- package/dist/utils/getEnvPaths.js +4 -6
- package/dist/utils/getVersionFromPackageJson.js +3 -3
- package/dist/utils/loadEnvFile.js +5 -7
- package/dist/wasm.js +5 -5
- package/package.json +13 -13
- package/dist/chunk-PSFQKG2Q.js +0 -6291
- package/dist/chunk-QS3WUGE3.js +0 -341
|
@@ -26,8 +26,8 @@ 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_BMYDKBRY_exports = {};
|
|
30
|
+
__export(chunk_BMYDKBRY_exports, {
|
|
31
31
|
checkUnsupportedDataProxy: () => checkUnsupportedDataProxy,
|
|
32
32
|
checkUnsupportedSchemaEngineWasm: () => checkUnsupportedSchemaEngineWasm,
|
|
33
33
|
forbiddenCmdFlagWithSchemaEngineWasm: () => forbiddenCmdFlagWithSchemaEngineWasm,
|
|
@@ -42,7 +42,7 @@ __export(chunk_PYESN73R_exports, {
|
|
|
42
42
|
processSchemaResult: () => processSchemaResult,
|
|
43
43
|
skipIndex: () => skipIndex
|
|
44
44
|
});
|
|
45
|
-
module.exports = __toCommonJS(
|
|
45
|
+
module.exports = __toCommonJS(chunk_BMYDKBRY_exports);
|
|
46
46
|
var import_chunk_X3P4J7WW = require("./chunk-X3P4J7WW.js");
|
|
47
47
|
var import_chunk_LRU47BGE = require("./chunk-LRU47BGE.js");
|
|
48
48
|
var import_chunk_X77CS5RK = require("./chunk-X77CS5RK.js");
|
|
@@ -52,15 +52,15 @@ var import_chunk_5V36RLCO = require("./chunk-5V36RLCO.js");
|
|
|
52
52
|
var import_chunk_5FJ3MENK = require("./chunk-5FJ3MENK.js");
|
|
53
53
|
var import_chunk_7QC5VORA = require("./chunk-7QC5VORA.js");
|
|
54
54
|
var import_chunk_AX5N26KG = require("./chunk-AX5N26KG.js");
|
|
55
|
-
var
|
|
55
|
+
var import_chunk_XLPPGCBH = require("./chunk-XLPPGCBH.js");
|
|
56
56
|
var import_chunk_I6WLABB2 = require("./chunk-I6WLABB2.js");
|
|
57
57
|
var import_chunk_CRVLHWC5 = require("./chunk-CRVLHWC5.js");
|
|
58
|
-
var
|
|
59
|
-
var
|
|
60
|
-
var
|
|
61
|
-
var
|
|
62
|
-
var
|
|
63
|
-
var
|
|
58
|
+
var import_chunk_3M66CQNO = require("./chunk-3M66CQNO.js");
|
|
59
|
+
var import_chunk_XFFAWWK4 = require("./chunk-XFFAWWK4.js");
|
|
60
|
+
var import_chunk_E6WAJV3T = require("./chunk-E6WAJV3T.js");
|
|
61
|
+
var import_chunk_M574LXYH = require("./chunk-M574LXYH.js");
|
|
62
|
+
var import_chunk_EYVG6XQS = require("./chunk-EYVG6XQS.js");
|
|
63
|
+
var import_chunk_SQXZIRNZ = require("./chunk-SQXZIRNZ.js");
|
|
64
64
|
var import_chunk_ZJWZK45Z = require("./chunk-ZJWZK45Z.js");
|
|
65
65
|
var import_chunk_2B26F5N3 = require("./chunk-2B26F5N3.js");
|
|
66
66
|
var import_chunk_XKZ6CBLA = require("./chunk-XKZ6CBLA.js");
|
|
@@ -68,7 +68,7 @@ var import_chunk_LMVSIVKQ = require("./chunk-LMVSIVKQ.js");
|
|
|
68
68
|
var import_chunk_BPDMLM32 = require("./chunk-BPDMLM32.js");
|
|
69
69
|
var import_chunk_IOIAK7V7 = require("./chunk-IOIAK7V7.js");
|
|
70
70
|
var import_chunk_PG5FDKSF = require("./chunk-PG5FDKSF.js");
|
|
71
|
-
var
|
|
71
|
+
var import_chunk_CILEY36B = require("./chunk-CILEY36B.js");
|
|
72
72
|
var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
|
|
73
73
|
var import_path = __toESM(require("path"));
|
|
74
74
|
var import_debug = __toESM(require("@prisma/debug"));
|
|
@@ -79,7 +79,7 @@ var import_path2 = __toESM(require("path"));
|
|
|
79
79
|
var import_get_platform2 = require("@prisma/get-platform");
|
|
80
80
|
var forbiddenCmdFlagWithSchemaEngineWasm = ({ cmd, flag }) => `
|
|
81
81
|
Passing the ${(0, import_chunk_PG5FDKSF.green)(`${flag}`)} flag to the ${(0, import_chunk_PG5FDKSF.green)(`prisma ${cmd}`)} command is not supported when
|
|
82
|
-
defining
|
|
82
|
+
defining an ${(0, import_chunk_PG5FDKSF.green)(`adapter`)} in Prisma config file (e.g., ${(0, import_chunk_PG5FDKSF.green)(`\`prisma.config.ts\``)}).
|
|
83
83
|
|
|
84
84
|
More information about this limitation: ${(0, import_chunk_I6WLABB2.link)("https://pris.ly/d/schema-engine-limitations")}
|
|
85
85
|
`;
|
|
@@ -102,7 +102,7 @@ var debug = (0, import_debug.default)("prisma:format");
|
|
|
102
102
|
async function formatSchema({ schemas }, inputFormattingOptions) {
|
|
103
103
|
if (process.env.FORCE_PANIC_PRISMA_SCHEMA) {
|
|
104
104
|
handleFormatPanic(() => {
|
|
105
|
-
|
|
105
|
+
import_chunk_SQXZIRNZ.prismaSchemaWasm.debug_panic();
|
|
106
106
|
});
|
|
107
107
|
}
|
|
108
108
|
const defaultFormattingOptions = {
|
|
@@ -119,10 +119,10 @@ async function formatSchema({ schemas }, inputFormattingOptions) {
|
|
|
119
119
|
const { formattedMultipleSchemas, lintDiagnostics } = handleFormatPanic(() => {
|
|
120
120
|
const formattedMultipleSchemasRaw = formatWasm(JSON.stringify(schemas), documentFormattingParams);
|
|
121
121
|
const formattedMultipleSchemas2 = JSON.parse(formattedMultipleSchemasRaw);
|
|
122
|
-
const lintDiagnostics2 = (0,
|
|
122
|
+
const lintDiagnostics2 = (0, import_chunk_E6WAJV3T.lintSchema)({ schemas: formattedMultipleSchemas2 });
|
|
123
123
|
return { formattedMultipleSchemas: formattedMultipleSchemas2, lintDiagnostics: lintDiagnostics2 };
|
|
124
124
|
});
|
|
125
|
-
const lintWarnings = (0,
|
|
125
|
+
const lintWarnings = (0, import_chunk_E6WAJV3T.getLintWarningsAsText)(lintDiagnostics);
|
|
126
126
|
if (lintWarnings && import_chunk_ZJWZK45Z.logger_exports.should.warn()) {
|
|
127
127
|
console.warn(lintWarnings);
|
|
128
128
|
}
|
|
@@ -149,7 +149,7 @@ function handleFormatPanic(tryCb) {
|
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
151
|
function formatWasm(schema, documentFormattingParams) {
|
|
152
|
-
const formattedSchema =
|
|
152
|
+
const formattedSchema = import_chunk_SQXZIRNZ.prismaSchemaWasm.format(schema, JSON.stringify(documentFormattingParams));
|
|
153
153
|
return formattedSchema;
|
|
154
154
|
}
|
|
155
155
|
async function loadSchemaContext({
|
|
@@ -163,13 +163,13 @@ async function loadSchemaContext({
|
|
|
163
163
|
} = {}) {
|
|
164
164
|
let schemaResult = null;
|
|
165
165
|
if (allowNull) {
|
|
166
|
-
schemaResult = await (0,
|
|
166
|
+
schemaResult = await (0, import_chunk_EYVG6XQS.getSchemaWithPathOptional)(schemaPathFromArg, schemaPathFromConfig, {
|
|
167
167
|
argumentName: schemaPathArgumentName,
|
|
168
168
|
cwd
|
|
169
169
|
});
|
|
170
170
|
if (!schemaResult) return null;
|
|
171
171
|
} else {
|
|
172
|
-
schemaResult = await (0,
|
|
172
|
+
schemaResult = await (0, import_chunk_EYVG6XQS.getSchemaWithPath)(schemaPathFromArg, schemaPathFromConfig, {
|
|
173
173
|
argumentName: schemaPathArgumentName,
|
|
174
174
|
cwd
|
|
175
175
|
});
|
|
@@ -184,9 +184,9 @@ async function processSchemaResult({
|
|
|
184
184
|
}) {
|
|
185
185
|
const loadedFromPathForLogMessages = import_path.default.relative(cwd, schemaResult.schemaPath);
|
|
186
186
|
if (printLoadMessage) {
|
|
187
|
-
(0,
|
|
187
|
+
(0, import_chunk_EYVG6XQS.printSchemaLoadedMessage)(loadedFromPathForLogMessages);
|
|
188
188
|
}
|
|
189
|
-
const configFromPsl = await (0,
|
|
189
|
+
const configFromPsl = await (0, import_chunk_3M66CQNO.getConfig)({ datamodel: schemaResult.schemas, ignoreEnvVarErrors });
|
|
190
190
|
const primaryDatasource = configFromPsl.datasources.at(0);
|
|
191
191
|
const schemaRootDir = schemaResult.schemaRootDir || cwd;
|
|
192
192
|
return {
|
|
@@ -208,7 +208,7 @@ function primaryDatasourceDirectory(primaryDatasource) {
|
|
|
208
208
|
}
|
|
209
209
|
return null;
|
|
210
210
|
}
|
|
211
|
-
var import_p_map = (0, import_chunk_4VNS5WPM.__toESM)((0,
|
|
211
|
+
var import_p_map = (0, import_chunk_4VNS5WPM.__toESM)((0, import_chunk_CILEY36B.require_p_map)());
|
|
212
212
|
var debug2 = (0, import_debug2.default)("prisma:getGenerators");
|
|
213
213
|
async function getGenerators(options) {
|
|
214
214
|
if (options.registry === void 0 && options.providerAliases !== void 0) {
|
|
@@ -246,7 +246,7 @@ async function getGenerators(options) {
|
|
|
246
246
|
}
|
|
247
247
|
(0, import_chunk_5FJ3MENK.printConfigWarnings)(schemaContext.warnings);
|
|
248
248
|
const previewFeatures = (0, import_chunk_CRVLHWC5.extractPreviewFeatures)(schemaContext.generators);
|
|
249
|
-
const dmmf = await (0,
|
|
249
|
+
const dmmf = await (0, import_chunk_XFFAWWK4.getDMMF)({
|
|
250
250
|
datamodel: schemaContext.schemaFiles,
|
|
251
251
|
previewFeatures
|
|
252
252
|
});
|
|
@@ -297,8 +297,8 @@ You need to define \`output\` in the generator block in the schema file.`
|
|
|
297
297
|
fromEnvVar: null
|
|
298
298
|
};
|
|
299
299
|
}
|
|
300
|
-
const datamodel = (0,
|
|
301
|
-
const envPaths = await (0,
|
|
300
|
+
const datamodel = (0, import_chunk_M574LXYH.mergeSchemas)({ schemas: schemaContext.schemaFiles });
|
|
301
|
+
const envPaths = await (0, import_chunk_XLPPGCBH.getEnvPaths)(schemaContext.schemaPath, { cwd: generatorConfig.output.value });
|
|
302
302
|
const options2 = {
|
|
303
303
|
datamodel,
|
|
304
304
|
datasources: schemaContext.datasources,
|
|
@@ -389,7 +389,7 @@ generator gen {
|
|
|
389
389
|
debug2({ generatorBinaryPaths });
|
|
390
390
|
generator.setBinaryPaths(generatorBinaryPaths);
|
|
391
391
|
if (engineVersion !== version2 && generator.options && generator.manifest.requiresEngines.includes(queryEngineType) && generatorBinaryPaths[queryEngineType] && generatorBinaryPaths[queryEngineType]?.[binaryTarget]) {
|
|
392
|
-
const customDmmf = await (0,
|
|
392
|
+
const customDmmf = await (0, import_chunk_XFFAWWK4.getDMMF)({
|
|
393
393
|
datamodel: schemaContext.schemaFiles,
|
|
394
394
|
previewFeatures
|
|
395
395
|
});
|
|
@@ -510,7 +510,7 @@ function checkUnsupportedDataProxy({
|
|
|
510
510
|
}
|
|
511
511
|
}
|
|
512
512
|
if (!schemaContext?.primaryDatasource) return;
|
|
513
|
-
const url = (0,
|
|
513
|
+
const url = (0, import_chunk_3M66CQNO.resolveUrl)((0, import_chunk_3M66CQNO.getEffectiveUrl)(schemaContext.primaryDatasource));
|
|
514
514
|
if (url?.startsWith("prisma://")) {
|
|
515
515
|
throw new Error(forbiddenCmdWithDataProxyFlagMessage(cmd));
|
|
516
516
|
}
|
|
@@ -16,11 +16,11 @@ 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_BPDSYUHC_exports = {};
|
|
20
|
+
__export(chunk_BPDSYUHC_exports, {
|
|
21
21
|
require_package: () => require_package
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
23
|
+
module.exports = __toCommonJS(chunk_BPDSYUHC_exports);
|
|
24
24
|
var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
|
|
25
25
|
var require_package = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
26
26
|
"package.json"(exports, module2) {
|
|
@@ -113,8 +113,8 @@ var require_package = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
|
113
113
|
"@prisma/generator": "workspace:*",
|
|
114
114
|
"@prisma/generator-helper": "workspace:*",
|
|
115
115
|
"@prisma/get-platform": "workspace:*",
|
|
116
|
-
"@prisma/prisma-schema-wasm": "6.
|
|
117
|
-
"@prisma/schema-engine-wasm": "6.
|
|
116
|
+
"@prisma/prisma-schema-wasm": "6.13.0-35.361e86d0ea4987e9f53a565309b3eed797a6bcbd",
|
|
117
|
+
"@prisma/schema-engine-wasm": "6.13.0-35.361e86d0ea4987e9f53a565309b3eed797a6bcbd",
|
|
118
118
|
"@prisma/schema-files-loader": "workspace:*",
|
|
119
119
|
arg: "5.0.2",
|
|
120
120
|
prompts: "2.4.2"
|
|
@@ -16,17 +16,17 @@ 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_C7GQLGCK_exports = {};
|
|
20
|
+
__export(chunk_C7GQLGCK_exports, {
|
|
21
21
|
require_package: () => require_package
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
23
|
+
module.exports = __toCommonJS(chunk_C7GQLGCK_exports);
|
|
24
24
|
var import_chunk_4VNS5WPM = require("./chunk-4VNS5WPM.js");
|
|
25
25
|
var require_package = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
26
26
|
"package.json"(exports, module2) {
|
|
27
27
|
module2.exports = {
|
|
28
28
|
name: "@prisma/internals",
|
|
29
|
-
version: "6.13.0-dev.
|
|
29
|
+
version: "6.13.0-dev.30",
|
|
30
30
|
description: "This package is intended for Prisma's internal use",
|
|
31
31
|
main: "dist/index.js",
|
|
32
32
|
types: "dist/index.d.ts",
|
|
@@ -113,8 +113,8 @@ var require_package = (0, import_chunk_4VNS5WPM.__commonJS)({
|
|
|
113
113
|
"@prisma/generator": "workspace:*",
|
|
114
114
|
"@prisma/generator-helper": "workspace:*",
|
|
115
115
|
"@prisma/get-platform": "workspace:*",
|
|
116
|
-
"@prisma/prisma-schema-wasm": "6.
|
|
117
|
-
"@prisma/schema-engine-wasm": "6.
|
|
116
|
+
"@prisma/prisma-schema-wasm": "6.13.0-35.361e86d0ea4987e9f53a565309b3eed797a6bcbd",
|
|
117
|
+
"@prisma/schema-engine-wasm": "6.13.0-35.361e86d0ea4987e9f53a565309b3eed797a6bcbd",
|
|
118
118
|
"@prisma/schema-files-loader": "workspace:*",
|
|
119
119
|
arg: "5.0.2",
|
|
120
120
|
prompts: "2.4.2"
|