@apollo/federation-internals
Advanced tools
Comparing version 2.0.2-alpha.1 to 2.0.2-alpha.2
# CHANGELOG for `@apollo/federation-internals` | ||
## 2.0.2-alpha.2 | ||
- Fix bug removing an enum type [PR #1813](https://github.com/apollographql/federation/pull/1813) | ||
## 2.0.2-alpha.1 | ||
@@ -4,0 +8,0 @@ |
{ | ||
"name": "@apollo/federation-internals", | ||
"version": "2.0.2-alpha.1", | ||
"version": "2.0.2-alpha.2", | ||
"description": "Apollo Federation internal utilities", | ||
@@ -36,3 +36,3 @@ "main": "dist/index.js", | ||
}, | ||
"gitHead": "7fcf0f23509f0d62fdb017c8e74a861cb304915d" | ||
"gitHead": "906611360a43172c938b7a0571cc354111b5913f" | ||
} |
@@ -224,2 +224,23 @@ import { | ||
test('removal of an enum type should remove enum values', () => { | ||
const schema = buildSchema(` | ||
type Query { | ||
someField: String! | ||
} | ||
enum Enum { | ||
SOME_VALUE | ||
OTHER_VALUE | ||
} | ||
`); | ||
const enumType = schema.type("Enum"); | ||
expectEnumType(enumType) | ||
const enumValues = Array.from(enumType.values); | ||
enumType.remove() | ||
for (const value of enumValues) { | ||
expect(value.isAttached()).toBe(false) | ||
} | ||
}); | ||
test('removal of all inaccessible elements of a schema', () => { | ||
@@ -226,0 +247,0 @@ const subgraph = buildSubgraph('foo', '', ` |
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 too big to display
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
1767917
29738