@apollo/composition
Advanced tools
Comparing version 2.9.0-connectors.9 to 2.9.0
@@ -52,3 +52,3 @@ "use strict"; | ||
function validateSatisfiability({ supergraphSchema, supergraphSdl }) { | ||
const supergraph = supergraphSchema ? new federation_internals_1.Supergraph(supergraphSchema, null) : federation_internals_1.Supergraph.build(supergraphSdl, { supportedFeatures: null }); | ||
const supergraph = supergraphSchema ? new federation_internals_1.Supergraph(supergraphSchema, null) : federation_internals_1.Supergraph.build(supergraphSdl); | ||
const supergraphQueryGraph = (0, query_graphs_1.buildSupergraphAPIQueryGraph)(supergraph); | ||
@@ -55,0 +55,0 @@ const federatedQueryGraph = (0, query_graphs_1.buildFederatedQueryGraph)(supergraph, false); |
@@ -29,2 +29,3 @@ "use strict"; | ||
'https://specs.apollo.dev/context', | ||
'https://specs.apollo.dev/cost', | ||
]; | ||
@@ -31,0 +32,0 @@ class ComposeDirectiveManager { |
@@ -319,2 +319,5 @@ "use strict"; | ||
const typeNames = possibleRuntimeTypeNamesSorted(path.path); | ||
if (typeNames.length === 1 && !allRuntimeTypes.includes(typeNames[0])) { | ||
continue; | ||
} | ||
runtimeTypesPerSubgraphs.set(subgraph, typeNames); | ||
@@ -321,0 +324,0 @@ let typeNamesStr = 'no runtime type is defined'; |
{ | ||
"name": "@apollo/composition", | ||
"version": "2.9.0-connectors.9", | ||
"version": "2.9.0", | ||
"description": "Apollo Federation composition utilities", | ||
@@ -30,4 +30,4 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@apollo/federation-internals": "2.9.0-connectors.9", | ||
"@apollo/query-graphs": "2.9.0-connectors.9" | ||
"@apollo/federation-internals": "2.9.0", | ||
"@apollo/query-graphs": "2.9.0" | ||
}, | ||
@@ -34,0 +34,0 @@ "peerDependencies": { |
@@ -53,3 +53,3 @@ import { | ||
* `options.runSatisfiability` will default to `true` | ||
* | ||
* | ||
* @param subgraphs Subgraphs | ||
@@ -98,3 +98,3 @@ * @param options CompositionOptions | ||
* Method to validate and compose services | ||
* | ||
* | ||
* @param services List of Service definitions | ||
@@ -123,5 +123,5 @@ * @param options CompositionOptions | ||
* Run satisfiability check for a supergraph | ||
* | ||
* | ||
* Can pass either the supergraph's Schema or SDL to validate | ||
* @param args: SatisfiabilityArgs | ||
* @param args: SatisfiabilityArgs | ||
* @returns { errors? : GraphQLError[], hints? : CompositionHint[] } | ||
@@ -136,3 +136,3 @@ */ | ||
// and there is no reason to error due to an unsupported feature. | ||
const supergraph = supergraphSchema ? new Supergraph(supergraphSchema, null) : Supergraph.build(supergraphSdl, { supportedFeatures: null }); | ||
const supergraph = supergraphSchema ? new Supergraph(supergraphSchema, null) : Supergraph.build(supergraphSdl); | ||
const supergraphQueryGraph = buildSupergraphAPIQueryGraph(supergraph); | ||
@@ -147,4 +147,4 @@ const federatedQueryGraph = buildFederatedQueryGraph(supergraph, false); | ||
* Upgrade subgraphs if necessary, then validates subgraphs before attempting to merge | ||
* | ||
* @param subgraphs | ||
* | ||
* @param subgraphs | ||
* @returns ValidateSubgraphsAndMergeResult | ||
@@ -151,0 +151,0 @@ */ |
@@ -70,2 +70,3 @@ import { | ||
'https://specs.apollo.dev/context', | ||
'https://specs.apollo.dev/cost', | ||
]; | ||
@@ -72,0 +73,0 @@ |
@@ -583,2 +583,10 @@ import { | ||
const typeNames = possibleRuntimeTypeNamesSorted(path.path); | ||
// if we see a type here that is not included in the list of all | ||
// runtime types, it is safe to assume that it is an interface | ||
// behaving like a runtime type (i.e. an @interfaceObject) and | ||
// we should allow it to stand in for any runtime type | ||
if (typeNames.length === 1 && !allRuntimeTypes.includes(typeNames[0])) { | ||
continue; | ||
} | ||
runtimeTypesPerSubgraphs.set(subgraph, typeNames); | ||
@@ -585,0 +593,0 @@ // Note: we're formatting the elements in `runtimeTYpesToSubgraphs` because we're going to use it if we display an error. This doesn't |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1
621891
8999
+ Added@apollo/federation-internals@2.9.0(transitive)
+ Added@apollo/query-graphs@2.9.0(transitive)
- Removed@apollo/federation-internals@2.9.0-connectors.9(transitive)
- Removed@apollo/query-graphs@2.9.0-connectors.9(transitive)
Updated@apollo/query-graphs@2.9.0