Skip to content

Commit b67dec4

Browse files
Upcoming Release Changes (#300)
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/federation-composition@0.22.3 ### Patch Changes - [#299](#299) [`c417891`](c417891) Thanks [@n1ru4l](https://github.com/n1ru4l)! - Fix `REQUIRED_INACCESSIBLE` composition rule reporting a composition error if `@inaccessible` is applied on a non-nullable field with a default value. In the following example schema the `Query.ping(message:)` argument no longer raises `REQUIRED_INACCESSIBLE`, as a default value for the argument is provided. The same behaviour applies for input type fields. ```graphql extend schema @link( url: "https://specs.apollo.dev/federation/v2.9" import: ["@inaccessible"] ) type Query { ping(message: String! = "pong" @inaccessible): String! } ``` Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent c417891 commit b67dec4

3 files changed

Lines changed: 21 additions & 20 deletions

File tree

.changeset/hip-states-agree.md

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

CHANGELOG.md

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

3+
## 0.22.3
4+
5+
### Patch Changes
6+
7+
- [#299](https://github.com/graphql-hive/federation-composition/pull/299) [`c417891`](https://github.com/graphql-hive/federation-composition/commit/c417891d8e539e9ddccee0436d160a6cb645e388) Thanks [@n1ru4l](https://github.com/n1ru4l)! - Fix `REQUIRED_INACCESSIBLE` composition rule reporting a composition error if `@inaccessible` is applied on a non-nullable field with a default value.
8+
9+
In the following example schema the `Query.ping(message:)` argument no longer raises `REQUIRED_INACCESSIBLE`, as a default value for the argument is provided. The same behaviour applies for input type fields.
10+
11+
```graphql
12+
extend schema
13+
@link(
14+
url: "https://specs.apollo.dev/federation/v2.9"
15+
import: ["@inaccessible"]
16+
)
17+
18+
type Query {
19+
ping(message: String! = "pong" @inaccessible): String!
20+
}
21+
```
22+
323
## 0.22.2
424

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

0 commit comments

Comments
 (0)