feat: bump federation composition (#7859)

This commit is contained in:
Laurin 2026-03-17 14:24:48 +01:00 committed by GitHub
parent 580918de79
commit bf00fbcc2d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 36 additions and 24 deletions

View file

@ -0,0 +1,12 @@
---
'@graphql-hive/cli': minor
'hive': minor
---
Improve federation composition
- Support `file:` protocol and non-RFC 3986 in imported `link` url arguments
- Fix supergraph `@join__field` emission for Federation v1 `@external` fields and improve `override`/`requires` edge-case handling.
- Drop Federation v1 `@join__field(external: true)` fields based on key usage in the subgraph instead of aggregated field key usage across subgraphs.
- Avoid emitting redundant `@join__field(external: true)` metadata when a field is only required through overridden paths.
- Tighten `@join__field` emission around @override and interface type fields.

View file

@ -24,7 +24,7 @@
"@hive/server": "workspace:*",
"@hive/service-common": "workspace:*",
"@hive/storage": "workspace:*",
"@theguild/federation-composition": "0.21.3",
"@theguild/federation-composition": "0.22.1",
"@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.1",
"@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.1",
"cli-table3": "0.6.5",
"colors": "1.4.0",
"env-ci": "7.3.0",

View file

@ -41,7 +41,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.1",
"@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.13.2",
"@theguild/federation-composition": "0.21.3",
"@theguild/federation-composition": "0.22.1",
"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.1",
"@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.1",
"@trpc/client": "10.45.3",
"@trpc/server": "10.45.3",
"@whatwg-node/server": "0.10.17",

View file

@ -172,8 +172,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.1
version: 0.22.1(graphql@16.9.0)
'@theguild/prettier-config':
specifier: 2.0.7
version: 2.0.7(prettier@3.4.2)
@ -362,8 +362,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.1
version: 0.22.1(graphql@16.9.0)
'@trpc/client':
specifier: 10.45.3
version: 10.45.3(@trpc/server@10.45.3)
@ -520,8 +520,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.1
version: 0.22.1(graphql@16.9.0)
cli-table3:
specifier: 0.6.5
version: 0.6.5
@ -1137,8 +1137,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.1
version: 0.22.1(graphql@16.9.0)
'@trpc/client':
specifier: 10.45.3
version: 10.45.3(@trpc/server@10.45.3)
@ -1380,8 +1380,8 @@ importers:
specifier: 2.13.2
version: 2.13.2(graphql@16.9.0)
'@theguild/federation-composition':
specifier: 0.21.3
version: 0.21.3(graphql@16.9.0)
specifier: 0.22.1
version: 0.22.1(graphql@16.9.0)
graphql:
specifier: 16.9.0
version: 16.9.0
@ -1486,8 +1486,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.1
version: 0.22.1(graphql@16.9.0)
'@trpc/server':
specifier: 10.45.3
version: 10.45.3
@ -1615,8 +1615,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.1
version: 0.22.1(graphql@16.9.0)
'@trpc/client':
specifier: 10.45.3
version: 10.45.3(@trpc/server@10.45.3)
@ -10277,8 +10277,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.1':
resolution: {integrity: sha512-etGvmHP0nJk4vu9Y6Sw8Tfihaj78VLrk3UbinknjOi4DwzUhfhCPmQPZvOcvIIgUMdTOIDXkY+LAoKn7Fw6nBQ==}
engines: {node: '>=18'}
peerDependencies:
graphql: ^16.0.0
@ -32798,7 +32798,7 @@ snapshots:
transitivePeerDependencies:
- supports-color
'@theguild/federation-composition@0.21.3(graphql@16.9.0)':
'@theguild/federation-composition@0.22.1(graphql@16.9.0)':
dependencies:
constant-case: 3.0.4
debug: 4.4.3(supports-color@8.1.1)