@prisma/orm-toolchain 8.0.0-rc.13-dev.6 → 8.0.0-rc.13-dev.8
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/cli-telemetry.mjs +1 -1
- package/dist/cli.mjs +3 -3
- package/dist/cli__control-api.mjs +1 -1
- package/dist/cli__migration-cli.mjs +1 -1
- package/dist/config-loader.mjs +1 -1
- package/dist/{exports-DKwrm64h.mjs → exports-Dc8WjBJI.mjs} +467 -274
- package/dist/exports-Dc8WjBJI.mjs.map +1 -0
- package/dist/{exports-C2kyulLb.mjs → exports-uIufkd50.mjs} +9 -2
- package/dist/exports-uIufkd50.mjs.map +1 -0
- package/dist/{ref-DZuzAvuD-BYpisYJp.mjs → ref-DZuzAvuD-RQwSwQwC.mjs} +2 -2
- package/dist/{ref-DZuzAvuD-BYpisYJp.mjs.map → ref-DZuzAvuD-RQwSwQwC.mjs.map} +1 -1
- package/dist/vite-plugin-contract-emit.mjs +2 -2
- package/package.json +13 -13
- package/dist/exports-C2kyulLb.mjs.map +0 -1
- package/dist/exports-DKwrm64h.mjs.map +0 -1
package/dist/cli-telemetry.mjs
CHANGED
|
@@ -42,7 +42,7 @@ async function loadProjectConfig(projectRoot) {
|
|
|
42
42
|
const orm = config["orm"];
|
|
43
43
|
if (orm === null || typeof orm !== "object" || Array.isArray(orm)) return EMPTY_PROJECT_CONFIG;
|
|
44
44
|
config = blindCast(orm);
|
|
45
|
-
const { validateOrmSection } = await import("./exports-
|
|
45
|
+
const { validateOrmSection } = await import("./exports-uIufkd50.mjs").then((n) => n.a);
|
|
46
46
|
const validation = validateOrmSection(config, {
|
|
47
47
|
files: [],
|
|
48
48
|
keys: {}
|
package/dist/cli.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as requireConfigSections, i as expandContractInputs, m as ormConfigSection, n as buildLoadedConfig, r as evaluateConfigModule, s as globContractInputMatching, u as loadConfigFiles } from "./exports-
|
|
1
|
+
import { h as requireConfigSections, i as expandContractInputs, m as ormConfigSection, n as buildLoadedConfig, r as evaluateConfigModule, s as globContractInputMatching, u as loadConfigFiles } from "./exports-uIufkd50.mjs";
|
|
2
2
|
import { r as getEmittedArtifactPaths } from "./exports-Bx-2JeW0-BHlN6Av7.mjs";
|
|
3
3
|
import { t as MigrationToolsError } from "./errors-DD6iLGXk-6I9PqjpZ.mjs";
|
|
4
4
|
import { t as contractSnapshotDir } from "./contract-snapshot-store-1S_6vaGt-FrXDiBEd.mjs";
|
|
@@ -6,7 +6,7 @@ import { t as EMPTY_CONTRACT_HASH } from "./constants-CM-w38DQ-Cz_EXbOc.mjs";
|
|
|
6
6
|
import { r as readRef } from "./refs-qwvw4_dV-DNg_7WTD.mjs";
|
|
7
7
|
import { c as spaceMigrationDirectory } from "./verify-contract-spaces-CYjc343k-DHy5xtKR.mjs";
|
|
8
8
|
import { i as createScaffoldSpecifierResolver } from "./import-roots-BB3GzIi-.mjs";
|
|
9
|
-
import { $ as findPackageByDirPath, A as errorHashMismatch, At as resolveMigrationRef, B as errorTargetMismatch, Bt as toDeclaredExtensionsFromRaw, C as errorContractArgConflict, Ct as refusePackageCorruptionOnAggregate, D as errorDestructiveChanges, Dt as resolveContractRef$1, E as errorDatabaseConnectionRequired, Et as resolveAppTargetPath, F as errorNoMigrations, Ft as runMigrationList, H as executeContractEmit, I as errorPathUnreachable, It as sanitizeErrorMessage, J as executeMigrationPlanCommand, K as executeMigrateShowPlan, L as errorRunnerFailed, Lt as snapshotVerifierFor, M as errorMarkerMissing, Mt as runCommandAction, N as errorMigrationPackageNotFound, O as errorDriverRequired, Ot as resolveContractRefToSnapshot, P as errorMigrationPlanningFailed, Pt as runMigrationCheck, Q as executeRefSetCommand, R as errorRuntime, Rt as statusForMigrationHash, S as errorConsentPlanMismatch, St as refuseMissingInvariantPath, T as errorContractValidationFailed, Tt as requireLiveDatabase, V as errorUnexpected, Vt as validateLoadedContract, X as executeRefDeleteCommand, Z as executeRefListCommand, _t as readMigrationRefs, at as loadContractSource, b as errorAdvanceRefArgConflict, c as buildMigrationSpaceGraphEntries, ct as looksLikePath, d as checkSingleTarget, et as formatSourceDiagnostic, f as chooseAction, ft as maskConnectionUrl, g as deriveStatusEdgeAnnotations, gt as readContractEnvelope, h as createControlClient, ht as preflightRefAdvancement, i as advanceRefSafely, it as loadContractRawSafely, j as errorLegendHumanOnly, k as errorFileNotFound, l as buildReadAggregate, lt as mapCaughtMigrationError, m as computeRefAdvancementName, mt as originHashForStatus, n as ERROR_CODE_DESTRUCTIVE_CHANGES, nt as listRefsByContractHash, o as appliedHashesFromLedger, ot as loadContractSourceWithStack, p as closeQuietly, pt as migrationSpaceListEntriesFromAggregate, q as executeMigrationNewCommand, r as NO_REF_ADVANCEMENT, rt as loadAggregateIntegrityViolations, st as loadContractSpaceAggregateForCli, t as CliStructuredError$1$1, tt as hasMigrationPath, u as buildRefAdvancementFields, ut as mapContractAtError, vt as redactUrlCredentials, w as errorContractConfigMissing, wt as refuseUnknownInvariants, x as errorConfigValidation$1, xt as refuseMarkerOutsideGraph, y as enumerateCheckSpaces, yt as refuseContractSpaceIntegrity, z as errorTargetMigrationNotSupported, zt as targetSupportsMigrations } from "./ref-DZuzAvuD-
|
|
9
|
+
import { $ as findPackageByDirPath, A as errorHashMismatch, At as resolveMigrationRef, B as errorTargetMismatch, Bt as toDeclaredExtensionsFromRaw, C as errorContractArgConflict, Ct as refusePackageCorruptionOnAggregate, D as errorDestructiveChanges, Dt as resolveContractRef$1, E as errorDatabaseConnectionRequired, Et as resolveAppTargetPath, F as errorNoMigrations, Ft as runMigrationList, H as executeContractEmit, I as errorPathUnreachable, It as sanitizeErrorMessage, J as executeMigrationPlanCommand, K as executeMigrateShowPlan, L as errorRunnerFailed, Lt as snapshotVerifierFor, M as errorMarkerMissing, Mt as runCommandAction, N as errorMigrationPackageNotFound, O as errorDriverRequired, Ot as resolveContractRefToSnapshot, P as errorMigrationPlanningFailed, Pt as runMigrationCheck, Q as executeRefSetCommand, R as errorRuntime, Rt as statusForMigrationHash, S as errorConsentPlanMismatch, St as refuseMissingInvariantPath, T as errorContractValidationFailed, Tt as requireLiveDatabase, V as errorUnexpected, Vt as validateLoadedContract, X as executeRefDeleteCommand, Z as executeRefListCommand, _t as readMigrationRefs, at as loadContractSource, b as errorAdvanceRefArgConflict, c as buildMigrationSpaceGraphEntries, ct as looksLikePath, d as checkSingleTarget, et as formatSourceDiagnostic, f as chooseAction, ft as maskConnectionUrl, g as deriveStatusEdgeAnnotations, gt as readContractEnvelope, h as createControlClient, ht as preflightRefAdvancement, i as advanceRefSafely, it as loadContractRawSafely, j as errorLegendHumanOnly, k as errorFileNotFound, l as buildReadAggregate, lt as mapCaughtMigrationError, m as computeRefAdvancementName, mt as originHashForStatus, n as ERROR_CODE_DESTRUCTIVE_CHANGES, nt as listRefsByContractHash, o as appliedHashesFromLedger, ot as loadContractSourceWithStack, p as closeQuietly, pt as migrationSpaceListEntriesFromAggregate, q as executeMigrationNewCommand, r as NO_REF_ADVANCEMENT, rt as loadAggregateIntegrityViolations, st as loadContractSpaceAggregateForCli, t as CliStructuredError$1$1, tt as hasMigrationPath, u as buildRefAdvancementFields, ut as mapContractAtError, vt as redactUrlCredentials, w as errorContractConfigMissing, wt as refuseUnknownInvariants, x as errorConfigValidation$1, xt as refuseMarkerOutsideGraph, y as enumerateCheckSpaces, yt as refuseContractSpaceIntegrity, z as errorTargetMigrationNotSupported, zt as targetSupportsMigrations } from "./ref-DZuzAvuD-RQwSwQwC.mjs";
|
|
10
10
|
import { a as PRISMA7_QUICK_REFERENCE_STEP, i as PRISMA7_LOOP_STEP, n as InitOutputSchema, o as buildNextSteps, r as NEXT_STEPS_BEFORE_SCAFFOLD, t as DB_SIGN_STEP } from "./output-BcC8eB0h-C5bRd-aC.mjs";
|
|
11
11
|
import { createRequire } from "node:module";
|
|
12
12
|
import { existsSync, mkdirSync, readFileSync, readdirSync, rmSync, statSync, unlinkSync, writeFileSync } from "node:fs";
|
|
@@ -6536,7 +6536,7 @@ const lspCommand = defineServerCommand({
|
|
|
6536
6536
|
} },
|
|
6537
6537
|
handler: async (args, io) => {
|
|
6538
6538
|
const exitCode = await withoutClientProcessIdInArgv(async () => {
|
|
6539
|
-
const { startServer } = await import("./exports-
|
|
6539
|
+
const { startServer } = await import("./exports-Dc8WjBJI.mjs");
|
|
6540
6540
|
return startServer({
|
|
6541
6541
|
stdin: io.stdin,
|
|
6542
6542
|
stdout: io.stdout,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { At as resolveMigrationRef, Ct as refusePackageCorruptionOnAggregate, Dt as resolveContractRef$1, Ft as runMigrationList, G as executeDbVerify, H as executeContractEmit, J as executeMigrationPlanCommand, K as executeMigrateShowPlan, Nt as runContractSpaceSeedPhase, Ot as resolveContractRefToSnapshot, Pt as runMigrationCheck, Q as executeRefSetCommand, Rt as statusForMigrationHash, St as refuseMissingInvariantPath, U as executeDbInit, W as executeDbUpdate, X as executeRefDeleteCommand, Y as executeRefAdvancement, Z as executeRefListCommand, _ as disposeEmitQueue, _t as readMigrationRefs, a as appContractStandInFromIdentity, at as loadContractSource, bt as refuseDeclaredExtensionTargetMismatch, c as buildMigrationSpaceGraphEntries, d as checkSingleTarget, dt as mapIntegrityViolations, g as deriveStatusEdgeAnnotations, h as createControlClient, ht as preflightRefAdvancement, i as advanceRefSafely, it as loadContractRawSafely, jt as resolveToForPlan, kt as resolveFromForPlan, l as buildReadAggregate, lt as mapCaughtMigrationError, m as computeRefAdvancementName, mt as originHashForStatus, nt as listRefsByContractHash, o as appliedHashesFromLedger, pt as migrationSpaceListEntriesFromAggregate, q as executeMigrationNewCommand, r as NO_REF_ADVANCEMENT, rt as loadAggregateIntegrityViolations, s as buildContractSpaceAggregate, st as loadContractSpaceAggregateForCli, tt as hasMigrationPath, u as buildRefAdvancementFields, ut as mapContractAtError, v as enrichContract, wt as refuseUnknownInvariants, xt as refuseMarkerOutsideGraph, y as enumerateCheckSpaces, yt as refuseContractSpaceIntegrity } from "./ref-DZuzAvuD-
|
|
1
|
+
import { At as resolveMigrationRef, Ct as refusePackageCorruptionOnAggregate, Dt as resolveContractRef$1, Ft as runMigrationList, G as executeDbVerify, H as executeContractEmit, J as executeMigrationPlanCommand, K as executeMigrateShowPlan, Nt as runContractSpaceSeedPhase, Ot as resolveContractRefToSnapshot, Pt as runMigrationCheck, Q as executeRefSetCommand, Rt as statusForMigrationHash, St as refuseMissingInvariantPath, U as executeDbInit, W as executeDbUpdate, X as executeRefDeleteCommand, Y as executeRefAdvancement, Z as executeRefListCommand, _ as disposeEmitQueue, _t as readMigrationRefs, a as appContractStandInFromIdentity, at as loadContractSource, bt as refuseDeclaredExtensionTargetMismatch, c as buildMigrationSpaceGraphEntries, d as checkSingleTarget, dt as mapIntegrityViolations, g as deriveStatusEdgeAnnotations, h as createControlClient, ht as preflightRefAdvancement, i as advanceRefSafely, it as loadContractRawSafely, jt as resolveToForPlan, kt as resolveFromForPlan, l as buildReadAggregate, lt as mapCaughtMigrationError, m as computeRefAdvancementName, mt as originHashForStatus, nt as listRefsByContractHash, o as appliedHashesFromLedger, pt as migrationSpaceListEntriesFromAggregate, q as executeMigrationNewCommand, r as NO_REF_ADVANCEMENT, rt as loadAggregateIntegrityViolations, s as buildContractSpaceAggregate, st as loadContractSpaceAggregateForCli, tt as hasMigrationPath, u as buildRefAdvancementFields, ut as mapContractAtError, v as enrichContract, wt as refuseUnknownInvariants, xt as refuseMarkerOutsideGraph, y as enumerateCheckSpaces, yt as refuseContractSpaceIntegrity } from "./ref-DZuzAvuD-RQwSwQwC.mjs";
|
|
2
2
|
export { NO_REF_ADVANCEMENT, advanceRefSafely, appContractStandInFromIdentity, appliedHashesFromLedger, buildContractSpaceAggregate, buildMigrationSpaceGraphEntries, buildReadAggregate, buildRefAdvancementFields, checkSingleTarget, computeRefAdvancementName, createControlClient, deriveStatusEdgeAnnotations, disposeEmitQueue, enrichContract, enumerateCheckSpaces, executeContractEmit, executeDbInit, executeDbUpdate, executeDbVerify, executeMigrateShowPlan, executeMigrationNewCommand, executeMigrationPlanCommand, executeRefAdvancement, executeRefDeleteCommand, executeRefListCommand, executeRefSetCommand, hasMigrationPath, listRefsByContractHash, loadAggregateIntegrityViolations, loadContractRawSafely, loadContractSource, loadContractSpaceAggregateForCli, mapCaughtMigrationError, mapContractAtError, mapIntegrityViolations, migrationSpaceListEntriesFromAggregate, originHashForStatus, preflightRefAdvancement, readMigrationRefs, refuseContractSpaceIntegrity, refuseDeclaredExtensionTargetMismatch, refuseMarkerOutsideGraph, refuseMissingInvariantPath, refusePackageCorruptionOnAggregate, refuseUnknownInvariants, resolveContractRef$1 as resolveContractRef, resolveContractRefToSnapshot, resolveFromForPlan, resolveMigrationRef, resolveToForPlan, runContractSpaceSeedPhase, runMigrationCheck, runMigrationList, statusForMigrationHash };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as loadConfigForSections } from "./exports-
|
|
1
|
+
import { f as loadConfigForSections } from "./exports-uIufkd50.mjs";
|
|
2
2
|
import { g as errorInvalidJson } from "./errors-DD6iLGXk-6I9PqjpZ.mjs";
|
|
3
3
|
import { r as buildMigrationArtifacts } from "./migration-CTBcGs-o.mjs";
|
|
4
4
|
import { readFileSync, realpathSync, writeFileSync } from "node:fs";
|
package/dist/config-loader.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { c as isConfigSection, d as loadConfigForFile, f as loadConfigForSections, g as validateOrmSection, h as requireConfigSections, i as expandContractInputs, l as loadConfig, m as ormConfigSection, n as buildLoadedConfig, o as findNearestConfigPathForFile, p as ormConfigSchema, r as evaluateConfigModule, s as globContractInputMatching, t as ORM_CONFIG_SECTION_NAME, u as loadConfigFiles } from "./exports-
|
|
1
|
+
import { c as isConfigSection, d as loadConfigForFile, f as loadConfigForSections, g as validateOrmSection, h as requireConfigSections, i as expandContractInputs, l as loadConfig, m as ormConfigSection, n as buildLoadedConfig, o as findNearestConfigPathForFile, p as ormConfigSchema, r as evaluateConfigModule, s as globContractInputMatching, t as ORM_CONFIG_SECTION_NAME, u as loadConfigFiles } from "./exports-uIufkd50.mjs";
|
|
2
2
|
export { ORM_CONFIG_SECTION_NAME, buildLoadedConfig, evaluateConfigModule, expandContractInputs, findNearestConfigPathForFile, globContractInputMatching, isConfigSection, loadConfig, loadConfigFiles, loadConfigForFile, loadConfigForSections, ormConfigSchema, ormConfigSection, requireConfigSections, validateOrmSection };
|