diff --git a/.changeset/hip-states-agree.md b/.changeset/hip-states-agree.md deleted file mode 100644 index 4796cee7..00000000 --- a/.changeset/hip-states-agree.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -"@theguild/federation-composition": patch ---- - -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! - } -``` diff --git a/CHANGELOG.md b/CHANGELOG.md index 12940759..fa776fd5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,25 @@ # @theguild/federation-composition +## 0.22.3 + +### Patch Changes + +- [#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. + + 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! + } + ``` + ## 0.22.2 ### Patch Changes diff --git a/package.json b/package.json index 118b6626..b5338399 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@theguild/federation-composition", - "version": "0.22.2", + "version": "0.22.3", "type": "module", "description": "Open Source Composition library for Apollo Federation", "repository": {