@prisma/orm-toolchain 8.0.0-rc.15-dev.2 → 8.0.0-rc.16
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 +3 -3
- package/dist/cli.mjs.map +1 -1
- package/dist/cli__control-api.mjs +1 -1
- package/dist/{exports-B9Yxhu3o.mjs → exports-02v-utfh.mjs} +10 -11
- package/dist/exports-02v-utfh.mjs.map +1 -0
- package/dist/{ref-DQpde3VD-BW3Yc5ni.mjs → ref-QTZCLc-T-CQlLoYlH.mjs} +3 -3
- package/dist/ref-QTZCLc-T-CQlLoYlH.mjs.map +1 -0
- package/dist/vite-plugin-contract-emit.mjs +1 -1
- package/package.json +13 -13
- package/dist/exports-B9Yxhu3o.mjs.map +0 -1
- package/dist/ref-DQpde3VD-BW3Yc5ni.mjs.map +0 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { v as errorFromCaught } from "./caught-errors-DUIDd-Vm-RNMiEz4x.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, ct as runContractSpaceSeedPhase, d as buildReadAggregate, f as buildRefAdvancementFields, g as deriveStatusEdgeAnnotations, h as createControlClient, it as resolveFromForPlan, j as executeRefSetCommand, k as executeRefDeleteCommand, l as buildContractSpaceAggregate, lt as runMigrationCheck, m as computeRefAdvancementName, nt as resolveContractRef$1, o as advanceRefSafely, ot as resolveToForPlan, p as checkSingleTarget, pt as statusForMigrationHash, q as readMigrationRefs, r as NO_REF_ADVANCEMENT, rt as resolveContractRefToSnapshot, s as appContractStandInFromIdentity, u as buildMigrationSpaceGraphEntries, ut as runMigrationList, v as enrichContract, w as executeDbVerify, x as executeDbInit, y as enumerateCheckSpaces, z as loadContractSource } from "./ref-
|
|
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, ct as runContractSpaceSeedPhase, d as buildReadAggregate, f as buildRefAdvancementFields, g as deriveStatusEdgeAnnotations, h as createControlClient, it as resolveFromForPlan, j as executeRefSetCommand, k as executeRefDeleteCommand, l as buildContractSpaceAggregate, lt as runMigrationCheck, m as computeRefAdvancementName, nt as resolveContractRef$1, o as advanceRefSafely, ot as resolveToForPlan, p as checkSingleTarget, pt as statusForMigrationHash, q as readMigrationRefs, r as NO_REF_ADVANCEMENT, rt as resolveContractRefToSnapshot, s as appContractStandInFromIdentity, u as buildMigrationSpaceGraphEntries, ut as runMigrationList, v as enrichContract, w as executeDbVerify, x as executeDbInit, y as enumerateCheckSpaces, z as loadContractSource } from "./ref-QTZCLc-T-CQlLoYlH.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, resolveToForPlan, runContractSpaceSeedPhase, runMigrationCheck, runMigrationList, statusForMigrationHash };
|
|
@@ -9,7 +9,7 @@ import { readFileSync, statSync } from "node:fs";
|
|
|
9
9
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
10
10
|
import { normalize as normalize$1 } from "node:path";
|
|
11
11
|
import { format } from "@prisma/orm-framework/psl-parser/format";
|
|
12
|
-
import { assembleAttributeSpecs, blockSpecFactoryOf, buildSymbolTable, createBinder, entityReference, findBlockDescriptor, isNamespaceLike, isPrismaNextSchema, matchesSelector, memberEntries, renameLegacyDirective, typeReferenceNode } from "@prisma/orm-framework/psl-parser";
|
|
12
|
+
import { EMPTY_DATA_TYPES, assembleAttributeSpecs, blockSpecFactoryOf, buildSymbolTable, createBinder, entityReference, findBlockDescriptor, isNamespaceLike, isPrismaNextSchema, 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
15
|
import { ArrayLiteralAst, AttributeArgAst, AttributeArgListAst, BooleanLiteralExprAst, CompositeTypeDeclarationAst, FieldAttributeAst, FieldDeclarationAst, FunctionCallAst, GenericBlockDeclarationAst, IdentifierAst, KeyValuePairAst, ModelAttributeAst, ModelDeclarationAst, NamespaceDeclarationAst, NumberLiteralExprAst, ObjectLiteralExprAst, PathExprAst, PslSources, StringLiteralExprAst, SyntaxNode, TaggedLiteralExprAst, TypesBlockAst, any, isTrivia, nonTriviaSibling, parse, skipTriviaToken } from "@prisma/orm-framework/psl-parser/syntax";
|
|
@@ -344,6 +344,7 @@ function lspControlStackFromStack(stack) {
|
|
|
344
344
|
scalarTypes: [...stack.scalarTypes],
|
|
345
345
|
pslBlockDescriptors: stack.authoringContributions.pslBlockDescriptors,
|
|
346
346
|
authoringContributions: stack.authoringContributions,
|
|
347
|
+
dataTypes: stack.dataTypes,
|
|
347
348
|
...stack.controlMutationDefaults === void 0 ? {} : { controlMutationDefaults: stack.controlMutationDefaults },
|
|
348
349
|
...ifDefined("pslDiagnostics", stack.family?.pslDiagnostics)
|
|
349
350
|
};
|
|
@@ -359,7 +360,7 @@ function resolveInterpretation(config, stack, inputs) {
|
|
|
359
360
|
authoringContributions: stack.authoringContributions,
|
|
360
361
|
...ifDefined("pslDiagnostics", stack.family?.pslDiagnostics),
|
|
361
362
|
codecLookup: stack.codecLookup,
|
|
362
|
-
|
|
363
|
+
dataTypes: stack.dataTypes,
|
|
363
364
|
controlMutationDefaults: stack.controlMutationDefaults,
|
|
364
365
|
resolvedInputs: [...inputs.uris()],
|
|
365
366
|
capabilities: stack.capabilities
|
|
@@ -951,10 +952,8 @@ function attributeSpecResolver(context, source) {
|
|
|
951
952
|
const specContext = {
|
|
952
953
|
symbols: source.symbolTable,
|
|
953
954
|
model,
|
|
954
|
-
controlMutationDefaults:
|
|
955
|
-
|
|
956
|
-
dataTypeEntries: source.authoringContributions.dataTypes ?? {}
|
|
957
|
-
}
|
|
955
|
+
controlMutationDefaults: source.controlMutationDefaults,
|
|
956
|
+
dataTypes: source.dataTypes ?? EMPTY_DATA_TYPES
|
|
958
957
|
};
|
|
959
958
|
return (name) => specs.model[name]?.(specContext);
|
|
960
959
|
}
|
|
@@ -968,10 +967,8 @@ function attributeSpecResolver(context, source) {
|
|
|
968
967
|
const specContext = {
|
|
969
968
|
symbols: source.symbolTable,
|
|
970
969
|
model,
|
|
971
|
-
controlMutationDefaults:
|
|
972
|
-
|
|
973
|
-
dataTypeEntries: source.authoringContributions.dataTypes ?? {}
|
|
974
|
-
}
|
|
970
|
+
controlMutationDefaults: source.controlMutationDefaults,
|
|
971
|
+
dataTypes: source.dataTypes ?? EMPTY_DATA_TYPES
|
|
975
972
|
};
|
|
976
973
|
const node = typeReferenceNode(field);
|
|
977
974
|
const typeResolution = node === void 0 ? void 0 : source.binder.symbolForNode(node);
|
|
@@ -1224,6 +1221,7 @@ function valueItems(input, type, syntax, qualifier) {
|
|
|
1224
1221
|
selector: type.expected,
|
|
1225
1222
|
namespaces: true
|
|
1226
1223
|
});
|
|
1224
|
+
case "dataTypeValue":
|
|
1227
1225
|
case "list":
|
|
1228
1226
|
case "record":
|
|
1229
1227
|
case "int":
|
|
@@ -2094,6 +2092,7 @@ function binderContextFromStack(stack) {
|
|
|
2094
2092
|
dataTypes: {}
|
|
2095
2093
|
},
|
|
2096
2094
|
controlMutationDefaults: { defaultFunctionRegistry: stack.controlMutationDefaults?.defaultFunctionRegistry ?? /* @__PURE__ */ new Map() },
|
|
2095
|
+
dataTypes: stack.dataTypes ?? EMPTY_DATA_TYPES,
|
|
2097
2096
|
...stack.pslDiagnostics === void 0 ? {} : { pslDiagnostics: stack.pslDiagnostics }
|
|
2098
2097
|
};
|
|
2099
2098
|
}
|
|
@@ -3581,4 +3580,4 @@ function startServer(streams) {
|
|
|
3581
3580
|
//#endregion
|
|
3582
3581
|
export { startServer };
|
|
3583
3582
|
|
|
3584
|
-
//# sourceMappingURL=exports-
|
|
3583
|
+
//# sourceMappingURL=exports-02v-utfh.mjs.map
|