Releases: graphql-hive/graphql-yoga
July 11, 2025
@graphql-yoga/apollo-link@4.2.1
@graphql-yoga/urql-exchange@4.2.1
graphql-yoga@5.15.1
Patch Changes
- #4116
ecd605b
Thanks @enisdenjo! - Does not GraphQL error extensions when it's
wrapping an internal server error
@graphql-yoga/nestjs@3.15.1
Patch Changes
- Updated dependencies
[ecd605b
]:- graphql-yoga@5.15.1
@graphql-yoga/nestjs-federation@3.15.1
Patch Changes
- Updated dependencies []:
- @graphql-yoga/nestjs@3.15.1
- @graphql-yoga/plugin-apollo-inline-trace@3.15.1
@graphql-yoga/plugin-apollo-inline-trace@3.15.1
Patch Changes
- Updated dependencies
[ecd605b
]:- graphql-yoga@5.15.1
@graphql-yoga/apollo-managed-federation@0.13.1
Patch Changes
- Updated dependencies
[ecd605b
]:- graphql-yoga@5.15.1
@graphql-yoga/plugin-apollo-usage-report@0.10.1
Patch Changes
- Updated dependencies
[ecd605b
]:- graphql-yoga@5.15.1
- @graphql-yoga/plugin-apollo-inline-trace@3.15.1
@graphql-yoga/plugin-apq@3.15.1
Patch Changes
- Updated dependencies
[ecd605b
]:- graphql-yoga@5.15.1
@graphql-yoga/plugin-csrf-prevention@3.15.1
Patch Changes
- Updated dependencies
[ecd605b
]:- graphql-yoga@5.15.1
@graphql-yoga/plugin-defer-stream@3.15.1
Patch Changes
- Updated dependencies
[ecd605b
]:- graphql-yoga@5.15.1
@graphql-yoga/plugin-disable-introspection@2.16.1
Patch Changes
- Updated dependencies
[ecd605b
]:- graphql-yoga@5.15.1
@graphql-yoga/plugin-graphql-sse@3.15.1
Patch Changes
- Updated dependencies
[ecd605b
]:- graphql-yoga@5.15.1
@graphql-yoga/plugin-jwt@3.9.1
Patch Changes
- Updated dependencies
[ecd605b
]:- graphql-yoga@5.15.1
@graphql-yoga/plugin-persisted-operations@3.15.1
Patch Changes
- Updated dependencies
[ecd605b
]:- graphql-yoga@5.15.1
@graphql-yoga/plugin-prometheus@6.10.1
Patch Changes
- Updated dependencies
[ecd605b
]:- graphql-yoga@5.15.1
@graphql-yoga/plugin-response-cache@3.17.1
Patch Changes
- Updated dependencies
[ecd605b
]:- graphql-yoga@5.15.1
@graphql-yoga/plugin-sofa@3.15.1
Patch Changes
- Updated dependencies
[ecd605b
]:- graphql-yoga@5.15.1
@graphql-yoga/render-graphiql@5.15.1
Patch Changes
- Updated dependencies
[ecd605b
]:- graphql-yoga@5.15.1
July 11, 2025
@graphql-yoga/apollo-link@4.2.0
@graphql-yoga/urql-exchange@4.2.0
@graphql-yoga/graphiql@4.4.0
Minor Changes
- #4114
ccb5c53
Thanks @enisdenjo! - Configurable GraphiQL logo and favicon
graphql-yoga@5.15.0
Minor Changes
- #4114
ccb5c53
Thanks @enisdenjo! - Configurable GraphiQL logo and favicon
Patch Changes
- #4114
ccb5c53
Thanks @enisdenjo! - Export GraphiQLPluginConfig and
GraphiQLOptionsOrFactory
@graphql-yoga/nestjs@3.15.0
Patch Changes
@graphql-yoga/nestjs-federation@3.15.0
Patch Changes
- Updated dependencies []:
- @graphql-yoga/nestjs@3.15.0
- @graphql-yoga/plugin-apollo-inline-trace@3.15.0
@graphql-yoga/plugin-apollo-inline-trace@3.15.0
Patch Changes
@graphql-yoga/apollo-managed-federation@0.13.0
Patch Changes
@graphql-yoga/plugin-apollo-usage-report@0.10.0
Patch Changes
- Updated dependencies
[ccb5c53
,
ccb5c53
]:- graphql-yoga@5.15.0
- @graphql-yoga/plugin-apollo-inline-trace@3.15.0
@graphql-yoga/plugin-apq@3.15.0
Patch Changes
@graphql-yoga/plugin-csrf-prevention@3.15.0
Patch Changes
@graphql-yoga/plugin-defer-stream@3.15.0
Patch Changes
@graphql-yoga/plugin-disable-introspection@2.16.0
Patch Changes
@graphql-yoga/plugin-graphql-sse@3.15.0
Patch Changes
@graphql-yoga/plugin-jwt@3.9.0
Patch Changes
@graphql-yoga/plugin-persisted-operations@3.15.0
Patch Changes
@graphql-yoga/plugin-prometheus@6.10.0
Patch Changes
@graphql-yoga/plugin-response-cache@3.17.0
Patch Changes
@graphql-yoga/plugin-sofa@3.15.0
Patch Changes
@graphql-yoga/render-graphiql@5.15.0
Minor Changes
- #4114
ccb5c53
Thanks @enisdenjo! - Configurable GraphiQL logo and favicon
Patch Changes
July 01, 2025
@graphql-yoga/apollo-link@4.1.0
@graphql-yoga/urql-exchange@4.1.0
@graphql-yoga/graphiql@4.3.6
Patch Changes
- #4063
823918a
Thanks @renovate! - dependencies updates:- Updated dependency
@graphiql/toolkit@0.11.3
↗︎ (from
0.11.1
, independencies
)
- Updated dependency
graphql-yoga@5.14.0
Minor Changes
-
#4088
98c82a5
Thanks @EmrysMyrddin! - Added newwithState
plugin utility
for easy data sharing between hooks.New plugin utility to ease data sharing between hooks
Sometimes, plugins can grow in complexity and need to share data between its hooks.
A way to solve this can be to mutate the graphql context, but this context is not always available
in all hooks in Yoga or Hive Gateway plugins. Moreover, mutating the context gives access to your
internal data to all other plugins and graphql resolvers, without mentioning performance impact on
field access on this object.The recommended approach to this problem was to use a
WeakMap
with a stable key (often the
context
orrequest
object). While it works, it's not very convenient for plugin developers,
and is prone to error with the choice of key.The new
withState
utility solves this DX issue by providing an easy and straightforward API for
data sharing between hooks.import { withState } from 'graphql-yoga' type State = { foo: string } const myPlugin = () => withState<Plugin, State>(() => ({ onParse({ state }) { state.forOperation.foo = 'foo' }, onValidate({ state }) { const { foo } = state.forOperation console.log('foo', foo) } }))
The
state
payload field will be available in all relevant hooks, making it easy to access shared
data. It also forces the developer to choose the scope for the data:forOperation
for a data scoped to GraphQL operation (Envelop, Yoga and Hive Gateway)forRequest
for a data scoped to HTTP request (Yoga and Hive Gateway)forSubgraphExecution
for a data scoped to the subgraph execution (Hive Gateway)
Not all scopes are available in all hooks, the type reflects which scopes are available
Under the hood, those states are kept in memory using
WeakMap
, which avoid any memory leaks.It is also possible to manually retrieve the state with the
getState
function:const myPlugin = () => withState(getState => ({ onParse({ context }) { // You can provide a payload, which will dictate which scope you have access to. // The scope can contain `context`, `request` and `executionRequest` fields. const state = getState({ context }) // Use the state elsewhere. } }))
Patch Changes
-
#4093
5f75a42
Thanks @enisdenjo! - Inherit GraphQL error extensions when it's
wrapping an internal server error -
#4088
98c82a5
Thanks @EmrysMyrddin! - dependencies updates:- Updated dependency
@envelop/core@^5.3.0
↗︎ (from
^5.2.3
, independencies
)
- Updated dependency
@graphql-yoga/nestjs@3.14.0
Patch Changes
@graphql-yoga/nestjs-federation@3.14.0
Patch Changes
-
#4087
6e04a7f
Thanks @renovate! - dependencies updates:- Updated dependency
@envelop/apollo-federation@^7.0.0
↗︎
(from^6.1.3
, independencies
)
- Updated dependency
-
#4088
98c82a5
Thanks @EmrysMyrddin! - dependencies updates:- Updated dependency
@envelop/core@^5.3.0
↗︎ (from
^5.2.3
, independencies
)
- Updated dependency
-
Updated dependencies
[6e04a7f
]:- @graphql-yoga/plugin-apollo-inline-trace@3.14.0
- @graphql-yoga/nestjs@3.14.0
@graphql-yoga/plugin-apollo-inline-trace@3.14.0
Patch Changes
- #4087
6e04a7f
Thanks @renovate! - dependencies updates:- Updated dependency
@envelop/on-resolve@^6.0.0
↗︎
(from^5.1.3
, independencies
)
- Updated dependency
- Updated dependencies
[5f75a42
,
98c82a5
,
98c82a5
]:- graphql-yoga@5.14.0
@graphql-yoga/apollo-managed-federation@0.12.0
Patch Changes
@graphql-yoga/plugin-apollo-usage-report@0.9.0
Minor Changes
- #4020
dcfd110
Thanks @EmrysMyrddin! - Various improvements of Apollo Usage
Report plugin. It is now production ready !- Report referenced field by types
- Batched traces
- Report gzip compression
- Nonexecutable operations handling to match Apollo's behavior
- Fix schema ID generation to match Apollo's algorithm
Patch Changes
-
#4020
dcfd110
Thanks @EmrysMyrddin! - dependencies updates:- Added dependency
@apollo/server-gateway-interface@^1.1.1
↗︎
(todependencies
) - Added dependency
@apollo/utils.usagereporting@^2.1.0
↗︎
(todependencies
) - Added dependency
@graphql-tools/utils@10.9.0-alpha-20250601230319-2f5f24f393b56915c1c913d3f057531f79991587
↗︎
(todependencies
)
- Added dependency
-
#4078
eec82d9
Thanks @renovate! - dependencies updates:- Updated dependency
@graphql-tools/utils@10.9.0-alpha-20250602135508-a77e43b8ef641aa0bd366dfbddc68b4c774f2882
↗︎
(from10.9.0-alpha-20250601230319-2f5f24f393b56915c1c913d3f057531f79991587
, independencies
)
- Updated dependency
-
#4088
98c82a5
Thanks @EmrysMyrddin! - dependencies updates:- Updated dependency
@graphql-tools/utils@10.8.6
↗︎
(from10.9.0-alpha-20250602135508-a77e43b8ef641aa0bd366dfbddc68b4c774f2882
, independencies
)
- Updated dependency
-
Updated dependencies
[6e04a7f
,
5f75a42
,
98c82a5
,
[98c82a5
](98c82a5d70040f488d72cfd...
May 23, 2025
@graphql-yoga/apollo-link@4.0.0
Major Changes
- #3998
8b41a52
Thanks @renovate! - dependencies updates:- Updated dependency
@graphql-tools/executor-http@^2.0.0
↗︎
(from^1.1.10
, independencies
)
- Updated dependency
@graphql-yoga/urql-exchange@4.0.0
Major Changes
- #3998
8b41a52
Thanks @renovate! - dependencies updates:- Updated dependency
@graphql-tools/executor-http@^2.0.0
↗︎
(from^1.1.9
, independencies
)
- Updated dependency
graphql-yoga@5.13.5
Patch Changes
@graphql-yoga/nestjs@3.13.5
Patch Changes
- Updated dependencies
[8b41a52
]:- graphql-yoga@5.13.5
@graphql-yoga/nestjs-federation@3.13.5
Patch Changes
- Updated dependencies []:
- @graphql-yoga/nestjs@3.13.5
- @graphql-yoga/plugin-apollo-inline-trace@3.13.5
@graphql-yoga/plugin-apollo-inline-trace@3.13.5
Patch Changes
- Updated dependencies
[8b41a52
]:- graphql-yoga@5.13.5
@graphql-yoga/apollo-managed-federation@0.11.5
Patch Changes
- Updated dependencies
[8b41a52
]:- graphql-yoga@5.13.5
@graphql-yoga/plugin-apollo-usage-report@0.8.6
Patch Changes
- Updated dependencies
[8b41a52
]:- graphql-yoga@5.13.5
- @graphql-yoga/plugin-apollo-inline-trace@3.13.5
@graphql-yoga/plugin-apq@3.13.6
Patch Changes
- Updated dependencies
[8b41a52
]:- graphql-yoga@5.13.5
@graphql-yoga/plugin-csrf-prevention@3.13.5
Patch Changes
- Updated dependencies
[8b41a52
]:- graphql-yoga@5.13.5
@graphql-yoga/plugin-defer-stream@3.13.5
Patch Changes
- Updated dependencies
[8b41a52
]:- graphql-yoga@5.13.5
@graphql-yoga/plugin-disable-introspection@2.14.5
Patch Changes
- Updated dependencies
[8b41a52
]:- graphql-yoga@5.13.5
@graphql-yoga/plugin-graphql-sse@3.13.6
Patch Changes
- Updated dependencies
[8b41a52
]:- graphql-yoga@5.13.5
@graphql-yoga/plugin-jwt@3.7.6
Patch Changes
- Updated dependencies
[8b41a52
]:- graphql-yoga@5.13.5
@graphql-yoga/plugin-persisted-operations@3.13.6
Patch Changes
- Updated dependencies
[8b41a52
]:- graphql-yoga@5.13.5
@graphql-yoga/plugin-prometheus@6.8.5
Patch Changes
- Updated dependencies
[8b41a52
]:- graphql-yoga@5.13.5
@graphql-yoga/plugin-response-cache@3.15.6
Patch Changes
- Updated dependencies
[8b41a52
]:- graphql-yoga@5.13.5
@graphql-yoga/plugin-sofa@3.13.6
Patch Changes
- Updated dependencies
[8b41a52
]:- graphql-yoga@5.13.5
@graphql-yoga/render-graphiql@5.13.5
Patch Changes
- Updated dependencies
[8b41a52
]:- graphql-yoga@5.13.5
April 15, 2025
@graphql-yoga/apollo-link@3.13.4
@graphql-yoga/urql-exchange@3.13.4
graphql-yoga@5.13.4
Patch Changes
-
#3995
000c33d
Thanks @enisdenjo! - Update whatwg-node packagesIn light of ardatan/whatwg-node#2305. Please upgrade as soon as possible!
-
Updated dependencies
[000c33d
]:- @graphql-yoga/subscription@5.0.5
@graphql-yoga/nestjs@3.13.4
Patch Changes
-
#3995
000c33d
Thanks @enisdenjo! - Update whatwg-node packagesIn light of ardatan/whatwg-node#2305. Please upgrade as soon as possible!
-
Updated dependencies
[000c33d
]:- graphql-yoga@5.13.4
@graphql-yoga/nestjs-federation@3.13.4
Patch Changes
- Updated dependencies
[000c33d
]:- @graphql-yoga/plugin-apollo-inline-trace@3.13.4
- @graphql-yoga/nestjs@3.13.4
@graphql-yoga/plugin-apollo-inline-trace@3.13.4
Patch Changes
-
#3995
000c33d
Thanks @enisdenjo! - Update whatwg-node packagesIn light of ardatan/whatwg-node#2305. Please upgrade as soon as possible!
-
Updated dependencies
[000c33d
]:- graphql-yoga@5.13.4
@graphql-yoga/apollo-managed-federation@0.11.4
Patch Changes
-
#3995
000c33d
Thanks @enisdenjo! - Update whatwg-node packagesIn light of ardatan/whatwg-node#2305. Please upgrade as soon as possible!
-
Updated dependencies
[000c33d
]:- graphql-yoga@5.13.4
@graphql-yoga/plugin-apollo-usage-report@0.8.5
Patch Changes
-
#3995
000c33d
Thanks @enisdenjo! - Update whatwg-node packagesIn light of ardatan/whatwg-node#2305. Please upgrade as soon as possible!
-
Updated dependencies
[000c33d
]:- @graphql-yoga/plugin-apollo-inline-trace@3.13.4
- graphql-yoga@5.13.4
@graphql-yoga/plugin-apq@3.13.5
Patch Changes
- Updated dependencies
[000c33d
]:- graphql-yoga@5.13.4
@graphql-yoga/plugin-csrf-prevention@3.13.4
Patch Changes
- Updated dependencies
[000c33d
]:- graphql-yoga@5.13.4
@graphql-yoga/plugin-defer-stream@3.13.4
Patch Changes
-
#3995
000c33d
Thanks @enisdenjo! - Update whatwg-node packagesIn light of ardatan/whatwg-node#2305. Please upgrade as soon as possible!
-
Updated dependencies
[000c33d
]:- graphql-yoga@5.13.4
@graphql-yoga/plugin-disable-introspection@2.14.4
Patch Changes
- Updated dependencies
[000c33d
]:- graphql-yoga@5.13.4
@graphql-yoga/plugin-graphql-sse@3.13.5
Patch Changes
- Updated dependencies
[000c33d
]:- graphql-yoga@5.13.4
@graphql-yoga/plugin-jwt@3.7.5
Patch Changes
- Updated dependencies
[000c33d
]:- graphql-yoga@5.13.4
@graphql-yoga/plugin-persisted-operations@3.13.5
Patch Changes
- Updated dependencies
[000c33d
]:- graphql-yoga@5.13.4
@graphql-yoga/plugin-prometheus@6.8.4
Patch Changes
- Updated dependencies
[000c33d
]:- graphql-yoga@5.13.4
@graphql-yoga/plugin-response-cache@3.15.5
Patch Changes
- Updated dependencies
[000c33d
]:- graphql-yoga@5.13.4
@graphql-yoga/plugin-sofa@3.13.5
Patch Changes
- Updated dependencies
[000c33d
]:- graphql-yoga@5.13.4
@graphql-yoga/render-graphiql@5.13.4
Patch Changes
- Updated dependencies
[000c33d
]:- graphql-yoga@5.13.4
@graphql-yoga/subscription@5.0.5
Patch Changes
-
#3995
000c33d
Thanks @enisdenjo! - Update whatwg-node packagesIn light of ardatan/whatwg-node#2305. Please upgrade as soon as possible!
April 09, 2025
@graphql-yoga/apollo-link@3.13.3
@graphql-yoga/urql-exchange@3.13.3
graphql-yoga@5.13.3
Patch Changes
-
#3968
1773c8c
Thanks @ardatan! - Handle unexpected errors correctly.Yoga checks originalError to see if it is a wrapped error of an unexpected error, because
execution engine can wrap it multiple times. -
Updated dependencies
[3a7ef74
]:- @graphql-yoga/subscription@5.0.4
@graphql-yoga/nestjs@3.13.3
Patch Changes
@graphql-yoga/nestjs-federation@3.13.3
Patch Changes
- Updated dependencies
[3a7ef74
]:- @graphql-yoga/plugin-apollo-inline-trace@3.13.3
- @graphql-yoga/nestjs@3.13.3
@graphql-yoga/plugin-apollo-inline-trace@3.13.3
Patch Changes
@graphql-yoga/apollo-managed-federation@0.11.3
Patch Changes
@graphql-yoga/plugin-apollo-usage-report@0.8.4
Patch Changes
- Updated dependencies
[1773c8c
,
3a7ef74
]:- graphql-yoga@5.13.3
- @graphql-yoga/plugin-apollo-inline-trace@3.13.3
@graphql-yoga/plugin-apq@3.13.4
Patch Changes
@graphql-yoga/plugin-csrf-prevention@3.13.3
Patch Changes
@graphql-yoga/plugin-defer-stream@3.13.3
Patch Changes
@graphql-yoga/plugin-disable-introspection@2.14.3
Patch Changes
@graphql-yoga/plugin-graphql-sse@3.13.4
Patch Changes
@graphql-yoga/plugin-jwt@3.7.4
Patch Changes
@graphql-yoga/plugin-persisted-operations@3.13.4
Patch Changes
@graphql-yoga/plugin-prometheus@6.8.3
Patch Changes
@graphql-yoga/plugin-response-cache@3.15.4
Patch Changes
@graphql-yoga/plugin-sofa@3.13.4
Patch Changes
@graphql-yoga/render-graphiql@5.13.3
Patch Changes
@graphql-yoga/subscription@5.0.4
Patch Changes
March 17, 2025
@graphql-yoga/apollo-link@3.13.2
@graphql-yoga/urql-exchange@3.13.2
graphql-yoga@5.13.2
Patch Changes
-
#3876
abe91bd
Thanks @EmrysMyrddin! - Re-export the utility type
AsyncIterableIteratorOrValue
from@envelop/core
. -
#3874
9311842
Thanks @EmrysMyrddin! - Gives access to the request in the
operation
instrument payload, since the request is not in the context yet.
@graphql-yoga/nestjs@3.13.2
Patch Changes
@graphql-yoga/nestjs-federation@3.13.2
Patch Changes
- Updated dependencies []:
- @graphql-yoga/nestjs@3.13.2
- @graphql-yoga/plugin-apollo-inline-trace@3.13.2
@graphql-yoga/plugin-apollo-inline-trace@3.13.2
Patch Changes
@graphql-yoga/apollo-managed-federation@0.11.2
Patch Changes
@graphql-yoga/plugin-apollo-usage-report@0.8.3
Patch Changes
- Updated dependencies
[abe91bd
,
9311842
]:- graphql-yoga@5.13.2
- @graphql-yoga/plugin-apollo-inline-trace@3.13.2
@graphql-yoga/plugin-apq@3.13.3
Patch Changes
@graphql-yoga/plugin-csrf-prevention@3.13.2
Patch Changes
@graphql-yoga/plugin-defer-stream@3.13.2
Patch Changes
@graphql-yoga/plugin-disable-introspection@2.14.2
Patch Changes
@graphql-yoga/plugin-graphql-sse@3.13.3
Patch Changes
@graphql-yoga/plugin-jwt@3.7.3
Patch Changes
@graphql-yoga/plugin-persisted-operations@3.13.3
Patch Changes
@graphql-yoga/plugin-prometheus@6.8.2
Patch Changes
@graphql-yoga/plugin-response-cache@3.15.3
Patch Changes
@graphql-yoga/plugin-sofa@3.13.3
Patch Changes
@graphql-yoga/render-graphiql@5.13.2
Patch Changes
March 06, 2025
@graphql-yoga/apollo-link@3.13.1
@graphql-yoga/urql-exchange@3.13.1
graphql-yoga@5.13.1
Patch Changes
- #3865
dee7995
Thanks @ardatan! - dependencies updates:- Updated dependency
@envelop/core@^5.2.3
↗︎ (from
^5.2.1
, independencies
) - Updated dependency
@whatwg-node/server@^0.10.1
↗︎
(from^0.10.0
, independencies
) - Added dependency
@envelop/instrumentation@^1.0.0
↗︎
(todependencies
) - Removed dependency
@envelop/instruments@^1.0.0
↗︎
(fromdependencies
)
- Updated dependency
@graphql-yoga/nestjs@3.13.1
Patch Changes
- Updated dependencies
[dee7995
]:- graphql-yoga@5.13.1
@graphql-yoga/nestjs-federation@3.13.1
Patch Changes
- #3865
dee7995
Thanks @ardatan! - dependencies updates:- Updated dependency
@envelop/apollo-federation@^6.1.3
↗︎
(from^6.1.1
, independencies
) - Updated dependency
@envelop/core@^5.2.3
↗︎ (from
^5.2.1
, independencies
)
- Updated dependency
- Updated dependencies
[dee7995
]:- @graphql-yoga/plugin-apollo-inline-trace@3.13.1
- @graphql-yoga/nestjs@3.13.1
@graphql-yoga/plugin-apollo-inline-trace@3.13.1
Patch Changes
- #3865
dee7995
Thanks @ardatan! - dependencies updates:- Updated dependency
@envelop/on-resolve@^5.1.3
↗︎
(from^5.1.1
, independencies
)
- Updated dependency
- Updated dependencies
[dee7995
]:- graphql-yoga@5.13.1
@graphql-yoga/apollo-managed-federation@0.11.1
Patch Changes
- Updated dependencies
[dee7995
]:- graphql-yoga@5.13.1
@graphql-yoga/plugin-apollo-usage-report@0.8.2
Patch Changes
- Updated dependencies
[dee7995
,
dee7995
]:- @graphql-yoga/plugin-apollo-inline-trace@3.13.1
- graphql-yoga@5.13.1
@graphql-yoga/plugin-apq@3.13.2
Patch Changes
- Updated dependencies
[dee7995
]:- graphql-yoga@5.13.1
@graphql-yoga/plugin-csrf-prevention@3.13.1
Patch Changes
- Updated dependencies
[dee7995
]:- graphql-yoga@5.13.1
@graphql-yoga/plugin-defer-stream@3.13.1
Patch Changes
- Updated dependencies
[dee7995
]:- graphql-yoga@5.13.1
@graphql-yoga/plugin-disable-introspection@2.14.1
Patch Changes
- Updated dependencies
[dee7995
]:- graphql-yoga@5.13.1
@graphql-yoga/plugin-graphql-sse@3.13.2
Patch Changes
- Updated dependencies
[dee7995
]:- graphql-yoga@5.13.1
@graphql-yoga/plugin-jwt@3.7.2
Patch Changes
- Updated dependencies
[dee7995
]:- graphql-yoga@5.13.1
@graphql-yoga/plugin-persisted-operations@3.13.2
Patch Changes
- Updated dependencies
[dee7995
]:- graphql-yoga@5.13.1
@graphql-yoga/plugin-prometheus@6.8.1
Patch Changes
- #3865
dee7995
Thanks @ardatan! - dependencies updates:- Updated dependency
@envelop/prometheus@^12.1.3
↗︎
(from^12.1.1
, independencies
)
- Updated dependency
- Updated dependencies
[dee7995
]:- graphql-yoga@5.13.1
@graphql-yoga/plugin-response-cache@3.15.2
Patch Changes
- #3865
dee7995
Thanks @ardatan! - dependencies updates:- Updated dependency
@envelop/core@^5.2.3
↗︎ (from
^5.2.1
, independencies
) - Updated dependency
@envelop/response-cache@^7.1.3
↗︎
(from^7.1.1
, independencies
)
- Updated dependency
- Updated dependencies
[dee7995
]:- graphql-yoga@5.13.1
@graphql-yoga/plugin-sofa@3.13.2
Patch Changes
- Updated dependencies
[dee7995
]:- graphql-yoga@5.13.1
@graphql-yoga/render-graphiql@5.13.1
Patch Changes
- Updated dependencies
[dee7995
]:- graphql-yoga@5.13.1
March 06, 2025
@graphql-yoga/plugin-apollo-usage-report@0.8.1
Patch Changes
- #3860
9599d45
Thanks @renovate! - dependencies updates:- Added dependency
@whatwg-node/promise-helpers@^1.2.4
↗︎
(todependencies
)
- Added dependency
@graphql-yoga/plugin-apq@3.13.1
Patch Changes
- #3860
9599d45
Thanks @renovate! - dependencies updates:- Added dependency
@whatwg-node/promise-helpers@^1.2.4
↗︎
(todependencies
)
- Added dependency
@graphql-yoga/plugin-graphql-sse@3.13.1
Patch Changes
- #3860
9599d45
Thanks @renovate! - dependencies updates:- Added dependency
@whatwg-node/promise-helpers@^1.2.4
↗︎
(todependencies
)
- Added dependency
@graphql-yoga/plugin-jwt@3.7.1
Patch Changes
- #3860
9599d45
Thanks @renovate! - dependencies updates:- Added dependency
@whatwg-node/promise-helpers@^1.2.4
↗︎
(todependencies
)
- Added dependency
@graphql-yoga/plugin-persisted-operations@3.13.1
Patch Changes
- #3860
9599d45
Thanks @renovate! - dependencies updates:- Added dependency
@whatwg-node/promise-helpers@^1.2.4
↗︎
(todependencies
)
- Added dependency
@graphql-yoga/plugin-response-cache@3.15.1
Patch Changes
- #3860
9599d45
Thanks @renovate! - dependencies updates:- Added dependency
@whatwg-node/promise-helpers@^1.2.4
↗︎
(todependencies
)
- Added dependency
@graphql-yoga/plugin-sofa@3.13.1
Patch Changes
- #3860
9599d45
Thanks @renovate! - dependencies updates:- Added dependency
@whatwg-node/promise-helpers@^1.2.4
↗︎
(todependencies
)
- Added dependency
March 05, 2025
@graphql-yoga/apollo-link@3.13.0
@graphql-yoga/urql-exchange@3.13.0
graphql-yoga@5.13.0
Minor Changes
-
#3793
63b78d5
Thanks @EmrysMyrddin! - Add new Instruments APIIntroduction of a new API allowing to instrument the graphql pipeline.
This new API differs from already existing Hooks by not having access to input/output of phases.
The goal ofInstruments
is to run allow running code before, after or around the whole process
of a phase, including plugins hooks executions.The main use case of this new API is observability (monitoring, tracing, etc...).
Basic usage
import { createYoga } from 'graphql-yoga' import Sentry from '@sentry/node' import schema from './schema' const server = createYoga({ schema, plugins: [ { instruments: { request: ({ request }, wrapped) => Sentry.startSpan({ name: 'Graphql Operation' }, async () => { try { await wrapped() } catch (err) { Sentry.captureException(err) } }) } } ] })
Multiple instruments plugins
It is possible to have multiple instruments plugins (Prometheus and Sentry for example), they will
be automatically composed by envelop in the same order than the plugin array (first is outermost,
last is inner most).import { createYoga } from 'graphql-yoga' import schema from './schema' const server = createYoga({ schema, plugins: [useSentry(), useOpentelemetry()] })
sequenceDiagram Sentry->>Opentelemetry: ; Opentelemetry->>Server Adapter: ; Server Adapter->>Opentelemetry: ; Opentelemetry->>Sentry: ;
Custom instruments ordering
If the default composition ordering doesn't suite your need, you can manually compose instruments.
This allows to have a different execution order of hooks and instruments.import { composeInstruments, createYoga } from 'graphql-yoga' import schema from './schema' const { instruments: sentryInstruments, ...sentryPlugin } = useSentry() const { instruments: otelInstruments, ...otelPlugin } = useOpentelemetry() const instruments = composeInstruments([otelInstruments, sentryInstruments]) const server = createYoga({ schema, plugins: [{ instruments }, useSentry(), useOpentelemetry()] })
sequenceDiagram Opentelemetry->>Sentry: ; Sentry->>Server Adapter: ; Server Adapter->>Sentry: ; Sentry->>Opentelemetry: ;
Patch Changes
-
#3793
63b78d5
Thanks @EmrysMyrddin! - dependencies updates:- Updated dependency
@envelop/core@^5.2.1
↗︎ (from
^5.0.2
, independencies
) - Added dependency
@envelop/instruments@^1.0.0
↗︎
(todependencies
) - Added dependency
@whatwg-node/promise-helpers@^1.2.4
↗︎
(todependencies
)
- Updated dependency
-
#3855
6ed67e8
Thanks @renovate! - dependencies updates:- Updated dependency
@whatwg-node/server@^0.10.0
↗︎
(from^0.9.71
, independencies
)
- Updated dependency
@graphql-yoga/nestjs@3.13.0
Patch Changes
@graphql-yoga/nestjs-federation@3.13.0
Patch Changes
- #3793
63b78d5
Thanks @EmrysMyrddin! - dependencies updates:- Updated dependency
@envelop/apollo-federation@^6.1.1
↗︎
(from^6.0.0
, independencies
) - Updated dependency
@envelop/core@^5.2.1
↗︎ (from
^5.0.0
, independencies
)
- Updated dependency
- Updated dependencies
[63b78d5
]:- @graphql-yoga/plugin-apollo-inline-trace@3.13.0
- @graphql-yoga/nestjs@3.13.0
@graphql-yoga/plugin-apollo-inline-trace@3.13.0
Patch Changes
- #3793
63b78d5
Thanks @EmrysMyrddin! - dependencies updates:- Updated dependency
@envelop/on-resolve@^5.1.1
↗︎
(from^5.0.0
, independencies
)
- Updated dependency
- Updated dependencies
[63b78d5
,
63b78d5
,
6ed67e8
]:- graphql-yoga@5.13.0
@graphql-yoga/apollo-managed-federation@0.11.0
Patch Changes
@graphql-yoga/plugin-apollo-usage-report@0.8.0
Patch Changes
- Updated dependencies
[63b78d5
,
63b78d5
,
63b78d5
,
6ed67e8
]:- @graphql-yoga/plugin-apollo-inline-trace@3.13.0
- graphql-yoga@5.13.0
@graphql-yoga/plugin-apq@3.13.0
Patch Changes
@graphql-yoga/plugin-csrf-prevention@3.13.0
Patch Changes
@graphql-yoga/plugin-defer-stream@3.13.0
Patch Changes
@graphql-yoga/plugin-disable-introspection@2.14.0
Patch Changes
- #3793
63b78d5
Thanks @EmrysMyrddin! - dependencies updates:- Added dependency
@whatwg-node/promise-helpers@^1.2.4
↗︎
(todependencies
)
- Added dependency
- Updated dependencies
[63b78d5
,
63b78d5
,
6ed67e8
]:- graphql-yoga@5.13.0
@graphql-yoga/plugin-graphql-sse@3.13.0
Patch Changes
- Updated dependencies
[63b78d5
,
63b78d5
,
[6ed67e8
](https://github.com/dotansim...