@apollo/query-planner
Advanced tools
Comparing version 0.3.0-rc.0 to 0.3.0-rc.1
@@ -8,2 +8,3 @@ # CHANGELOG for `@apollo/query-planner` | ||
- Introduce support for removing @inaccessible elements from the API schema. [PR #807](https://github.com/apollographql/federation/pull/859) | ||
- Mask inaccessible typenames in runtime operation errors. [PR #893](https://github.com/apollographql/federation/pull/893) | ||
@@ -10,0 +11,0 @@ # v0.2.3 |
@@ -24,3 +24,3 @@ "use strict"; | ||
fields: removeInaccessibleFields(type, typeConfig.fields), | ||
interfaces: removeInaccessibleTypes(typeConfig.interfaces) | ||
interfaces: removeInaccessibleTypes(typeConfig.interfaces), | ||
}); | ||
@@ -33,3 +33,3 @@ } | ||
fields: removeInaccessibleFields(type, typeConfig.fields), | ||
interfaces: removeInaccessibleTypes(typeConfig.interfaces) | ||
interfaces: removeInaccessibleTypes(typeConfig.interfaces), | ||
}); | ||
@@ -41,3 +41,3 @@ } | ||
...typeConfig, | ||
types: removeInaccessibleTypes(typeConfig.types) | ||
types: removeInaccessibleTypes(typeConfig.types), | ||
}); | ||
@@ -87,3 +87,3 @@ } | ||
function removeInaccessibleTypes(types) { | ||
return types.filter(type => !typesToRemove.has(type)); | ||
return types.filter((type) => !typesToRemove.has(type)); | ||
} | ||
@@ -90,0 +90,0 @@ } |
@@ -13,3 +13,3 @@ "use strict"; | ||
schema = removeInaccessibleElements_1.removeInaccessibleElements(schema); | ||
const featureNames = buildComposedSchema_1.supportedFeatures.map(feature => feature.name); | ||
const featureNames = buildComposedSchema_1.supportedFeatures.map((feature) => feature.name); | ||
const schemaConfig = schema.toConfig(); | ||
@@ -16,0 +16,0 @@ const apiSchema = new graphql_1.GraphQLSchema({ |
{ | ||
"name": "@apollo/query-planner", | ||
"version": "0.3.0-rc.0", | ||
"version": "0.3.0-rc.1", | ||
"description": "Apollo Query Planner", | ||
@@ -36,3 +36,3 @@ "author": "Apollo <opensource@apollographql.com>", | ||
}, | ||
"gitHead": "fdccf9f4ea9db55a91f9ed12d6a15537c1b212a0" | ||
"gitHead": "714dd2b5dd31077b227f81fcc83c0c8275d662d2" | ||
} |
@@ -53,3 +53,3 @@ import { | ||
fields: removeInaccessibleFields(type, typeConfig.fields), | ||
interfaces: removeInaccessibleTypes(typeConfig.interfaces) | ||
interfaces: removeInaccessibleTypes(typeConfig.interfaces), | ||
}); | ||
@@ -62,3 +62,3 @@ } else if (isInterfaceType(type)) { | ||
fields: removeInaccessibleFields(type, typeConfig.fields), | ||
interfaces: removeInaccessibleTypes(typeConfig.interfaces) | ||
interfaces: removeInaccessibleTypes(typeConfig.interfaces), | ||
}); | ||
@@ -70,3 +70,3 @@ } else if (isUnionType(type)) { | ||
...typeConfig, | ||
types: removeInaccessibleTypes(typeConfig.types) | ||
types: removeInaccessibleTypes(typeConfig.types), | ||
}); | ||
@@ -137,3 +137,3 @@ } else { | ||
function removeInaccessibleTypes<T extends GraphQLNamedType>(types: T[]) { | ||
return types.filter(type => !typesToRemove.has(type)) | ||
return types.filter((type) => !typesToRemove.has(type)); | ||
} | ||
@@ -140,0 +140,0 @@ } |
@@ -31,3 +31,3 @@ import { | ||
// than relying on a static list of supported features. | ||
const featureNames = supportedFeatures.map(feature => feature.name); | ||
const featureNames = supportedFeatures.map((feature) => feature.name); | ||
@@ -34,0 +34,0 @@ // We filter out schema elements that should not be exported to get to the |
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
422986