@prisma/orm-toolchain 8.0.0-rc.18-dev.31 → 8.0.0-rc.18-dev.33

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 (31) hide show
  1. package/dist/cli-telemetry.mjs +1 -1
  2. package/dist/cli.mjs +10 -10
  3. package/dist/cli.mjs.map +1 -1
  4. package/dist/cli__control-api.d.mts +1 -1
  5. package/dist/cli__control-api.mjs +1 -1
  6. package/dist/cli__migration-cli.mjs +1 -1
  7. package/dist/config-loader.mjs +1 -1
  8. package/dist/{domain-type-generation-DpXuDGLd-CuADX8tA.mjs → domain-type-generation-B4m774CV-WAjyhZHw.mjs} +14 -8
  9. package/dist/domain-type-generation-B4m774CV-WAjyhZHw.mjs.map +1 -0
  10. package/dist/{domain-type-generation-BdSOXF3O-DGGiAaNs.d.mts → domain-type-generation-DZjtzrbE-BpOOD3YV.d.mts} +9 -6
  11. package/dist/domain-type-generation-DZjtzrbE-BpOOD3YV.d.mts.map +1 -0
  12. package/dist/emitter.d.mts +2 -2
  13. package/dist/emitter.mjs +2 -2
  14. package/dist/emitter__domain-type-generation.d.mts +2 -2
  15. package/dist/emitter__domain-type-generation.mjs +2 -2
  16. package/dist/{exports-BLyT8ULG-C_kH8_9c.mjs → exports-BCIlMjIW-DkUBVDzl.mjs} +5 -16
  17. package/dist/exports-BCIlMjIW-DkUBVDzl.mjs.map +1 -0
  18. package/dist/{exports-DfSHy5Id.mjs → exports-BlYTE3-J.mjs} +2 -2
  19. package/dist/{exports-DfSHy5Id.mjs.map → exports-BlYTE3-J.mjs.map} +1 -1
  20. package/dist/{exports-CiTltjML.mjs → exports-CfQzEu2x.mjs} +2 -2
  21. package/dist/{exports-CiTltjML.mjs.map → exports-CfQzEu2x.mjs.map} +1 -1
  22. package/dist/{index-wUUMOC5E.d.mts → index-tAySVPvZ.d.mts} +4 -4
  23. package/dist/{index-wUUMOC5E.d.mts.map → index-tAySVPvZ.d.mts.map} +1 -1
  24. package/dist/quick-reference-mongo.md +1 -1
  25. package/dist/{ref-Bn3SzQ9Z-Cy3ftpv6.mjs → ref-Bn3SzQ9Z-DHi9xcRa.mjs} +3 -3
  26. package/dist/{ref-Bn3SzQ9Z-Cy3ftpv6.mjs.map → ref-Bn3SzQ9Z-DHi9xcRa.mjs.map} +1 -1
  27. package/dist/vite-plugin-contract-emit.mjs +3 -3
  28. package/package.json +12 -12
  29. package/dist/domain-type-generation-BdSOXF3O-DGGiAaNs.d.mts.map +0 -1
  30. package/dist/domain-type-generation-DpXuDGLd-CuADX8tA.mjs.map +0 -1
  31. package/dist/exports-BLyT8ULG-C_kH8_9c.mjs.map +0 -1
@@ -1,10 +1,10 @@
1
- import "./domain-type-generation-BdSOXF3O-DGGiAaNs.mjs";
1
+ import "./domain-type-generation-DZjtzrbE-BpOOD3YV.mjs";
2
2
  import { PreserveEmptyPredicate, SerializeContract, StorageSort } from "@prisma/orm-framework/contract/hashing";
3
3
  import { EmissionSpi, GenerateContractTypesOptions, ImportSpecifierResolver, TypesImportSpec } from "@prisma/orm-framework/components/emission";
4
- import { AnyCodecDescriptor, CodecLookup } from "@prisma/orm-framework/components/codec";
5
4
  import { AggregateDescriptor } from "@prisma/orm-framework/components/components";
6
5
  import { Contract } from "@prisma/orm-framework/contract/types";
7
- //#region ../../../1-framework/3-tooling/emitter/dist/index-Doj11I3q.d.mts
6
+ import { AnyCodecDescriptor, CodecLookup } from "@prisma/orm-framework/components/codec";
7
+ //#region ../../../1-framework/3-tooling/emitter/dist/index-DwyuWn4O.d.mts
8
8
  //#region src/artifact-paths.d.ts
9
9
  interface EmittedArtifactPaths {
10
10
  readonly jsonPath: string;
@@ -87,4 +87,4 @@ declare function generateContractDts(contract: Contract, emitter: EmissionSpi, c
87
87
  }, options?: GenerateContractTypesOptions, codecLookup?: CodecLookup, resolveImportSpecifier?: ImportSpecifierResolver): string;
88
88
  //#endregion
89
89
  export { emit as a, EmittedArtifactPaths as i, EmitResult as n, generateContractDts as o, EmitStackInput as r, getEmittedArtifactPaths as s, EmitOptions as t };
90
- //# sourceMappingURL=index-wUUMOC5E.d.mts.map
90
+ //# sourceMappingURL=index-tAySVPvZ.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-wUUMOC5E.d.mts","names":[],"sources":["../../../../1-framework/3-tooling/emitter/dist/index-Doj11I3q.d.mts"],"mappings":";;;;;;;;UAOU;WACC;WACA;;iBAEM,wBAAwB,yBAAyB;;;;;;;;UAQxD;WACC,mBAAmB,cAAc;WACjC,4BAA4B,cAAc;WAC1C,iCAAiC,cAAc;WAC/C,eAAe;WACf,cAAc;WACd,mBAAmB,cAAc;WACjC,uBAAuB,cAAc;;UAEtC;WACC;;;;;;;;;;WAUA,mBAAmB;;;;;WAKnB,sBAAsB;;;;;WAKtB,cAAc;;;;;;;WAOd,yBAAyB;;;;WAIzB;;;;;;;WAOA,sBAAsB,MAAM,4BAA4B;;UAEzD;WACC;WACA;WACA;WACA;WACA;;;;iBAIM,KAAK,UAAU,UAAU,OAAO,gBAAgB,cAAc,aAAa,SAAS,cAAc,QAAQ;;;iBAG1G,oBAAoB,UAAU,UAAU,SAAS,aAAa,kBAAkB,cAAc,kBAAkB;WACtH;WACA;WACA;GACR,UAAU,8BAA8B,cAAc,aAAa,yBAAyB"}
1
+ {"version":3,"file":"index-tAySVPvZ.d.mts","names":[],"sources":["../../../../1-framework/3-tooling/emitter/dist/index-DwyuWn4O.d.mts"],"mappings":";;;;;;;;UAOU;WACC;WACA;;iBAEM,wBAAwB,yBAAyB;;;;;;;;UAQxD;WACC,mBAAmB,cAAc;WACjC,4BAA4B,cAAc;WAC1C,iCAAiC,cAAc;WAC/C,eAAe;WACf,cAAc;WACd,mBAAmB,cAAc;WACjC,uBAAuB,cAAc;;UAEtC;WACC;;;;;;;;;;WAUA,mBAAmB;;;;;WAKnB,sBAAsB;;;;;WAKtB,cAAc;;;;;;;WAOd,yBAAyB;;;;WAIzB;;;;;;;WAOA,sBAAsB,MAAM,4BAA4B;;UAEzD;WACC;WACA;WACA;WACA;WACA;;;;iBAIM,KAAK,UAAU,UAAU,OAAO,gBAAgB,cAAc,aAAa,SAAS,cAAc,QAAQ;;;iBAG1G,oBAAoB,UAAU,UAAU,SAAS,aAAa,kBAAkB,cAAc,kBAAkB;WACtH;WACA;WACA;GACR,UAAU,8BAA8B,cAAc,aAAa,yBAAyB"}
@@ -22,7 +22,7 @@ const user = await db.orm.users
22
22
  .first();
23
23
 
24
24
  // Your editor will show the type of user as
25
- // { _id: ObjectId; email: string; username: string | null; name: string | null; posts: Post[] } | null
25
+ // { id: ObjectId; email: string; username: string | null; name: string | null; posts: Post[] } | null
26
26
  ```
27
27
 
28
28
  `db` connects to MongoDB lazily on the first query, so there is no manual `connect(...)` step in your application code. Call `await db.close()` if you need to release the underlying connection (typically only in tests or short-lived scripts). After `close()` the client is single-shot — any further query, `connect()`, or `runtime()` call rejects with `"Mongo client is closed"`. Construct a new `mongo({...})` if you need to use it again.
@@ -1,4 +1,4 @@
1
- import { a as expandContractInputs } from "./exports-DfSHy5Id.mjs";
1
+ import { a as expandContractInputs } from "./exports-BlYTE3-J.mjs";
2
2
  import { D as errorNoInvariantPath, M as errorUnknownInvariant, b as errorInvalidRefName, r as errorContractDeserializationFailed, t as MigrationToolsError } from "./errors-nnIQQvmN-oeANP4Yi.mjs";
3
3
  import { r as verifyMigrationHash, t as computeMigrationHash } from "./hash-BAZVWU4a-BQovI7hF.mjs";
4
4
  import { a as snapshotsImportPathFrom, n as createSnapshotContentVerifier, o as writeContractSnapshot, r as readContractSnapshotJson, t as contractSnapshotDir } from "./contract-snapshot-store-DwEs5EOp-3qAvnEf3.mjs";
@@ -9,7 +9,7 @@ import { i as findPathWithDecision, r as findPath } from "./migration-graph-Boii
9
9
  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-BFH2o5RL-CI6uhB5B.mjs";
10
10
  import { i as emitContractSpaceArtifacts, o as planAllSpaces } from "./spaces-BoFEHLeH.mjs";
11
11
  import { B as errorRefSetHashNotInGraph, D as errorInvalidSpaceId, F as errorPlanForgotTheFlag, G as errorSpaceNotFound, H as errorRuntime, I as errorPlanOriginUnknown, J as errorStatementInvalid, K as errorStatementAnswersNoQuestion, L as errorPlanProducedNoOperations, M as errorMigrationPlanningFailed, P as errorPathUnreachable, Q as errorTargetMigrationNotSupported, R as errorRefSetBundleNotFound, T as errorFromCaught, W as errorSnapshotMissing, X as errorStatementOriginUnknown, Y as errorStatementNeedsMigrationFile, Z as errorStatementUnresolved, _ as errorConfigValidation$1, _t as toStructuralEdge, b as errorContractValidationFailed, d as closeQuietly, dt as resolveMigrationPaths, et as errorUnexpected, f as collectDeclaredInvariants, ft as runCommandAction, g as errorAmbiguousMigrationRef, ht as statementFlag, k as errorMarkerMismatch, l as cliErrorFromStructured, lt as requireLiveDatabase, n as CliStructuredError$1, nt as mapRefResolutionError, pt as selfEmitCommand, q as errorStatementDidNotResolveLoss, r as STORE_ORIGIN_SNAPSHOT_STEPS, s as chooseAction, st as readContractEnvelope, tt as getTargetMigrations, ut as resolveContractPath, w as errorFileNotFound, y as errorContractConfigMissing, z as errorRefSetEmptySentinel } from "./caught-errors-BJYT1ZZW-CJZWDvwc.mjs";
12
- import { r as getEmittedArtifactPaths, t as emit } from "./exports-BLyT8ULG-C_kH8_9c.mjs";
12
+ import { r as getEmittedArtifactPaths, t as emit } from "./exports-BCIlMjIW-DkUBVDzl.mjs";
13
13
  import { n as isGraphNode, t as assertHashIsGraphNode } from "./graph-membership-ul46Kb0W-B8HahKEu.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-BIzM-guE-qMvITMOL.mjs";
15
15
  import { a as contractHashAtMarker, c as loadContractSpaceAggregate, d as requireHeadRef, f as resolveRecordedPath, m as verifyMigration, n as buildFabricatedMigrationEdge, p as spacesInApplyOrder, r as collectAggregateNamespaces, t as allStorageElementsExternal, u as planMigration } from "./aggregate-C0qscKli.mjs";
@@ -6133,4 +6133,4 @@ async function executeRefListCommand(options) {
6133
6133
  //#endregion
6134
6134
  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 };
6135
6135
 
6136
- //# sourceMappingURL=ref-Bn3SzQ9Z-Cy3ftpv6.mjs.map
6136
+ //# sourceMappingURL=ref-Bn3SzQ9Z-DHi9xcRa.mjs.map