March 29, 2024
[email protected]
Patch Changes
@graphql-yoga/[email protected]
@graphql-yoga/[email protected]
[email protected]
Minor Changes
-
#3197
f775b341
Thanks @n1ru4l! - Experimental support for aborting GraphQL execution
when the HTTP request is canceled.The execution of subsequent GraphQL resolvers is now aborted if the incoming HTTP request is
canceled from the client side. This reduces the load of your API in case incoming requests with
deep GraphQL operation selection sets are canceled.import { createYoga, useExecutionCancellation } from 'graphql-yoga' const yoga = createYoga({ plugins: [useExecutionCancellation()] })
Action Required In order to benefit from this new feature, you need to update your integration
setup for Fastify, Koa and Hapi.- const response = await yoga.handleNodeRequest(req, { ... }) + const response = await yoga.handleNodeRequestAndResponse(req, res, { ... })
Please refer to the corresponding integration guides for examples.
Patch Changes
-
#3197
f775b341
Thanks @n1ru4l! - dependencies updates:- Updated dependency
@graphql-tools/executor@^1.2.5
↗︎
(from^1.2.2
, independencies
) - Updated dependency
@whatwg-node/fetch@^0.9.17
↗︎
(from^0.9.7
, independencies
) - Updated dependency
@whatwg-node/server@^0.9.32
↗︎
(from^0.9.1
, independencies
)
- Updated dependency
-
#3214
f89a1aa2
Thanks @n1ru4l! - Always include empty data payload for final
complete
event of SSE stream responses to ensure
EventSource
compatibility. See
the
GraphQL over SSE protocol
for more information.
@graphql-yoga/[email protected]
Patch Changes
@graphql-yoga/[email protected]
Patch Changes
- Updated dependencies
[f775b341
]:- @graphql-yoga/[email protected]
- @graphql-yoga/[email protected]
@graphql-yoga/[email protected]
Patch Changes
- #3197
f775b341
Thanks @n1ru4l! - dependencies updates:- Updated dependency
@whatwg-node/fetch@^0.9.17
↗︎
(from^0.9.7
, inpeerDependencies
)
- Updated dependency
- Updated dependencies
[f775b341
,
f775b341
,
f89a1aa2
]: