fix: bump @theguild/federation-composition to 0.22.0 (#7778)

This commit is contained in:
Laurin 2026-03-05 12:59:14 +01:00 committed by GitHub
parent ef7cb0fb85
commit 3c05b96a10
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 34 additions and 24 deletions

View file

@ -0,0 +1,10 @@
---
'@graphql-hive/cli': patch
'hive': patch
---
Improve federation composition rules.
- Fix supergraph `@join__field` generation for `@override` + `@requires` migrations and add a progressive override restriction.
- When a field with `@requires` is overridden, composition now ignores `@requires` usage coming only from the overridden source field when deciding whether to keep `@join__field(..., external: true)`. This prevents stale external annotations in the supergraph.
- Progressive override (`@override(..., label: ...)`) is now rejected when the overridden source field uses `@requires` (error code: `OVERRIDE_COLLISION_WITH_ANOTHER_DIRECTIVE`). Non-progressive override behavior is unchanged.

View file

@ -22,7 +22,7 @@
"@hive/schema": "workspace:*",
"@hive/server": "workspace:*",
"@hive/storage": "workspace:*",
"@theguild/federation-composition": "0.21.3",
"@theguild/federation-composition": "0.22.0",
"@trpc/client": "10.45.3",
"@trpc/server": "10.45.3",
"@types/async-retry": "1.4.8",

View file

@ -84,7 +84,7 @@
"@sentry/cli": "2.40.0",
"@swc/core": "1.13.5",
"@theguild/eslint-config": "0.12.1",
"@theguild/federation-composition": "0.21.3",
"@theguild/federation-composition": "0.22.0",
"@theguild/prettier-config": "2.0.7",
"@types/node": "22.10.5",
"bob-the-bundler": "7.0.1",

View file

@ -60,7 +60,7 @@
"@oclif/core": "3.26.6",
"@oclif/plugin-help": "6.2.36",
"@oclif/plugin-update": "4.7.16",
"@theguild/federation-composition": "0.21.3",
"@theguild/federation-composition": "0.22.0",
"cli-table3": "0.6.5",
"colors": "1.4.0",
"env-ci": "7.3.0",

View file

@ -40,7 +40,7 @@
"@sentry/node": "7.120.2",
"@sentry/types": "7.120.2",
"@slack/web-api": "7.10.0",
"@theguild/federation-composition": "0.21.3",
"@theguild/federation-composition": "0.22.0",
"@trpc/client": "10.45.3",
"@trpc/server": "10.45.3",
"@types/bcryptjs": "2.4.6",

View file

@ -7,7 +7,7 @@
},
"dependencies": {
"@apollo/subgraph": "2.9.3",
"@theguild/federation-composition": "0.21.3",
"@theguild/federation-composition": "0.22.0",
"graphql": "16.9.0",
"graphql-yoga": "5.13.3"
},

View file

@ -15,7 +15,7 @@
"@graphql-tools/stitching-directives": "3.1.38",
"@hive/service-common": "workspace:*",
"@sentry/node": "7.120.2",
"@theguild/federation-composition": "0.21.3",
"@theguild/federation-composition": "0.22.0",
"@trpc/server": "10.45.3",
"@types/async-retry": "1.4.8",
"@types/ioredis-mock": "8.2.5",

View file

@ -38,7 +38,7 @@
"@hive/workflows": "workspace:*",
"@sentry/node": "7.120.2",
"@swc/core": "1.13.5",
"@theguild/federation-composition": "0.21.3",
"@theguild/federation-composition": "0.22.0",
"@trpc/client": "10.45.3",
"@trpc/server": "10.45.3",
"@whatwg-node/server": "0.10.17",

View file

@ -165,8 +165,8 @@ importers:
specifier: 0.12.1
version: 0.12.1(eslint@8.57.1(patch_hash=08d9d41d21638cb74d0f9f34877a8839601a4e5a8263066ff23e7032addbcba0))(typescript@5.7.3)
'@theguild/federation-composition':
specifier: 0.21.3
version: 0.21.3(graphql@16.9.0)
specifier: 0.22.0
version: 0.22.0(graphql@16.9.0)
'@theguild/prettier-config':
specifier: 2.0.7
version: 2.0.7(prettier@3.4.2)
@ -349,8 +349,8 @@ importers:
specifier: workspace:*
version: link:../packages/services/storage
'@theguild/federation-composition':
specifier: 0.21.3
version: 0.21.3(graphql@16.9.0)
specifier: 0.22.0
version: 0.22.0(graphql@16.9.0)
'@trpc/client':
specifier: 10.45.3
version: 10.45.3(@trpc/server@10.45.3)
@ -498,8 +498,8 @@ importers:
specifier: 4.7.16
version: 4.7.16
'@theguild/federation-composition':
specifier: 0.21.3
version: 0.21.3(graphql@16.9.0)
specifier: 0.22.0
version: 0.22.0(graphql@16.9.0)
cli-table3:
specifier: 0.6.5
version: 0.6.5
@ -840,8 +840,8 @@ importers:
specifier: 7.10.0
version: 7.10.0
'@theguild/federation-composition':
specifier: 0.21.3
version: 0.21.3(graphql@16.9.0)
specifier: 0.22.0
version: 0.22.0(graphql@16.9.0)
'@trpc/client':
specifier: 10.45.3
version: 10.45.3(@trpc/server@10.45.3)
@ -1086,8 +1086,8 @@ importers:
specifier: 2.9.3
version: 2.9.3(graphql@16.9.0)
'@theguild/federation-composition':
specifier: 0.21.3
version: 0.21.3(graphql@16.9.0)
specifier: 0.22.0
version: 0.22.0(graphql@16.9.0)
graphql:
specifier: 16.9.0
version: 16.9.0
@ -1192,8 +1192,8 @@ importers:
specifier: 7.120.2
version: 7.120.2
'@theguild/federation-composition':
specifier: 0.21.3
version: 0.21.3(graphql@16.9.0)
specifier: 0.22.0
version: 0.22.0(graphql@16.9.0)
'@trpc/server':
specifier: 10.45.3
version: 10.45.3
@ -1321,8 +1321,8 @@ importers:
specifier: 1.13.5
version: 1.13.5
'@theguild/federation-composition':
specifier: 0.21.3
version: 0.21.3(graphql@16.9.0)
specifier: 0.22.0
version: 0.22.0(graphql@16.9.0)
'@trpc/client':
specifier: 10.45.3
version: 10.45.3(@trpc/server@10.45.3)
@ -9465,8 +9465,8 @@ packages:
peerDependencies:
graphql: ^16.0.0
'@theguild/federation-composition@0.21.3':
resolution: {integrity: sha512-+LlHTa4UbRpZBog3ggAxjYIFvdfH3UMvvBUptur19TMWkqU4+n3GmN+mDjejU+dyBXIG27c25RsiQP1HyvM99g==}
'@theguild/federation-composition@0.22.0':
resolution: {integrity: sha512-bGueT2FzlwRG8ZpiCmXnheqPESxg/5FlqgczBJET5w9X7kUJr6F47BaPyL+xzY+uesyawu1KE7Nd2jvJf2AKTw==}
engines: {node: '>=18'}
peerDependencies:
graphql: ^16.0.0
@ -31097,7 +31097,7 @@ snapshots:
transitivePeerDependencies:
- supports-color
'@theguild/federation-composition@0.21.3(graphql@16.9.0)':
'@theguild/federation-composition@0.22.0(graphql@16.9.0)':
dependencies:
constant-case: 3.0.4
debug: 4.4.3(supports-color@8.1.1)