@prisma/orm-toolchain 8.0.0-rc.17-dev.18 → 8.0.0-rc.17-dev.20
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 +2 -2
- package/dist/cli__control-api.mjs +1 -1
- package/dist/{exports-CLrz8wIC.mjs → exports-Cxv8mNRJ.mjs} +9 -2
- package/dist/exports-Cxv8mNRJ.mjs.map +1 -0
- package/dist/migration-tools.d.mts +2 -2
- package/dist/migration-tools.mjs +2 -2
- package/dist/migration-tools__migration-ts.d.mts +2 -2
- package/dist/migration-tools__migration-ts.mjs +2 -2
- package/dist/{migration-ts-FyF55c4M.mjs → migration-ts-DDgjsR1O.mjs} +5 -4
- package/dist/migration-ts-DDgjsR1O.mjs.map +1 -0
- package/dist/{migration-ts-CNaAtK8C.d.mts → migration-ts-SGer0PXq.d.mts} +4 -2
- package/dist/migration-ts-SGer0PXq.d.mts.map +1 -0
- package/dist/{ref-Cc_CTagE-D_HDIWdx.mjs → ref-Cc_CTagE-BYkEh32b.mjs} +2 -2
- package/dist/{ref-Cc_CTagE-D_HDIWdx.mjs.map → ref-Cc_CTagE-BYkEh32b.mjs.map} +1 -1
- package/dist/vite-plugin-contract-emit.mjs +1 -1
- package/package.json +12 -12
- package/dist/exports-CLrz8wIC.mjs.map +0 -1
- package/dist/migration-ts-CNaAtK8C.d.mts.map +0 -1
- package/dist/migration-ts-FyF55c4M.mjs.map +0 -1
package/dist/cli.mjs
CHANGED
|
@@ -10,7 +10,7 @@ import { d as writeRef, r as readRef } from "./refs-qwvw4_dV-DNg_7WTD.mjs";
|
|
|
10
10
|
import { a as contractHashAtMarker } from "./aggregate-DlfOyErc.mjs";
|
|
11
11
|
import { i as createScaffoldSpecifierResolver } from "./import-roots-B6vrm5bT.mjs";
|
|
12
12
|
import { o as isLiveMarkerRef } from "./ref-resolution-Be_zewf7.mjs";
|
|
13
|
-
import { $ as refuseUnknownInvariants, A as executeRefListCommand, B as loadContractSourceWithStack, D as executeMigrationPlanCommand, E as executeMigrationNewCommand, F as listRefsByContractHash, G as migrationSpaceListEntriesFromAggregate, H as looksLikePath, I as liveMarkerUse, J as refuseContractSpaceIntegrity, K as preflightRefAdvancement, L as loadAggregateIntegrityViolations, M as findPackageByDirPath, N as formatSourceDiagnostic, P as hasMigrationPath, Q as refusePackageCorruptionOnAggregate, R as loadContractRawSafely, T as executeMigrateShowPlan, U as mapContractAtError, V as loadContractSpaceAggregateForCli, X as refuseMarkerOutsideGraph, Z as refuseMissingInvariantPath, _t as toDeclaredExtensionsFromRaw, a as RECORDED_OR_EMPTY_CONTRACT_REF_FORMS, at as resolveMigrationRef, b as executeContractEmit, c as appliedHashesFromLedger, ct as retryCommandFor, d as buildReadAggregate, dt as runMigrationList, et as requireDatabaseForLiveMarkerUse, f as buildRefAdvancementFields, ft as shellQuoted, g as deriveStatusEdgeAnnotations, gt as statusForMigrationHash, h as createControlClient, ht as statementFlag, i as RECORDED_CONTRACT_REF_FORMS, j as executeRefSetCommand, k as executeRefDeleteCommand, m as computeRefAdvancementName, mt as sourceWarningDiagnostic, n as DB_UPDATE_POLICY, nt as resolveContractRef$1, o as advanceRefSafely, p as checkSingleTarget, pt as snapshotVerifierFor, q as readMigrationRefs, r as NO_REF_ADVANCEMENT, rt as resolveContractRefToSnapshot, t as ALL_CONTRACT_REF_FORMS, tt as resolveAppTargetPath, u as buildMigrationSpaceGraphEntries, ut as runMigrationCheck, vt as validateLoadedContract, y as enumerateCheckSpaces, z as loadContractSource } from "./ref-Cc_CTagE-
|
|
13
|
+
import { $ as refuseUnknownInvariants, A as executeRefListCommand, B as loadContractSourceWithStack, D as executeMigrationPlanCommand, E as executeMigrationNewCommand, F as listRefsByContractHash, G as migrationSpaceListEntriesFromAggregate, H as looksLikePath, I as liveMarkerUse, J as refuseContractSpaceIntegrity, K as preflightRefAdvancement, L as loadAggregateIntegrityViolations, M as findPackageByDirPath, N as formatSourceDiagnostic, P as hasMigrationPath, Q as refusePackageCorruptionOnAggregate, R as loadContractRawSafely, T as executeMigrateShowPlan, U as mapContractAtError, V as loadContractSpaceAggregateForCli, X as refuseMarkerOutsideGraph, Z as refuseMissingInvariantPath, _t as toDeclaredExtensionsFromRaw, a as RECORDED_OR_EMPTY_CONTRACT_REF_FORMS, at as resolveMigrationRef, b as executeContractEmit, c as appliedHashesFromLedger, ct as retryCommandFor, d as buildReadAggregate, dt as runMigrationList, et as requireDatabaseForLiveMarkerUse, f as buildRefAdvancementFields, ft as shellQuoted, g as deriveStatusEdgeAnnotations, gt as statusForMigrationHash, h as createControlClient, ht as statementFlag, i as RECORDED_CONTRACT_REF_FORMS, j as executeRefSetCommand, k as executeRefDeleteCommand, m as computeRefAdvancementName, mt as sourceWarningDiagnostic, n as DB_UPDATE_POLICY, nt as resolveContractRef$1, o as advanceRefSafely, p as checkSingleTarget, pt as snapshotVerifierFor, q as readMigrationRefs, r as NO_REF_ADVANCEMENT, rt as resolveContractRefToSnapshot, t as ALL_CONTRACT_REF_FORMS, tt as resolveAppTargetPath, u as buildMigrationSpaceGraphEntries, ut as runMigrationCheck, vt as validateLoadedContract, y as enumerateCheckSpaces, z as loadContractSource } from "./ref-Cc_CTagE-BYkEh32b.mjs";
|
|
14
14
|
import { a as PRISMA7_QUICK_REFERENCE_STEP, i as PRISMA7_LOOP_STEP, n as InitOutputSchema, o as buildNextSteps, r as NEXT_STEPS_BEFORE_SCAFFOLD, t as DB_SIGN_STEP } from "./output-BcC8eB0h-C5bRd-aC.mjs";
|
|
15
15
|
import { createRequire } from "node:module";
|
|
16
16
|
import { ifDefined } from "@prisma/orm-framework/utils/defined";
|
|
@@ -6944,7 +6944,7 @@ const lspCommand = defineServerCommand({
|
|
|
6944
6944
|
} },
|
|
6945
6945
|
handler: async (args, io) => {
|
|
6946
6946
|
const exitCode = await withoutClientProcessIdInArgv(async () => {
|
|
6947
|
-
const { startServer } = await import("./exports-
|
|
6947
|
+
const { startServer } = await import("./exports-Cxv8mNRJ.mjs");
|
|
6948
6948
|
return startServer({
|
|
6949
6949
|
stdin: io.stdin,
|
|
6950
6950
|
stdout: io.stdout,
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { g as errorFromCaught } from "./caught-errors-HFQjjQVE-b_GDV-6J.mjs";
|
|
2
|
-
import { $ as refuseUnknownInvariants, A as executeRefListCommand, C as executeDbUpdate, D as executeMigrationPlanCommand, E as executeMigrationNewCommand, F as listRefsByContractHash, G as migrationSpaceListEntriesFromAggregate, J as refuseContractSpaceIntegrity, K as preflightRefAdvancement, L as loadAggregateIntegrityViolations, O as executeRefAdvancement, P as hasMigrationPath, Q as refusePackageCorruptionOnAggregate, R as loadContractRawSafely, S as executeDbSign, T as executeMigrateShowPlan, U as mapContractAtError, V as loadContractSpaceAggregateForCli, W as mapIntegrityViolations, X as refuseMarkerOutsideGraph, Y as refuseDeclaredExtensionTargetMismatch, Z as refuseMissingInvariantPath, _ as disposeEmitQueue, at as resolveMigrationRef, b as executeContractEmit, c as appliedHashesFromLedger, d as buildReadAggregate, dt as runMigrationList, f as buildRefAdvancementFields, g as deriveStatusEdgeAnnotations, gt as statusForMigrationHash, h as createControlClient, it as resolveFromForPlan, j as executeRefSetCommand, k as executeRefDeleteCommand, l as buildContractSpaceAggregate, lt as runContractSpaceSeedPhase, m as computeRefAdvancementName, nt as resolveContractRef$1, o as advanceRefSafely, ot as resolveStatements, p as checkSingleTarget, q as readMigrationRefs, r as NO_REF_ADVANCEMENT, rt as resolveContractRefToSnapshot, s as appContractStandInFromIdentity, st as resolveToForPlan, u as buildMigrationSpaceGraphEntries, ut as runMigrationCheck, v as enrichContract, w as executeDbVerify, x as executeDbInit, y as enumerateCheckSpaces, z as loadContractSource } from "./ref-Cc_CTagE-
|
|
2
|
+
import { $ as refuseUnknownInvariants, A as executeRefListCommand, C as executeDbUpdate, D as executeMigrationPlanCommand, E as executeMigrationNewCommand, F as listRefsByContractHash, G as migrationSpaceListEntriesFromAggregate, J as refuseContractSpaceIntegrity, K as preflightRefAdvancement, L as loadAggregateIntegrityViolations, O as executeRefAdvancement, P as hasMigrationPath, Q as refusePackageCorruptionOnAggregate, R as loadContractRawSafely, S as executeDbSign, T as executeMigrateShowPlan, U as mapContractAtError, V as loadContractSpaceAggregateForCli, W as mapIntegrityViolations, X as refuseMarkerOutsideGraph, Y as refuseDeclaredExtensionTargetMismatch, Z as refuseMissingInvariantPath, _ as disposeEmitQueue, at as resolveMigrationRef, b as executeContractEmit, c as appliedHashesFromLedger, d as buildReadAggregate, dt as runMigrationList, f as buildRefAdvancementFields, g as deriveStatusEdgeAnnotations, gt as statusForMigrationHash, h as createControlClient, it as resolveFromForPlan, j as executeRefSetCommand, k as executeRefDeleteCommand, l as buildContractSpaceAggregate, lt as runContractSpaceSeedPhase, m as computeRefAdvancementName, nt as resolveContractRef$1, o as advanceRefSafely, ot as resolveStatements, p as checkSingleTarget, q as readMigrationRefs, r as NO_REF_ADVANCEMENT, rt as resolveContractRefToSnapshot, s as appContractStandInFromIdentity, st as resolveToForPlan, u as buildMigrationSpaceGraphEntries, ut as runMigrationCheck, v as enrichContract, w as executeDbVerify, x as executeDbInit, y as enumerateCheckSpaces, z as loadContractSource } from "./ref-Cc_CTagE-BYkEh32b.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 };
|
|
@@ -12,7 +12,7 @@ import { format, resolveFormatOptions } from "@prisma/orm-framework/psl-parser/f
|
|
|
12
12
|
import { EMPTY_DATA_TYPES, assembleAttributeSpecs, blockSpecContext, blockSpecFactoryOf, buildSymbolTable, createBinder, entityReference, findBlockDescriptor, isNamespaceLike, isPrismaNextSchema, isPslIdentifier, matchesSelector, memberEntries, renameLegacyDirective, typeReferenceNode } from "@prisma/orm-framework/psl-parser";
|
|
13
13
|
import { CompletionItemKind, CompletionItemTag, ConnectionError, ConnectionErrors, DiagnosticSeverity, DidChangeWatchedFilesNotification, DocumentDiagnosticReportKind, FoldingRangeKind, InsertTextFormat, LSPErrorCodes, MarkupKind, ProposedFeatures, RegistrationRequest, ResponseError, SemanticTokenModifiers, SemanticTokenTypes, TextDocumentSyncKind, createConnection } from "vscode-languageserver";
|
|
14
14
|
import { TextDocument } from "vscode-languageserver-textdocument";
|
|
15
|
-
import { ArrayLiteralAst, AttributeArgAst, AttributeArgListAst, BooleanLiteralExprAst, CompositeTypeDeclarationAst, FieldAttributeAst, FieldDeclarationAst, FunctionCallAst, GenericBlockDeclarationAst, IdentifierAst, KeyValuePairAst, ModelAttributeAst, ModelDeclarationAst, NamespaceDeclarationAst, NumberLiteralExprAst, ObjectLiteralExprAst, PathExprAst, PslSources, StringLiteralExprAst, SyntaxNode, SyntaxToken, TaggedLiteralExprAst, TypesBlockAst, any, isTrivia, nonTriviaSibling, parse, skipTriviaToken } from "@prisma/orm-framework/psl-parser/syntax";
|
|
15
|
+
import { ArrayLiteralAst, AttributeArgAst, AttributeArgListAst, BooleanLiteralExprAst, CompositeTypeDeclarationAst, FieldAttributeAst, FieldDeclarationAst, FunctionCallAst, GenericBlockDeclarationAst, IdentifierAst, KeyValuePairAst, MixinDeclarationAst, ModelAttributeAst, ModelDeclarationAst, NamespaceDeclarationAst, NumberLiteralExprAst, ObjectLiteralExprAst, PathExprAst, PslSources, StringLiteralExprAst, SyntaxNode, SyntaxToken, TaggedLiteralExprAst, TypesBlockAst, any, isTrivia, nonTriviaSibling, parse, skipTriviaToken } from "@prisma/orm-framework/psl-parser/syntax";
|
|
16
16
|
import { hasPslInterpreter } from "@prisma/orm-framework/psl-parser/interpret";
|
|
17
17
|
import { isAuthoringPslBlockDescriptor } from "@prisma/orm-framework/components/authoring";
|
|
18
18
|
import { ProposedFeatures as ProposedFeatures$1, StreamMessageReader, StreamMessageWriter, createConnection as createConnection$1, createProtocolConnection } from "vscode-languageserver/node";
|
|
@@ -1662,6 +1662,7 @@ function rangeOf(sourceFile, node) {
|
|
|
1662
1662
|
* - composite type (e.g., `type Address { ... }`)
|
|
1663
1663
|
* - namespace (e.g., `namespace billing { ... }`)
|
|
1664
1664
|
* - generic blocks (generator, datasource, extension blocks)
|
|
1665
|
+
* - mixin declarations (e.g., `model mixin Timestamps { ... }`)
|
|
1665
1666
|
* - types block (e.g., `types { ... }`)
|
|
1666
1667
|
*
|
|
1667
1668
|
* The range spans from the line containing `{` to the line containing `}`.
|
|
@@ -2574,6 +2575,12 @@ function collectDeclaration(declaration, source, tokens) {
|
|
|
2574
2575
|
for (const namedType of declaration.declarations()) collectNamedTypeDeclaration(namedType, source, tokens);
|
|
2575
2576
|
return;
|
|
2576
2577
|
}
|
|
2578
|
+
if (declaration instanceof MixinDeclarationAst) {
|
|
2579
|
+
addToken(declaration.keyword(), "keyword", tokens);
|
|
2580
|
+
addToken(declaration.mixinKeyword(), "keyword", tokens);
|
|
2581
|
+
addIdentifier(declaration.name(), "type", tokens, semanticTokenModifierBits.declaration);
|
|
2582
|
+
return;
|
|
2583
|
+
}
|
|
2577
2584
|
addToken(declaration.keyword(), "keyword", tokens);
|
|
2578
2585
|
addIdentifier(declaration.name(), "type", tokens, semanticTokenModifierBits.declaration);
|
|
2579
2586
|
collectGenericBlockMembers(declaration.members(), source, tokens);
|
|
@@ -3788,4 +3795,4 @@ function startServer(streams) {
|
|
|
3788
3795
|
//#endregion
|
|
3789
3796
|
export { startServer };
|
|
3790
3797
|
|
|
3791
|
-
//# sourceMappingURL=exports-
|
|
3798
|
+
//# sourceMappingURL=exports-Cxv8mNRJ.mjs.map
|