Skip to content

Commit f19de76

Browse files
Upcoming Release Changes (#148)
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 - [#146](#146) [`55b48e9`](55b48e9) Thanks [@n1ru4l](https://github.com/n1ru4l)! - Resolve usage of `@requires` `FieldSet` with a union field selection to raise an `EXTERNAL_UNUSED` error. - [#150](#150) [`9bd8016`](9bd8016) Thanks [@n1ru4l](https://github.com/n1ru4l)! - Fix incorrectly raised `IMPLEMENTED_BY_INACCESSIBLE` error for inaccessible object fields where the object type is inaccessible. For example the following subgraph, will no longer result in the error `Field B.id is @inaccessible but implements the interface field Node.id, which is in the API schema.`. ```graphql schema @link(url: "https://specs.apollo.dev/federation/v2.9", import: ["@tag"]) { query: Query } type Query { b(id: ID! @federation__inaccessible): B @federation__inaccessible a(id: ID!): A } type B implements Node @federation__inaccessible { id: ID! @federation__inaccessible } type A implements Node { id: ID! } interface Node { id: ID! } ``` - [#147](#147) [`8c5bc0c`](8c5bc0c) Thanks [@n1ru4l](https://github.com/n1ru4l)! - Add support for `@provides` fragment selection sets on union type fields. ```graphql type Query { media: [Media] @Shareable @provides(fields: "... on Book { title }") } union Media = Book | Movie ``` Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 8c5bc0c commit f19de76

File tree

5 files changed

+44
-52
lines changed

5 files changed

+44
-52
lines changed

.changeset/five-bobcats-crash.md

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

.changeset/open-bobcats-wait.md

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

.changeset/sour-spiders-brush.md

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

CHANGELOG.md

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

3+
## 0.18.4
4+
5+
### Patch Changes
6+
7+
- [#146](https://github.com/graphql-hive/federation-composition/pull/146) [`55b48e9`](https://github.com/graphql-hive/federation-composition/commit/55b48e942ed58084fe56e33f15e3454b43c2ec24) Thanks [@n1ru4l](https://github.com/n1ru4l)! - Resolve usage of `@requires` `FieldSet` with a union field selection to raise an `EXTERNAL_UNUSED` error.
8+
9+
- [#150](https://github.com/graphql-hive/federation-composition/pull/150) [`9bd8016`](https://github.com/graphql-hive/federation-composition/commit/9bd80160ab12d0ae9bbcc283c0bacc02a8830d8b) Thanks [@n1ru4l](https://github.com/n1ru4l)! - Fix incorrectly raised `IMPLEMENTED_BY_INACCESSIBLE` error for inaccessible object fields where the object type is inaccessible.
10+
11+
For example the following subgraph, will no longer result in the error `Field B.id is @inaccessible but implements the interface field Node.id, which is in the API schema.`.
12+
13+
```graphql
14+
schema
15+
@link(url: "https://specs.apollo.dev/federation/v2.9", import: ["@tag"]) {
16+
query: Query
17+
}
18+
19+
type Query {
20+
b(id: ID! @federation__inaccessible): B @federation__inaccessible
21+
a(id: ID!): A
22+
}
23+
24+
type B implements Node @federation__inaccessible {
25+
id: ID! @federation__inaccessible
26+
}
27+
28+
type A implements Node {
29+
id: ID!
30+
}
31+
32+
interface Node {
33+
id: ID!
34+
}
35+
```
36+
37+
- [#147](https://github.com/graphql-hive/federation-composition/pull/147) [`8c5bc0c`](https://github.com/graphql-hive/federation-composition/commit/8c5bc0cf5744c0ee54ca71a30e19ef07baad742d) Thanks [@n1ru4l](https://github.com/n1ru4l)! - Add support for `@provides` fragment selection sets on union type fields.
38+
39+
```graphql
40+
type Query {
41+
media: [Media] @shareable @provides(fields: "... on Book { title }")
42+
}
43+
union Media = Book | Movie
44+
```
45+
346
## 0.18.3
447

548
### 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.3",
3+
"version": "0.18.4",
44
"type": "module",
55
"description": "Open Source Composition library for Apollo Federation",
66
"repository": {

0 commit comments

Comments
 (0)