@prisma/orm-toolchain 8.0.0-rc.18-dev.17 → 8.0.0-rc.18-dev.19
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.mjs +76 -27
- package/dist/cli.mjs.map +1 -1
- package/dist/cli__control-api.mjs +1 -1
- package/dist/{ref-UzwhFoEX-BdXkOZFM.mjs → ref-C4HTKAnF-CtTLsNvf.mjs} +3 -3
- package/dist/ref-C4HTKAnF-CtTLsNvf.mjs.map +1 -0
- package/dist/vite-plugin-contract-emit.mjs +1 -1
- package/package.json +12 -12
- package/dist/ref-UzwhFoEX-BdXkOZFM.mjs.map +0 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { w as errorFromCaught } from "./caught-errors-olsx_RBn-BC8azlie.mjs";
|
|
2
|
-
import { $ as refuseMarkerOutsideGraph, A as executeRefAdvancement, B as loadAggregateIntegrityViolations, C as executeDbInit, D as executeMigrateShowPlan, E as executeDbVerify, H as loadContractSource, I as hasMigrationPath, J as migrationSpaceListEntriesFromAggregate, K as mapContractAtError, M as executeRefListCommand, N as executeRefSetCommand, O as executeMigrationNewCommand, Q as refuseDeclaredExtensionTargetMismatch, R as listRefsByContractHash, S as executeContractEmit, T as executeDbUpdate, V as loadContractRawSafely, W as loadContractSpaceAggregateForCli, X as readMigrationRefs, Y as preflightRefAdvancement, Z as refuseContractSpaceIntegrity, _ as createControlClient, _t as statusForMigrationHash, at as resolveContractRef$1, b as enrichContract, c as appliedHashesFromLedger, ct as resolveMigrationRef, d as buildReadAggregate, et as refuseMissingInvariantPath, f as buildRefAdvancementFields, ft as runContractSpaceSeedPhase, j as executeRefDeleteCommand, k as executeMigrationPlanCommand, l as buildContractSpaceAggregate, lt as resolveStatements, m as computeRefAdvancementName, mt as runMigrationList, nt as refuseUnknownInvariants, o as advanceRefSafely, ot as resolveContractRefToSnapshot, p as checkSingleTarget, pt as runMigrationCheck, q as mapIntegrityViolations, r as NO_REF_ADVANCEMENT, s as appContractStandInFromIdentity, st as resolveFromForPlan, tt as refusePackageCorruptionOnAggregate, u as buildMigrationSpaceGraphEntries, ut as resolveToForPlan, v as deriveStatusEdgeAnnotations, w as executeDbSign, x as enumerateCheckSpaces, y as disposeEmitQueue } from "./ref-
|
|
2
|
+
import { $ as refuseMarkerOutsideGraph, A as executeRefAdvancement, B as loadAggregateIntegrityViolations, C as executeDbInit, D as executeMigrateShowPlan, E as executeDbVerify, H as loadContractSource, I as hasMigrationPath, J as migrationSpaceListEntriesFromAggregate, K as mapContractAtError, M as executeRefListCommand, N as executeRefSetCommand, O as executeMigrationNewCommand, Q as refuseDeclaredExtensionTargetMismatch, R as listRefsByContractHash, S as executeContractEmit, T as executeDbUpdate, V as loadContractRawSafely, W as loadContractSpaceAggregateForCli, X as readMigrationRefs, Y as preflightRefAdvancement, Z as refuseContractSpaceIntegrity, _ as createControlClient, _t as statusForMigrationHash, at as resolveContractRef$1, b as enrichContract, c as appliedHashesFromLedger, ct as resolveMigrationRef, d as buildReadAggregate, et as refuseMissingInvariantPath, f as buildRefAdvancementFields, ft as runContractSpaceSeedPhase, j as executeRefDeleteCommand, k as executeMigrationPlanCommand, l as buildContractSpaceAggregate, lt as resolveStatements, m as computeRefAdvancementName, mt as runMigrationList, nt as refuseUnknownInvariants, o as advanceRefSafely, ot as resolveContractRefToSnapshot, p as checkSingleTarget, pt as runMigrationCheck, q as mapIntegrityViolations, r as NO_REF_ADVANCEMENT, s as appContractStandInFromIdentity, st as resolveFromForPlan, tt as refusePackageCorruptionOnAggregate, u as buildMigrationSpaceGraphEntries, ut as resolveToForPlan, v as deriveStatusEdgeAnnotations, w as executeDbSign, x as enumerateCheckSpaces, y as disposeEmitQueue } from "./ref-C4HTKAnF-CtTLsNvf.mjs";
|
|
3
3
|
export { NO_REF_ADVANCEMENT, advanceRefSafely, appContractStandInFromIdentity, appliedHashesFromLedger, buildContractSpaceAggregate, buildMigrationSpaceGraphEntries, buildReadAggregate, buildRefAdvancementFields, checkSingleTarget, computeRefAdvancementName, createControlClient, deriveStatusEdgeAnnotations, disposeEmitQueue, enrichContract, enumerateCheckSpaces, errorFromCaught, executeContractEmit, executeDbInit, executeDbSign, executeDbUpdate, executeDbVerify, executeMigrateShowPlan, executeMigrationNewCommand, executeMigrationPlanCommand, executeRefAdvancement, executeRefDeleteCommand, executeRefListCommand, executeRefSetCommand, hasMigrationPath, listRefsByContractHash, loadAggregateIntegrityViolations, loadContractRawSafely, loadContractSource, loadContractSpaceAggregateForCli, mapContractAtError, mapIntegrityViolations, migrationSpaceListEntriesFromAggregate, preflightRefAdvancement, readMigrationRefs, refuseContractSpaceIntegrity, refuseDeclaredExtensionTargetMismatch, refuseMarkerOutsideGraph, refuseMissingInvariantPath, refusePackageCorruptionOnAggregate, refuseUnknownInvariants, resolveContractRef$1 as resolveContractRef, resolveContractRefToSnapshot, resolveFromForPlan, resolveMigrationRef, resolveStatements, resolveToForPlan, runContractSpaceSeedPhase, runMigrationCheck, runMigrationList, statusForMigrationHash };
|
|
@@ -34,7 +34,7 @@ import { asNamespaceId } from "@prisma/orm-framework/contract/types";
|
|
|
34
34
|
import { isDeepStrictEqual } from "node:util";
|
|
35
35
|
import { abortable } from "@prisma/orm-framework/utils/abortable";
|
|
36
36
|
import { resolve as resolve$1 } from "node:path";
|
|
37
|
-
//#region ../../../1-framework/3-tooling/cli/dist/ref-
|
|
37
|
+
//#region ../../../1-framework/3-tooling/cli/dist/ref-C4HTKAnF.mjs
|
|
38
38
|
/**
|
|
39
39
|
* The meta of a contract that failed to load because the family refused it, such as the columns whose defaults it refused, for the command to report: the refusal's own meta, or the `refusedDefaults` a migration-tools error kept from it.
|
|
40
40
|
*/
|
|
@@ -1480,7 +1480,7 @@ function failureReports(failure, resolutions) {
|
|
|
1480
1480
|
});
|
|
1481
1481
|
const { failedTypeChange, rowsWithoutValue } = failure;
|
|
1482
1482
|
const operationIndex = failedTypeChange?.operationIndex ?? rowsWithoutValue?.[0]?.operationIndex;
|
|
1483
|
-
const edge = operationIndex
|
|
1483
|
+
const edge = operationIndex !== void 0 ? edgeOfOperation(resolution.entry.migrationEdges, operationIndex) : failure.code === "MIGRATION.SCHEMA_VERIFY_FAILED" ? resolution.entry.migrationEdges.at(-1) : void 0;
|
|
1484
1484
|
return {
|
|
1485
1485
|
...ifDefined("failedTypeChange", failedTypeChange === void 0 ? void 0 : failedTypeChangeReport(failedTypeChange, fieldText(failedTypeChange.field))),
|
|
1486
1486
|
...ifDefined("rowsWithoutValue", rowsWithoutValue?.map(({ field, reason }) => ({
|
|
@@ -6116,4 +6116,4 @@ async function executeRefListCommand(options) {
|
|
|
6116
6116
|
//#endregion
|
|
6117
6117
|
export { refuseMarkerOutsideGraph as $, executeRefAdvancement as A, loadAggregateIntegrityViolations as B, executeDbInit as C, executeMigrateShowPlan as D, executeDbVerify as E, formatSourceDiagnostic as F, looksLikePath as G, loadContractSource as H, hasMigrationPath as I, migrationSpaceListEntriesFromAggregate as J, mapContractAtError as K, isStatementVerb as L, executeRefListCommand as M, executeRefSetCommand as N, executeMigrationNewCommand as O, findPackageByDirPath as P, refuseDeclaredExtensionTargetMismatch as Q, listRefsByContractHash as R, executeContractEmit as S, executeDbUpdate as T, loadContractSourceWithStack as U, loadContractRawSafely as V, loadContractSpaceAggregateForCli as W, readMigrationRefs as X, preflightRefAdvancement as Y, refuseContractSpaceIntegrity as Z, createControlClient as _, statusForMigrationHash as _t, RECORDED_OR_EMPTY_CONTRACT_REF_FORMS as a, resolveContractRef$1 as at, enrichContract as b, appliedHashesFromLedger as c, resolveMigrationRef as ct, buildReadAggregate as d, retryCommandFor as dt, refuseMissingInvariantPath as et, buildRefAdvancementFields as f, runContractSpaceSeedPhase as ft, convertAndDelete as g, sourceWarningDiagnostic as gt, contractValidationMeta as h, snapshotVerifierFor as ht, RECORDED_CONTRACT_REF_FORMS as i, resolveAppTargetPath as it, executeRefDeleteCommand as j, executeMigrationPlanCommand as k, buildContractSpaceAggregate as l, resolveStatements as lt, computeRefAdvancementName as m, runMigrationList as mt, DB_UPDATE_POLICY as n, refuseUnknownInvariants as nt, advanceRefSafely as o, resolveContractRefToSnapshot as ot, checkSingleTarget as p, runMigrationCheck as pt, mapIntegrityViolations as q, NO_REF_ADVANCEMENT as r, requireDatabaseForLiveMarkerUse as rt, appContractStandInFromIdentity as s, resolveFromForPlan as st, ALL_CONTRACT_REF_FORMS as t, refusePackageCorruptionOnAggregate as tt, buildMigrationSpaceGraphEntries as u, resolveToForPlan as ut, deriveStatusEdgeAnnotations as v, toDeclaredExtensionsFromRaw as vt, executeDbSign as w, enumerateCheckSpaces as x, disposeEmitQueue as y, validateLoadedContract as yt, liveMarkerUse as z };
|
|
6118
6118
|
|
|
6119
|
-
//# sourceMappingURL=ref-
|
|
6119
|
+
//# sourceMappingURL=ref-C4HTKAnF-CtTLsNvf.mjs.map
|