December 10, 2024
·
252 commits
to main
since this release
@graphql-tools/federation@3.0.0
Major Changes
-
#308
d747d4c
Thanks @ardatan! - BREAKING CHANGES;- Removed
buildSubgraphSchema
, use@apollo/subgraph
instead. - Removed the following gateway related functions, and prefer using Supergraph approach instead
getSubschemaForFederationWithURL
getSubschemaForFederationWithTypeDefs
getSubschemaForFederationWithExecutor
getSubschemaForFederationWithSchema
federationSubschemaTransformer
SupergraphSchemaManager
is no longer anEventEmitter
butEventTarget
instead, and it emits a realEvent
object.SupergraphSchemaManager
is nowDisposable
and it no longer stops based on Nodejs terminate events, so you should useusing
syntax.
using manager = new SupergraphSchemaManager({ ... }); manager.addEventListener('error', (event: SupergraphSchemaManagerErrorEvent) => { console.error(event.detail.error); }); let schema: GraphQLSchema | null = null; manager.addEventListener('schema', (event: SupergraphSchemaManagerSchemaEvent) => { schema = event.detail.schema; });
- Removed
Patch Changes
-
#308
d747d4c
Thanks @ardatan! - dependencies updates:- Added dependency
@graphql-yoga/typed-event-target@^3.0.0
↗︎ (todependencies
) - Added dependency
@whatwg-node/disposablestack@^0.0.5
↗︎ (todependencies
) - Added dependency
@whatwg-node/events@^0.1.2
↗︎ (todependencies
)
- Added dependency
@graphql-mesh/fusion-runtime@0.10.19
Patch Changes
@graphql-hive/gateway@1.6.7
Patch Changes
- Updated dependencies []:
- @graphql-hive/gateway-runtime@1.3.14
- @graphql-mesh/plugin-opentelemetry@1.3.26
- @graphql-mesh/plugin-prometheus@1.3.14
- @graphql-mesh/hmac-upstream-signature@1.2.16
@graphql-mesh/plugin-opentelemetry@1.3.26
Patch Changes
- Updated dependencies []:
- @graphql-hive/gateway-runtime@1.3.14
@graphql-mesh/plugin-prometheus@1.3.14
Patch Changes
- Updated dependencies []:
- @graphql-hive/gateway-runtime@1.3.14