@prisma/orm-toolchain 8.0.0-rc.14-dev.23 → 8.0.0-rc.14-dev.25
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/{aggregate-CzHNiMIL.mjs → aggregate-By_e1Dsq.mjs} +3 -3
- package/dist/aggregate-By_e1Dsq.mjs.map +1 -0
- package/dist/cli.mjs +7 -4
- package/dist/cli.mjs.map +1 -1
- package/dist/cli__control-api.mjs +1 -1
- package/dist/migration-tools.mjs +1 -1
- package/dist/migration-tools__aggregate.mjs +1 -1
- package/dist/{ref-CfA-jmzP-qW6n6gqk.mjs → ref-CbghmYed-D5e8TuvL.mjs} +5 -5
- package/dist/{ref-CfA-jmzP-qW6n6gqk.mjs.map → ref-CbghmYed-D5e8TuvL.mjs.map} +1 -1
- package/dist/vite-plugin-contract-emit.mjs +1 -1
- package/package.json +12 -12
- package/dist/aggregate-CzHNiMIL.mjs.map +0 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { v as errorFromCaught } from "./caught-errors-DulynoX6-BSeStARm.mjs";
|
|
2
|
-
import { $ as resolveFromForPlan, A as hasMigrationPath, B as migrationSpaceListEntriesFromAggregate, C as executeMigrationPlanCommand, D as executeRefSetCommand, E as executeRefListCommand, G as refuseDeclaredExtensionTargetMismatch, H as preflightRefAdvancement, I as loadContractSpaceAggregateForCli, J as refusePackageCorruptionOnAggregate, K as refuseMarkerOutsideGraph, M as loadAggregateIntegrityViolations, N as loadContractRawSafely, P as loadContractSource, Q as resolveContractRefToSnapshot, R as mapContractAtError, S as executeMigrationNewCommand, T as executeRefDeleteCommand, U as readMigrationRefs, V as originHashForStatus, W as refuseContractSpaceIntegrity, Y as refuseUnknownInvariants, Z as resolveContractRef$1, _ as executeContractEmit, a as appliedHashesFromLedger, b as executeDbVerify, c as buildReadAggregate, d as computeRefAdvancementName, et as resolveMigrationRef, f as createControlClient, g as enumerateCheckSpaces, h as enrichContract, i as appContractStandInFromIdentity, it as runMigrationList, j as listRefsByContractHash, l as buildRefAdvancementFields, m as disposeEmitQueue, n as NO_REF_ADVANCEMENT, nt as runContractSpaceSeedPhase, o as buildContractSpaceAggregate, p as deriveStatusEdgeAnnotations, q as refuseMissingInvariantPath, r as advanceRefSafely, rt as runMigrationCheck, s as buildMigrationSpaceGraphEntries, st as statusForMigrationHash, tt as resolveToForPlan, u as checkSingleTarget, v as executeDbInit, w as executeRefAdvancement, x as executeMigrateShowPlan, y as executeDbUpdate, z as mapIntegrityViolations } from "./ref-
|
|
2
|
+
import { $ as resolveFromForPlan, A as hasMigrationPath, B as migrationSpaceListEntriesFromAggregate, C as executeMigrationPlanCommand, D as executeRefSetCommand, E as executeRefListCommand, G as refuseDeclaredExtensionTargetMismatch, H as preflightRefAdvancement, I as loadContractSpaceAggregateForCli, J as refusePackageCorruptionOnAggregate, K as refuseMarkerOutsideGraph, M as loadAggregateIntegrityViolations, N as loadContractRawSafely, P as loadContractSource, Q as resolveContractRefToSnapshot, R as mapContractAtError, S as executeMigrationNewCommand, T as executeRefDeleteCommand, U as readMigrationRefs, V as originHashForStatus, W as refuseContractSpaceIntegrity, Y as refuseUnknownInvariants, Z as resolveContractRef$1, _ as executeContractEmit, a as appliedHashesFromLedger, b as executeDbVerify, c as buildReadAggregate, d as computeRefAdvancementName, et as resolveMigrationRef, f as createControlClient, g as enumerateCheckSpaces, h as enrichContract, i as appContractStandInFromIdentity, it as runMigrationList, j as listRefsByContractHash, l as buildRefAdvancementFields, m as disposeEmitQueue, n as NO_REF_ADVANCEMENT, nt as runContractSpaceSeedPhase, o as buildContractSpaceAggregate, p as deriveStatusEdgeAnnotations, q as refuseMissingInvariantPath, r as advanceRefSafely, rt as runMigrationCheck, s as buildMigrationSpaceGraphEntries, st as statusForMigrationHash, tt as resolveToForPlan, u as checkSingleTarget, v as executeDbInit, w as executeRefAdvancement, x as executeMigrateShowPlan, y as executeDbUpdate, z as mapIntegrityViolations } from "./ref-CbghmYed-D5e8TuvL.mjs";
|
|
3
3
|
export { NO_REF_ADVANCEMENT, advanceRefSafely, appContractStandInFromIdentity, appliedHashesFromLedger, buildContractSpaceAggregate, buildMigrationSpaceGraphEntries, buildReadAggregate, buildRefAdvancementFields, checkSingleTarget, computeRefAdvancementName, createControlClient, deriveStatusEdgeAnnotations, disposeEmitQueue, enrichContract, enumerateCheckSpaces, errorFromCaught, executeContractEmit, executeDbInit, executeDbUpdate, executeDbVerify, executeMigrateShowPlan, executeMigrationNewCommand, executeMigrationPlanCommand, executeRefAdvancement, executeRefDeleteCommand, executeRefListCommand, executeRefSetCommand, hasMigrationPath, listRefsByContractHash, loadAggregateIntegrityViolations, loadContractRawSafely, loadContractSource, loadContractSpaceAggregateForCli, mapContractAtError, mapIntegrityViolations, migrationSpaceListEntriesFromAggregate, originHashForStatus, preflightRefAdvancement, readMigrationRefs, refuseContractSpaceIntegrity, refuseDeclaredExtensionTargetMismatch, refuseMarkerOutsideGraph, refuseMissingInvariantPath, refusePackageCorruptionOnAggregate, refuseUnknownInvariants, resolveContractRef$1 as resolveContractRef, resolveContractRefToSnapshot, resolveFromForPlan, resolveMigrationRef, resolveToForPlan, runContractSpaceSeedPhase, runMigrationCheck, runMigrationList, statusForMigrationHash };
|
package/dist/migration-tools.mjs
CHANGED
|
@@ -9,7 +9,7 @@ import { a as isValidSpaceId, c as spaceMigrationDirectory, i as assertValidSpac
|
|
|
9
9
|
import { a as gatherDiskContractSpaceState, i as emitContractSpaceArtifacts, n as computeExtensionSpaceApplyPath, o as planAllSpaces, r as contractSpaceFromJson, t as assertDescriptorSelfConsistency } from "./spaces-CzLQQYa9.mjs";
|
|
10
10
|
import { n as isGraphNode, t as assertHashIsGraphNode } from "./graph-membership-BQ43lP4A-i4Ov419-.mjs";
|
|
11
11
|
import { c as resolveRefsByContractHash, d as writeRef, i as readRefs, l as validateRefName, n as deleteRef, o as refsByContractHash, r as readRef, s as resolveRef, t as HEAD_REF_NAME, u as validateRefValue } from "./refs-qwvw4_dV-X8sR92eT.mjs";
|
|
12
|
-
import { a as createAggregateContractSpace, c as loadProblemToViolation, d as resolveRecordedPath, f as verifyMigration, i as computeIntegrityViolations, l as planMigration, n as buildFabricatedMigrationEdge, o as createContractSpaceAggregate, r as collectAggregateNamespaces, s as loadContractSpaceAggregate, t as allStorageElementsExternal, u as requireHeadRef } from "./aggregate-
|
|
12
|
+
import { a as createAggregateContractSpace, c as loadProblemToViolation, d as resolveRecordedPath, f as verifyMigration, i as computeIntegrityViolations, l as planMigration, n as buildFabricatedMigrationEdge, o as createContractSpaceAggregate, r as collectAggregateNamespaces, s as loadContractSpaceAggregate, t as allStorageElementsExternal, u as requireHeadRef } from "./aggregate-By_e1Dsq.mjs";
|
|
13
13
|
import { n as parseContractRef, r as parseMigrationRef, t as findEdgeByDirName } from "./ref-resolution-CoHoeFT7.mjs";
|
|
14
14
|
import { i as writeMigrationTs, n as hasMigrationTs, r as shebangLineFor, t as detectScaffoldRuntime } from "./migration-ts-BQuIba9e.mjs";
|
|
15
15
|
import { i as isDirectEntrypoint, n as MigrationContractViews, r as buildMigrationArtifacts, t as Migration } from "./migration-DaFjTC8t.mjs";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as createAggregateContractSpace, c as loadProblemToViolation, d as resolveRecordedPath, f as verifyMigration, i as computeIntegrityViolations, l as planMigration, n as buildFabricatedMigrationEdge, o as createContractSpaceAggregate, r as collectAggregateNamespaces, s as loadContractSpaceAggregate, t as allStorageElementsExternal, u as requireHeadRef } from "./aggregate-
|
|
1
|
+
import { a as createAggregateContractSpace, c as loadProblemToViolation, d as resolveRecordedPath, f as verifyMigration, i as computeIntegrityViolations, l as planMigration, n as buildFabricatedMigrationEdge, o as createContractSpaceAggregate, r as collectAggregateNamespaces, s as loadContractSpaceAggregate, t as allStorageElementsExternal, u as requireHeadRef } from "./aggregate-By_e1Dsq.mjs";
|
|
2
2
|
export { allStorageElementsExternal, buildFabricatedMigrationEdge, collectAggregateNamespaces, computeIntegrityViolations, createAggregateContractSpace, createContractSpaceAggregate, loadContractSpaceAggregate, loadProblemToViolation, planMigration, requireHeadRef, resolveRecordedPath, verifyMigration };
|
|
@@ -12,7 +12,7 @@ import { A as errorRefSetBundleNotFound, B as getTargetMigrations, D as errorPat
|
|
|
12
12
|
import { r as getEmittedArtifactPaths, t as emit } from "./exports-B41NJHCo-BaEu3TXy.mjs";
|
|
13
13
|
import { n as isGraphNode, t as assertHashIsGraphNode } from "./graph-membership-BQ43lP4A-i4Ov419-.mjs";
|
|
14
14
|
import { d as writeRef, i as readRefs, l as validateRefName, n as deleteRef, o as refsByContractHash, t as HEAD_REF_NAME, u as validateRefValue } from "./refs-qwvw4_dV-X8sR92eT.mjs";
|
|
15
|
-
import { d as resolveRecordedPath, f as verifyMigration, l as planMigration, n as buildFabricatedMigrationEdge, r as collectAggregateNamespaces, s as loadContractSpaceAggregate, t as allStorageElementsExternal, u as requireHeadRef } from "./aggregate-
|
|
15
|
+
import { d as resolveRecordedPath, f as verifyMigration, l as planMigration, n as buildFabricatedMigrationEdge, r as collectAggregateNamespaces, s as loadContractSpaceAggregate, t as allStorageElementsExternal, u as requireHeadRef } from "./aggregate-By_e1Dsq.mjs";
|
|
16
16
|
import { c as internalImportRoot, o as importRootForDependencies, r as createImportSpecifierResolver, t as ImportRootError } from "./import-roots-BB3GzIi-.mjs";
|
|
17
17
|
import { n as parseContractRef, r as parseMigrationRef } from "./ref-resolution-CoHoeFT7.mjs";
|
|
18
18
|
import { i as writeMigrationTs } from "./migration-ts-BQuIba9e.mjs";
|
|
@@ -33,7 +33,7 @@ import { notOk, ok } from "@prisma/orm-framework/utils/result";
|
|
|
33
33
|
import { mergeCapabilityMatrices } from "@prisma/orm-framework/components/components";
|
|
34
34
|
import { abortable } from "@prisma/orm-framework/utils/abortable";
|
|
35
35
|
import { resolve as resolve$1 } from "node:path";
|
|
36
|
-
//#region ../../../1-framework/3-tooling/cli/dist/ref-
|
|
36
|
+
//#region ../../../1-framework/3-tooling/cli/dist/ref-CbghmYed.mjs
|
|
37
37
|
/**
|
|
38
38
|
* Asserts that all framework components are compatible with the expected family and target.
|
|
39
39
|
*
|
|
@@ -4314,8 +4314,8 @@ async function executeMigrationPlanCommandInner(options, startTime, callbacks) {
|
|
|
4314
4314
|
try {
|
|
4315
4315
|
const planner = migrations.createPlanner(controlAdapter);
|
|
4316
4316
|
if (isAutoBaseline && fromHash !== null && fromContract !== null && fromContractInStore) {
|
|
4317
|
-
const
|
|
4318
|
-
const
|
|
4317
|
+
const deltaTimestamp = /* @__PURE__ */ new Date();
|
|
4318
|
+
const baselineTimestamp = /* @__PURE__ */ new Date(deltaTimestamp.getTime() - 6e4);
|
|
4319
4319
|
const baselineDirName = formatMigrationDirName(baselineTimestamp, "baseline");
|
|
4320
4320
|
const deltaDirName = formatMigrationDirName(deltaTimestamp, options.name ?? "migration");
|
|
4321
4321
|
const baselinePackageDir = join(appMigrationsDir, baselineDirName);
|
|
@@ -4593,4 +4593,4 @@ async function executeRefListCommand(options) {
|
|
|
4593
4593
|
//#endregion
|
|
4594
4594
|
export { resolveFromForPlan as $, hasMigrationPath as A, migrationSpaceListEntriesFromAggregate as B, executeMigrationPlanCommand as C, executeRefSetCommand as D, executeRefListCommand as E, loadContractSourceWithStack as F, refuseDeclaredExtensionTargetMismatch as G, preflightRefAdvancement as H, loadContractSpaceAggregateForCli as I, refusePackageCorruptionOnAggregate as J, refuseMarkerOutsideGraph as K, looksLikePath as L, loadAggregateIntegrityViolations as M, loadContractRawSafely as N, findPackageByDirPath as O, loadContractSource as P, resolveContractRefToSnapshot as Q, mapContractAtError as R, executeMigrationNewCommand as S, executeRefDeleteCommand as T, readMigrationRefs as U, originHashForStatus as V, refuseContractSpaceIntegrity as W, resolveAppTargetPath as X, refuseUnknownInvariants as Y, resolveContractRef$1 as Z, executeContractEmit as _, appliedHashesFromLedger as a, snapshotVerifierFor as at, executeDbVerify as b, buildReadAggregate as c, toDeclaredExtensionsFromRaw as ct, computeRefAdvancementName as d, resolveMigrationRef as et, createControlClient as f, enumerateCheckSpaces as g, enrichContract as h, appContractStandInFromIdentity as i, runMigrationList as it, listRefsByContractHash as j, formatSourceDiagnostic as k, buildRefAdvancementFields as l, validateLoadedContract as lt, disposeEmitQueue as m, NO_REF_ADVANCEMENT as n, runContractSpaceSeedPhase as nt, buildContractSpaceAggregate as o, sourceWarningDiagnostic as ot, deriveStatusEdgeAnnotations as p, refuseMissingInvariantPath as q, advanceRefSafely as r, runMigrationCheck as rt, buildMigrationSpaceGraphEntries as s, statusForMigrationHash as st, DB_UPDATE_POLICY as t, resolveToForPlan as tt, checkSingleTarget as u, executeDbInit as v, executeRefAdvancement as w, executeMigrateShowPlan as x, executeDbUpdate as y, mapIntegrityViolations as z };
|
|
4595
4595
|
|
|
4596
|
-
//# sourceMappingURL=ref-
|
|
4596
|
+
//# sourceMappingURL=ref-CbghmYed-D5e8TuvL.mjs.map
|