@prisma/orm-toolchain 8.0.0-rc.11-dev.21 → 8.0.0-rc.11-dev.23

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.
Files changed (27) hide show
  1. package/dist/cli.mjs +5 -5
  2. package/dist/cli__control-api.d.mts +1 -1
  3. package/dist/cli__control-api.mjs +1 -1
  4. package/dist/cli__migration-cli.mjs +1 -1
  5. package/dist/config-loader.mjs +1 -1
  6. package/dist/emitter.d.mts +1 -1
  7. package/dist/emitter.mjs +1 -1
  8. package/dist/{exports-HR2MWHrQ.mjs → exports-Bg8ce6Ih.mjs} +2 -2
  9. package/dist/{exports-HR2MWHrQ.mjs.map → exports-Bg8ce6Ih.mjs.map} +1 -1
  10. package/dist/{exports-DkJil2JJ-6p86L2r4.mjs → exports-DI1kMms6--e9LdT9A.mjs} +3 -3
  11. package/dist/{exports-DkJil2JJ-6p86L2r4.mjs.map → exports-DI1kMms6--e9LdT9A.mjs.map} +1 -1
  12. package/dist/{exports-Do7_pH8Y.mjs → exports-DJ4RhlW4.mjs} +2 -2
  13. package/dist/{exports-Do7_pH8Y.mjs.map → exports-DJ4RhlW4.mjs.map} +1 -1
  14. package/dist/{import-roots-DK5SffvZ.mjs → import-roots-BgbD211J.mjs} +2 -2
  15. package/dist/{import-roots-DK5SffvZ.mjs.map → import-roots-BgbD211J.mjs.map} +1 -1
  16. package/dist/{index-K9cFK1Ge.d.mts → index-DG1D9rrd.d.mts} +6 -6
  17. package/dist/{index-K9cFK1Ge.d.mts.map → index-DG1D9rrd.d.mts.map} +1 -1
  18. package/dist/publish-surface.mjs +2 -2
  19. package/dist/publish-surface__import-roots.mjs +1 -1
  20. package/dist/publish-surface__shells.mjs +1 -1
  21. package/dist/{ref-fSTPpdt3-BulCTZne.mjs → ref-fSTPpdt3-DTb2_ACs.mjs} +3 -3
  22. package/dist/{ref-fSTPpdt3-BulCTZne.mjs.map → ref-fSTPpdt3-DTb2_ACs.mjs.map} +1 -1
  23. package/dist/{shells-Bx5Y1_Qa.mjs → shells-BafZvOhr.mjs} +2 -1
  24. package/dist/shells-BafZvOhr.mjs.map +1 -0
  25. package/dist/vite-plugin-contract-emit.mjs +3 -3
  26. package/package.json +12 -12
  27. package/dist/shells-Bx5Y1_Qa.mjs.map +0 -1
package/dist/cli.mjs CHANGED
@@ -1,13 +1,13 @@
1
- import { r as getEmittedArtifactPaths } from "./exports-DkJil2JJ-6p86L2r4.mjs";
1
+ import { r as getEmittedArtifactPaths } from "./exports-DI1kMms6--e9LdT9A.mjs";
2
2
  import { t as MigrationToolsError } from "./errors-SoLLYLtw-DMxVbVs9.mjs";
3
3
  import { t as contractSnapshotDir } from "./contract-snapshot-store-D-mFkiHR-CFl0ulR2.mjs";
4
4
  import { t as EMPTY_CONTRACT_HASH } from "./constants-CM-w38DQ-Cz_EXbOc.mjs";
5
5
  import { r as readRef } from "./refs-BpSpzdYB-BcDelHGt.mjs";
6
6
  import { c as spaceMigrationDirectory } from "./verify-contract-spaces-_vwt5LT0-BQAf8Q4T.mjs";
7
- import { i as createScaffoldSpecifierResolver } from "./import-roots-DK5SffvZ.mjs";
8
- import { $ as listRefsByContractHash, A as errorMarkerMissing, At as sanitizeErrorMessage, B as executeContractEmit, C as errorContractValidationFailed, D as errorFileNotFound, E as errorDriverRequired, Et as runCommandAction, F as errorRunnerFailed, G as executeMigrationNewCommand, I as errorRuntime, J as executeRefDeleteCommand, K as executeMigrationPlanCommand, L as errorTargetMigrationNotSupported, M as errorMigrationPlanningFailed, Mt as targetSupportsMigrations, N as errorNoMigrations, Nt as toDeclaredExtensionsFromRaw, O as errorHashMismatch, Ot as runMigrationCheck, P as errorPathUnreachable, Q as hasMigrationPath, R as errorTargetMismatch, S as errorContractArgConflict, St as resolveContractRefToSnapshot, T as errorDestructiveChanges, W as executeMigrateShowPlan, X as executeRefSetCommand, Y as executeRefListCommand, Z as findPackageByDirPath, _t as refusePackageCorruptionOnAggregate, a as appliedHashesFromLedger, at as mapContractAtError, b as errorConfigValidation$1, bt as resolveAppTargetPath, c as buildReadAggregate, ct as migrationSpaceListEntriesFromAggregate, d as chooseAction, dt as readContractEnvelope, et as loadAggregateIntegrityViolations, f as closeQuietly, ft as readMigrationRefs, gt as refuseMissingInvariantPath, h as deriveStatusEdgeAnnotations, ht as refuseMarkerOutsideGraph, it as mapCaughtMigrationError, j as errorMigrationPackageNotFound, jt as statusForMigrationHash, k as errorLegendHumanOnly, kt as runMigrationList, l as buildRefAdvancementFields, lt as originHashForStatus, m as createControlClient, n as NO_REF_ADVANCEMENT, nt as loadContractSpaceAggregateForCli, p as computeRefAdvancementName, pt as refuseContractSpaceIntegrity, r as advanceRefSafely, rt as looksLikePath, s as buildMigrationSpaceGraphEntries, st as maskConnectionUrl, t as CliStructuredError$1$1, tt as loadContractRawSafely, u as checkSingleTarget, ut as preflightRefAdvancement, v as enumerateCheckSpaces, vt as refuseUnknownInvariants, w as errorDatabaseConnectionRequired, wt as resolveMigrationRef, x as errorConsentPlanMismatch, xt as resolveContractRef$1, y as errorAdvanceRefArgConflict, yt as requireLiveDatabase, z as errorUnexpected } from "./ref-fSTPpdt3-BulCTZne.mjs";
7
+ import { i as createScaffoldSpecifierResolver } from "./import-roots-BgbD211J.mjs";
8
+ import { $ as listRefsByContractHash, A as errorMarkerMissing, At as sanitizeErrorMessage, B as executeContractEmit, C as errorContractValidationFailed, D as errorFileNotFound, E as errorDriverRequired, Et as runCommandAction, F as errorRunnerFailed, G as executeMigrationNewCommand, I as errorRuntime, J as executeRefDeleteCommand, K as executeMigrationPlanCommand, L as errorTargetMigrationNotSupported, M as errorMigrationPlanningFailed, Mt as targetSupportsMigrations, N as errorNoMigrations, Nt as toDeclaredExtensionsFromRaw, O as errorHashMismatch, Ot as runMigrationCheck, P as errorPathUnreachable, Q as hasMigrationPath, R as errorTargetMismatch, S as errorContractArgConflict, St as resolveContractRefToSnapshot, T as errorDestructiveChanges, W as executeMigrateShowPlan, X as executeRefSetCommand, Y as executeRefListCommand, Z as findPackageByDirPath, _t as refusePackageCorruptionOnAggregate, a as appliedHashesFromLedger, at as mapContractAtError, b as errorConfigValidation$1, bt as resolveAppTargetPath, c as buildReadAggregate, ct as migrationSpaceListEntriesFromAggregate, d as chooseAction, dt as readContractEnvelope, et as loadAggregateIntegrityViolations, f as closeQuietly, ft as readMigrationRefs, gt as refuseMissingInvariantPath, h as deriveStatusEdgeAnnotations, ht as refuseMarkerOutsideGraph, it as mapCaughtMigrationError, j as errorMigrationPackageNotFound, jt as statusForMigrationHash, k as errorLegendHumanOnly, kt as runMigrationList, l as buildRefAdvancementFields, lt as originHashForStatus, m as createControlClient, n as NO_REF_ADVANCEMENT, nt as loadContractSpaceAggregateForCli, p as computeRefAdvancementName, pt as refuseContractSpaceIntegrity, r as advanceRefSafely, rt as looksLikePath, s as buildMigrationSpaceGraphEntries, st as maskConnectionUrl, t as CliStructuredError$1$1, tt as loadContractRawSafely, u as checkSingleTarget, ut as preflightRefAdvancement, v as enumerateCheckSpaces, vt as refuseUnknownInvariants, w as errorDatabaseConnectionRequired, wt as resolveMigrationRef, x as errorConsentPlanMismatch, xt as resolveContractRef$1, y as errorAdvanceRefArgConflict, yt as requireLiveDatabase, z as errorUnexpected } from "./ref-fSTPpdt3-DTb2_ACs.mjs";
9
9
  import { n as buildNextSteps, t as InitOutputSchema } from "./output-D83nTTpC-XlvN30yS.mjs";
10
- import { r as loadConfig, t as finalizeConfig } from "./exports-Do7_pH8Y.mjs";
10
+ import { r as loadConfig, t as finalizeConfig } from "./exports-DJ4RhlW4.mjs";
11
11
  import { createRequire } from "node:module";
12
12
  import { existsSync, mkdirSync, readFileSync, rmSync, unlinkSync, writeFileSync } from "node:fs";
13
13
  import { ifDefined } from "@prisma/orm-framework/utils/defined";
@@ -5144,7 +5144,7 @@ const lspCommand = defineServerCommand({
5144
5144
  } },
5145
5145
  handler: async (args, io) => {
5146
5146
  const exitCode = await withoutClientProcessIdInArgv(async () => {
5147
- const { startServer } = await import("./exports-HR2MWHrQ.mjs");
5147
+ const { startServer } = await import("./exports-Bg8ce6Ih.mjs");
5148
5148
  return startServer({
5149
5149
  stdin: io.stdin,
5150
5150
  stdout: io.stdout,
@@ -2,7 +2,7 @@ import { i as Refs, n as RefEntry } from "./refs-BNCUu58Y-BIso5Jfg.mjs";
2
2
  import { n as MigrationGraph } from "./graph-bDjJ4GL9-BhFevsJS.mjs";
3
3
  import { r as MigrationRef, t as ContractRef } from "./ref-resolution-CaHQJXE0.mjs";
4
4
  import { A as RenderContractDtsFailure, C as EmitResult, D as IntrospectOptions, E as ExecuteDbVerifyResult, F as SchemaVerifyOptions, I as SignOptions, L as VerifyOptions, M as RenderContractDtsOptions, N as RenderContractDtsResult, P as RenderContractDtsSuccess, R as executeDbVerify, S as EmitOptions, T as ExecuteDbVerifyOptions, _ as DbUpdateResult, a as ControlClient, b as EmitFailure, c as CreateControlClient, d as DbInitOptions, f as DbInitResult, g as DbUpdateOptions, h as DbUpdateFailureCode, i as ControlActionName, j as RenderContractDtsFailureCode, k as OnControlProgress, l as DbInitFailure, m as DbUpdateFailure, n as ContractEmitOptions, o as ControlClientOptions, p as DbInitSuccess, r as ContractEmitResult, s as ControlProgressEvent, t as CliStructuredError$2, u as DbInitFailureCode, v as DbUpdateSuccess, w as EmitSuccess, x as EmitFailureCode, y as EmitContractConfig } from "./db-verify-BdKY7U7l-6VLIVuKF.mjs";
5
- import { a as emit } from "./index-K9cFK1Ge.mjs";
5
+ import { a as emit } from "./index-DG1D9rrd.mjs";
6
6
  import { n as OnDiskMigrationPackage, t as MigrationOps } from "./package-CfWiDNrr-ZR4HM_Iz.mjs";
7
7
  import { c as ContractSpaceAggregate, d as IntegrityQueryOptions, p as IntegrityViolation, t as AggregateContractSpace } from "./aggregate-DKBycuzO.mjs";
8
8
  import { r as PrismaNextConfig$1 } from "./index-u5RdrumF.mjs";
@@ -1,2 +1,2 @@
1
- import { $ as listRefsByContractHash, B as executeContractEmit, Ct as resolveFromForPlan, Dt as runContractSpaceSeedPhase, G as executeMigrationNewCommand, H as executeDbUpdate, J as executeRefDeleteCommand, K as executeMigrationPlanCommand, Ot as runMigrationCheck, Q as hasMigrationPath, St as resolveContractRefToSnapshot, Tt as resolveToForPlan, U as executeDbVerify, V as executeDbInit, W as executeMigrateShowPlan, X as executeRefSetCommand, Y as executeRefListCommand, _ as enrichContract, _t as refusePackageCorruptionOnAggregate, a as appliedHashesFromLedger, at as mapContractAtError, c as buildReadAggregate, ct as migrationSpaceListEntriesFromAggregate, et as loadAggregateIntegrityViolations, ft as readMigrationRefs, g as disposeEmitQueue, gt as refuseMissingInvariantPath, h as deriveStatusEdgeAnnotations, ht as refuseMarkerOutsideGraph, i as appContractStandInFromIdentity, it as mapCaughtMigrationError, jt as statusForMigrationHash, kt as runMigrationList, l as buildRefAdvancementFields, lt as originHashForStatus, m as createControlClient, mt as refuseDeclaredExtensionTargetMismatch, n as NO_REF_ADVANCEMENT, nt as loadContractSpaceAggregateForCli, o as buildContractSpaceAggregate, ot as mapIntegrityViolations, p as computeRefAdvancementName, pt as refuseContractSpaceIntegrity, q as executeRefAdvancement, r as advanceRefSafely, s as buildMigrationSpaceGraphEntries, tt as loadContractRawSafely, u as checkSingleTarget, ut as preflightRefAdvancement, v as enumerateCheckSpaces, vt as refuseUnknownInvariants, wt as resolveMigrationRef, xt as resolveContractRef$1 } from "./ref-fSTPpdt3-BulCTZne.mjs";
1
+ import { $ as listRefsByContractHash, B as executeContractEmit, Ct as resolveFromForPlan, Dt as runContractSpaceSeedPhase, G as executeMigrationNewCommand, H as executeDbUpdate, J as executeRefDeleteCommand, K as executeMigrationPlanCommand, Ot as runMigrationCheck, Q as hasMigrationPath, St as resolveContractRefToSnapshot, Tt as resolveToForPlan, U as executeDbVerify, V as executeDbInit, W as executeMigrateShowPlan, X as executeRefSetCommand, Y as executeRefListCommand, _ as enrichContract, _t as refusePackageCorruptionOnAggregate, a as appliedHashesFromLedger, at as mapContractAtError, c as buildReadAggregate, ct as migrationSpaceListEntriesFromAggregate, et as loadAggregateIntegrityViolations, ft as readMigrationRefs, g as disposeEmitQueue, gt as refuseMissingInvariantPath, h as deriveStatusEdgeAnnotations, ht as refuseMarkerOutsideGraph, i as appContractStandInFromIdentity, it as mapCaughtMigrationError, jt as statusForMigrationHash, kt as runMigrationList, l as buildRefAdvancementFields, lt as originHashForStatus, m as createControlClient, mt as refuseDeclaredExtensionTargetMismatch, n as NO_REF_ADVANCEMENT, nt as loadContractSpaceAggregateForCli, o as buildContractSpaceAggregate, ot as mapIntegrityViolations, p as computeRefAdvancementName, pt as refuseContractSpaceIntegrity, q as executeRefAdvancement, r as advanceRefSafely, s as buildMigrationSpaceGraphEntries, tt as loadContractRawSafely, u as checkSingleTarget, ut as preflightRefAdvancement, v as enumerateCheckSpaces, vt as refuseUnknownInvariants, wt as resolveMigrationRef, xt as resolveContractRef$1 } from "./ref-fSTPpdt3-DTb2_ACs.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, 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,5 +1,5 @@
1
1
  import { g as errorInvalidJson } from "./errors-SoLLYLtw-DMxVbVs9.mjs";
2
- import { a as loadConfigForSections } from "./exports-Do7_pH8Y.mjs";
2
+ import { a as loadConfigForSections } from "./exports-DJ4RhlW4.mjs";
3
3
  import { r as buildMigrationArtifacts } from "./migration-B9w-7dKe.mjs";
4
4
  import { readFileSync, realpathSync, writeFileSync } from "node:fs";
5
5
  import { CliStructuredError, errorMigrationCliInvalidConfigArg, errorMigrationCliUnknownFlag } from "@prisma/orm-framework/errors/control";
@@ -1,2 +1,2 @@
1
- import { a as loadConfigForSections, i as loadConfigForFile, n as findNearestConfigPathForFile, o as requireConfigSections, r as loadConfig, t as finalizeConfig } from "./exports-Do7_pH8Y.mjs";
1
+ import { a as loadConfigForSections, i as loadConfigForFile, n as findNearestConfigPathForFile, o as requireConfigSections, r as loadConfig, t as finalizeConfig } from "./exports-DJ4RhlW4.mjs";
2
2
  export { finalizeConfig, findNearestConfigPathForFile, loadConfig, loadConfigForFile, loadConfigForSections, requireConfigSections };
@@ -1,3 +1,3 @@
1
1
  import { M as serializeValue, b as generateRootsType, c as generateCodecTypeIntersection, d as generateFieldOutputTypesMap, h as generateImportLines, j as serializeObjectKey, m as generateHashTypeAliases, o as deduplicateImports, v as generateModelRelationsType } from "./domain-type-generation-X6-AaL1U-DHEoRf_y.mjs";
2
- import { a as emit, i as EmittedArtifactPaths, n as EmitResult, o as generateContractDts, r as EmitStackInput, s as getEmittedArtifactPaths, t as EmitOptions } from "./index-K9cFK1Ge.mjs";
2
+ import { a as emit, i as EmittedArtifactPaths, n as EmitResult, o as generateContractDts, r as EmitStackInput, s as getEmittedArtifactPaths, t as EmitOptions } from "./index-DG1D9rrd.mjs";
3
3
  export { type EmitOptions, type EmitResult, type EmitStackInput, type EmittedArtifactPaths, deduplicateImports, emit, generateCodecTypeIntersection, generateContractDts, generateFieldOutputTypesMap, generateHashTypeAliases, generateImportLines, generateModelRelationsType, generateRootsType, getEmittedArtifactPaths, serializeObjectKey, serializeValue };
package/dist/emitter.mjs CHANGED
@@ -1,3 +1,3 @@
1
1
  import { D as serializeObjectKey, O as serializeValue, d as generateImportLines, g as generateRootsType, i as generateCodecTypeIntersection, m as generateModelRelationsType, s as generateFieldOutputTypesMap, t as deduplicateImports, u as generateHashTypeAliases } from "./domain-type-generation-BVFTIUm6-BRbRrGYB.mjs";
2
- import { n as generateContractDts, r as getEmittedArtifactPaths, t as emit } from "./exports-DkJil2JJ-6p86L2r4.mjs";
2
+ import { n as generateContractDts, r as getEmittedArtifactPaths, t as emit } from "./exports-DI1kMms6--e9LdT9A.mjs";
3
3
  export { deduplicateImports, emit, generateCodecTypeIntersection, generateContractDts, generateFieldOutputTypesMap, generateHashTypeAliases, generateImportLines, generateModelRelationsType, generateRootsType, getEmittedArtifactPaths, serializeObjectKey, serializeValue };
@@ -1,4 +1,4 @@
1
- import { n as findNearestConfigPathForFile, o as requireConfigSections, r as loadConfig } from "./exports-Do7_pH8Y.mjs";
1
+ import { n as findNearestConfigPathForFile, o as requireConfigSections, r as loadConfig } from "./exports-DJ4RhlW4.mjs";
2
2
  import { blindCast } from "@prisma/orm-framework/utils/casts";
3
3
  import { InternalError } from "@prisma/orm-framework/utils/internal-error";
4
4
  import { CliStructuredError } from "@prisma/orm-framework/errors/control";
@@ -2686,4 +2686,4 @@ function startServer(streams) {
2686
2686
  //#endregion
2687
2687
  export { startServer };
2688
2688
 
2689
- //# sourceMappingURL=exports-HR2MWHrQ.mjs.map
2689
+ //# sourceMappingURL=exports-Bg8ce6Ih.mjs.map