@apollo/composition
Advanced tools
Comparing version 2.8.3 to 2.8.4
@@ -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.8.3", | ||
"version": "2.8.4", | ||
"description": "Apollo Federation composition utilities", | ||
@@ -30,4 +30,4 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@apollo/federation-internals": "2.8.3", | ||
"@apollo/query-graphs": "2.8.3" | ||
"@apollo/federation-internals": "2.8.4", | ||
"@apollo/query-graphs": "2.8.4" | ||
}, | ||
@@ -34,0 +34,0 @@ "peerDependencies": { |
@@ -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
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
618238
8927
+ Added@apollo/federation-internals@2.8.4(transitive)
+ Added@apollo/query-graphs@2.8.4(transitive)
- Removed@apollo/federation-internals@2.8.3(transitive)
- Removed@apollo/query-graphs@2.8.3(transitive)
Updated@apollo/query-graphs@2.8.4