Skip to content

Commit 182c86f

Browse files
Upcoming Release Changes (#153)
This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated. # Releases ## @theguild/[email protected] ### Patch Changes - [#151](#151) [`f9b9908`](f9b9908) Thanks [@n1ru4l](https://github.com/n1ru4l)! - Fix issue where the satisfiability check raised an exception for fields that share different object type and interface definitions across subgraphs. - [#152](#152) [`e4440a1`](e4440a1) Thanks [@n1ru4l](https://github.com/n1ru4l)! - Fix issue where scalar type marked with `@inaccessible` does not fail the composition if all usages are not marked with `@inaccessible`. Composing the following subgraphs resulted in an invalid supergraph instead of failing the composition. ```graphql # Subgraph A extend schema @link( url: "https://specs.apollo.dev/federation/v2.9" import: ["@inaccessible"] ) type Query { a: Foo } scalar Foo ``` ```graphql # Subgraph B extend schema @link( url: "https://specs.apollo.dev/federation/v2.9" import: ["@inaccessible"] ) type Query { b: String } scalar Foo @inaccessible ``` Now it correctly raises a composition error with the message `Type "Foo" is @inaccessible but is referenced by "Query.a", which is in the API schema.`. Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent f9b9908 commit 182c86f

File tree

4 files changed

+43
-45
lines changed

4 files changed

+43
-45
lines changed

.changeset/nasty-trams-work.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/violet-tips-cheat.md

Lines changed: 0 additions & 39 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,47 @@
11
# @theguild/federation-composition
22

3+
## 0.18.5
4+
5+
### Patch Changes
6+
7+
- [#151](https://github.com/graphql-hive/federation-composition/pull/151) [`f9b9908`](https://github.com/graphql-hive/federation-composition/commit/f9b9908fcbfff601c53c8310bbd427c594919202) Thanks [@n1ru4l](https://github.com/n1ru4l)! - Fix issue where the satisfiability check raised an exception for fields that share different object type and interface definitions across subgraphs.
8+
9+
- [#152](https://github.com/graphql-hive/federation-composition/pull/152) [`e4440a1`](https://github.com/graphql-hive/federation-composition/commit/e4440a1f3c4d33de478b67cd5ea2c3e806620f3c) Thanks [@n1ru4l](https://github.com/n1ru4l)! - Fix issue where scalar type marked with `@inaccessible` does not fail the composition if all usages are not marked with `@inaccessible`.
10+
11+
Composing the following subgraphs resulted in an invalid supergraph instead of failing the composition.
12+
13+
```graphql
14+
# Subgraph A
15+
extend schema
16+
@link(
17+
url: "https://specs.apollo.dev/federation/v2.9"
18+
import: ["@inaccessible"]
19+
)
20+
21+
type Query {
22+
a: Foo
23+
}
24+
25+
scalar Foo
26+
```
27+
28+
```graphql
29+
# Subgraph B
30+
extend schema
31+
@link(
32+
url: "https://specs.apollo.dev/federation/v2.9"
33+
import: ["@inaccessible"]
34+
)
35+
36+
type Query {
37+
b: String
38+
}
39+
40+
scalar Foo @inaccessible
41+
```
42+
43+
Now it correctly raises a composition error with the message `Type "Foo" is @inaccessible but is referenced by "Query.a", which is in the API schema.`.
44+
345
## 0.18.4
446

547
### Patch Changes

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@theguild/federation-composition",
3-
"version": "0.18.4",
3+
"version": "0.18.5",
44
"type": "module",
55
"description": "Open Source Composition library for Apollo Federation",
66
"repository": {

0 commit comments

Comments
 (0)