@prisma/orm-toolchain 8.0.0-rc.9-dev.1 → 8.0.0-rc.9-dev.3
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-EMuVN6hq.mjs → aggregate-Ib7P8moX.mjs} +2 -2
- package/dist/{aggregate-EMuVN6hq.mjs.map → aggregate-Ib7P8moX.mjs.map} +1 -1
- package/dist/cli.mjs +5 -5
- package/dist/cli.mjs.map +1 -1
- package/dist/cli__control-api.d.mts +1 -1
- 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/{domain-type-generation-bpSO3Y0L-jo2C7LlH.mjs → domain-type-generation-CR9ECUau-DOlKbcaE.mjs} +20 -6
- package/dist/domain-type-generation-CR9ECUau-DOlKbcaE.mjs.map +1 -0
- package/dist/{domain-type-generation-PkAb39ob-Ct8AGqow.d.mts → domain-type-generation-X6-AaL1U-DHEoRf_y.d.mts} +14 -3
- package/dist/domain-type-generation-X6-AaL1U-DHEoRf_y.d.mts.map +1 -0
- package/dist/emitter.d.mts +2 -2
- package/dist/emitter.mjs +2 -2
- package/dist/emitter__domain-type-generation.d.mts +2 -2
- package/dist/emitter__domain-type-generation.mjs +2 -2
- package/dist/{exports-4S7plLIx.mjs → exports-BysXxIyI.mjs} +2 -2
- package/dist/{exports-4S7plLIx.mjs.map → exports-BysXxIyI.mjs.map} +1 -1
- package/dist/exports-CE6OD63o-4Qpqr2W7.mjs +398 -0
- package/dist/exports-CE6OD63o-4Qpqr2W7.mjs.map +1 -0
- package/dist/{exports-Cv8nMmBT.mjs → exports-gEustzOH.mjs} +2 -2
- package/dist/{exports-Cv8nMmBT.mjs.map → exports-gEustzOH.mjs.map} +1 -1
- package/dist/{index-Dgwl8Tzs.d.mts → index-D217lbiW.d.mts} +7 -3
- package/dist/index-D217lbiW.d.mts.map +1 -0
- package/dist/migration-tools.mjs +1 -1
- package/dist/migration-tools__aggregate.mjs +1 -1
- package/dist/{ref-CUMSMd2D-BUVY_EPC.mjs → ref-BPBIUGrB-BFzvJ0bv.mjs} +10 -6
- package/dist/ref-BPBIUGrB-BFzvJ0bv.mjs.map +1 -0
- package/dist/vite-plugin-contract-emit.mjs +3 -3
- package/package.json +12 -12
- package/dist/domain-type-generation-PkAb39ob-Ct8AGqow.d.mts.map +0 -1
- package/dist/domain-type-generation-bpSO3Y0L-jo2C7LlH.mjs.map +0 -1
- package/dist/exports-Dw2WIX63-CQgI2e_L.mjs +0 -160
- package/dist/exports-Dw2WIX63-CQgI2e_L.mjs.map +0 -1
- package/dist/index-Dgwl8Tzs.d.mts.map +0 -1
- package/dist/ref-CUMSMd2D-BUVY_EPC.mjs.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as getEmittedArtifactPaths, t as emit } from "./exports-
|
|
1
|
+
import { r as getEmittedArtifactPaths, t as emit } from "./exports-CE6OD63o-4Qpqr2W7.mjs";
|
|
2
2
|
import { O as errorNoInvariantPath, P as errorUnknownInvariant, b as errorInvalidRefName, i as errorContractDeserializationFailed, t as MigrationToolsError } from "./errors-SoLLYLtw-DMxVbVs9.mjs";
|
|
3
3
|
import { a as snapshotsImportPathFrom, o as writeContractSnapshot, r as readContractSnapshotJson, t as contractSnapshotDir } from "./contract-snapshot-store-qGrwlGmt-Cf2NFzRL.mjs";
|
|
4
4
|
import { n as verifyMigrationHash, t as computeMigrationHash } from "./hash-DH8hl5Rq-BpM2t3Nu.mjs";
|
|
@@ -9,7 +9,7 @@ import { n as isGraphNode, t as assertHashIsGraphNode } from "./graph-membership
|
|
|
9
9
|
import { a as findPath, o as findPathWithDecision, r as findLatestMigration } from "./migration-graph-CW4bMmTz-B5xFtFVB.mjs";
|
|
10
10
|
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-BpSpzdYB-BcDelHGt.mjs";
|
|
11
11
|
import { a as isValidSpaceId, c as spaceMigrationDirectory, l as spaceRefsDirectory, o as listContractSpaceDirectories, s as readContractSpaceHeadRef, t as APP_SPACE_ID$1 } from "./verify-contract-spaces-CrxvgpwD-D5LLXGci.mjs";
|
|
12
|
-
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-
|
|
12
|
+
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-Ib7P8moX.mjs";
|
|
13
13
|
import { i as emitContractSpaceArtifacts, o as planAllSpaces } from "./spaces-BCZiAZQn.mjs";
|
|
14
14
|
import { c as internalImportRoot, o as importRootForDependencies, r as createImportSpecifierResolver } from "./import-roots-kw_vAdpJ.mjs";
|
|
15
15
|
import { n as parseContractRef, r as parseMigrationRef } from "./ref-resolution-BWpwb8_b.mjs";
|
|
@@ -32,7 +32,7 @@ import { createHash } from "node:crypto";
|
|
|
32
32
|
import { canonicalizeJson } from "@prisma/orm-framework/components/utils";
|
|
33
33
|
import { abortable } from "@prisma/orm-framework/utils/abortable";
|
|
34
34
|
import { resolve as resolve$1 } from "node:path";
|
|
35
|
-
//#region ../../../1-framework/3-tooling/cli/dist/ref-
|
|
35
|
+
//#region ../../../1-framework/3-tooling/cli/dist/ref-BPBIUGrB.mjs
|
|
36
36
|
/**
|
|
37
37
|
* The typed remediation the CLI attaches to its own errors and findings.
|
|
38
38
|
* Constructors live here rather than in any library the CLI calls: naming a
|
|
@@ -2528,7 +2528,10 @@ var ControlClientImpl = class {
|
|
|
2528
2528
|
meta: void 0
|
|
2529
2529
|
});
|
|
2530
2530
|
}
|
|
2531
|
-
const result = await emit(deserializedContract, this.stack, this.options.family.emission, {
|
|
2531
|
+
const result = await emit(deserializedContract, this.stack, this.options.family.emission, {
|
|
2532
|
+
serializeContract: (contract) => this.options.target.contractSerializer.serializeContract(contract),
|
|
2533
|
+
...ifDefined("supportsNamespaces", this.options.target.supportsNamespaces)
|
|
2534
|
+
});
|
|
2532
2535
|
onProgress?.({
|
|
2533
2536
|
action: "emit",
|
|
2534
2537
|
kind: "spanEnd",
|
|
@@ -2937,7 +2940,8 @@ async function executeContractEmit(options, dependencies = defaultContractEmitDe
|
|
|
2937
2940
|
serializeContract,
|
|
2938
2941
|
resolveImportSpecifier: createProjectSpecifierResolver(configPath ?? outputJsonPath),
|
|
2939
2942
|
...ifDefined("shouldPreserveEmpty", contractSerializer.shouldPreserveEmpty),
|
|
2940
|
-
...ifDefined("sortStorage", contractSerializer.sortStorage)
|
|
2943
|
+
...ifDefined("sortStorage", contractSerializer.sortStorage),
|
|
2944
|
+
...ifDefined("supportsNamespaces", config.target.supportsNamespaces)
|
|
2941
2945
|
}));
|
|
2942
2946
|
} catch (error) {
|
|
2943
2947
|
endSpan(onProgress, "emit", "error");
|
|
@@ -4727,4 +4731,4 @@ async function executeRefListCommand(options) {
|
|
|
4727
4731
|
//#endregion
|
|
4728
4732
|
export { loadContractRawSafely as $, errorMigrationPlanningFailed as A, statusForMigrationHash as At, executeDbUpdate as B, errorDestructiveChanges as C, resolveRefAdvancementFields as Ct, errorLegendHumanOnly as D, runMigrationCheck as Dt, errorHashMismatch as E, runContractSpaceSeedPhase as Et, errorTargetMigrationNotSupported as F, executeRefAdvancement as G, executeMigrateShowPlan as H, errorTargetMismatch as I, executeRefSetCommand as J, executeRefDeleteCommand as K, errorUnexpected as L, errorPathUnreachable as M, toDeclaredExtensionsFromRaw as Mt, errorRunnerFailed as N, errorMarkerMissing as O, runMigrationList as Ot, errorRuntime as P, loadAggregateIntegrityViolations as Q, executeContractEmit as R, errorDatabaseConnectionRequired as S, resolveMigrationRef as St, errorFileNotFound as T, runCommandAction as Tt, executeMigrationNewCommand as U, executeDbVerify as V, executeMigrationPlanCommand as W, hasMigrationPath as X, findPackageByDirPath as Y, listRefsByContractHash as Z, enumerateCheckSpaces as _, requireLiveDatabase as _t, buildContractSpaceAggregate as a, maskConnectionUrl as at, errorContractArgConflict as b, resolveContractRefToSnapshot as bt, buildRefAdvancementFields as c, readContractEnvelope as ct, closeQuietly as d, refuseContractSpaceIntegrity as dt, loadContractSpaceAggregateForCli as et, computeRefAdvancementName as f, refuseDeclaredExtensionTargetMismatch as ft, enrichContract as g, refuseUnknownInvariants as gt, disposeEmitQueue as h, refusePackageCorruptionOnAggregate as ht, appliedHashesFromLedger as i, mapIntegrityViolations as it, errorNoMigrations as j, targetSupportsMigrations as jt, errorMigrationPackageNotFound as k, sanitizeErrorMessage as kt, checkSingleTarget as l, readContractIR as lt, deriveStatusEdgeAnnotations as m, refuseMissingInvariantPath as mt, advanceRefSafely as n, mapCaughtMigrationError as nt, buildMigrationSpaceGraphEntries as o, migrationSpaceListEntriesFromAggregate as ot, createControlClient as p, refuseMarkerOutsideGraph as pt, executeRefListCommand as q, appContractStandInFromIdentity as r, mapContractAtError as rt, buildReadAggregate as s, originHashForStatus as st, CliStructuredError$1 as t, looksLikePath as tt, chooseAction as u, readMigrationRefs as ut, errorConfigValidation$1 as v, resolveAppTargetPath as vt, errorDriverRequired as w, resolveToForPlan as wt, errorContractValidationFailed as x, resolveFromForPlan as xt, errorConsentPlanMismatch as y, resolveContractRef$1 as yt, executeDbInit as z };
|
|
4729
4733
|
|
|
4730
|
-
//# sourceMappingURL=ref-
|
|
4734
|
+
//# sourceMappingURL=ref-BPBIUGrB-BFzvJ0bv.mjs.map
|