fix(deps): update dependency graphql-yoga to v5 #581
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
1.18.3->5.16.0Release Notes
graphql-hive/graphql-yoga (graphql-yoga)
v5.16.0Compare Source
Minor Changes
a4e1c5fThanks @EmrysMyrddin! - Add
allowedHeadersoption to allowfiltering Response and Request headers
Patch Changes
0a7a635Thanks @ardatan! - Fix workers' loading in online GraphiQL mode, so
that Monaco features like autocomplete can work properly
v5.15.2Compare Source
Patch Changes
e7b8906Thanks @ardatan! - Bump URL Loader in GraphiQL to the latest to
remove extra DOWNSTREAM_SERVICE_ERROR code in the errors
v5.15.1Compare Source
Patch Changes
ecd605bThanks @enisdenjo! - Does not GraphQL error extensions when it's
wrapping an internal server error
v5.15.0Compare Source
Minor Changes
ccb5c53Thanks @enisdenjo! - Configurable GraphiQL logo and favicon
Patch Changes
ccb5c53Thanks @enisdenjo! - Export GraphiQLPluginConfig and
GraphiQLOptionsOrFactory
v5.14.0Compare Source
Minor Changes
98c82a5Thanks @EmrysMyrddin! - Added new
withStateplugin utilityfor easy data sharing between hooks.
v5.13.5Compare Source
Patch Changes
8b41a52Thanks @renovate! - Remove extra error handling plugin
v5.13.4Compare Source
Patch Changes
#3995
000c33dThanks @enisdenjo! - Update whatwg-node packages
In light of ardatan/whatwg-node#2305. Please upgrade as soon as possible!
Updated dependencies
[
000c33d]:v5.13.3Compare Source
Patch Changes
#3968
1773c8cThanks @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.
#3930
3a7ef74Thanks @ardatan! - Bump
@whatwg-node/serverUpdated dependencies
[
3a7ef74]:v5.13.2Compare Source
Patch Changes
#3876
abe91bdThanks @EmrysMyrddin! - Re-export the utility type
AsyncIterableIteratorOrValuefrom@envelop/core.#3874
9311842Thanks @EmrysMyrddin! - Gives access to the request in the
operationinstrument payload, since the request is not in the context yet.v5.13.1Compare Source
Patch Changes
dee7995Thanks @ardatan! - dependencies updates:
@envelop/core@^5.2.3↗︎ (from^5.2.1, independencies)@whatwg-node/server@^0.10.1↗︎(from
^0.10.0, independencies)@envelop/instrumentation@^1.0.0↗︎(to
dependencies)@envelop/instruments@^1.0.0↗︎(from
dependencies)v5.13.0Compare Source
Minor Changes
#3793
63b78d5Thanks @EmrysMyrddin! - Add new Instrumentation API
Introduction 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 of
Instrumentationis to run allow running code before, after or around the wholeprocess of a phase, including plugins hooks executions.
The main use case of this new API is observability (monitoring, tracing, etc...).
Basic usage
Multiple instrumentation plugins
It is possible to have multiple instrumentation 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).
Custom instrumentation ordering
If the default composition ordering doesn't suite your need, you can manually compose
instrumentation. This allows to have a different execution order of hooks and instrumentation.
Patch Changes
#3793
63b78d5Thanks @EmrysMyrddin! - dependencies updates:
@envelop/core@^5.2.1↗︎ (from^5.0.2, independencies)@envelop/instrumentation@^1.0.0↗︎(to
dependencies)@whatwg-node/promise-helpers@^1.2.4↗︎(to
dependencies)#3855
6ed67e8Thanks @renovate! - dependencies updates:
@whatwg-node/server@^0.10.0↗︎(from
^0.9.71, independencies)v5.12.2Compare Source
Patch Changes
a6b3de9Thanks @ardatan! - dependencies updates:
@whatwg-node/server@^0.9.71↗︎(from
^0.9.69, independencies)v5.12.1Patch Changes
fbf328cThanks @ardatan! - dependencies updates:
@whatwg-node/fetch@^0.10.5↗︎(from
^0.10.1, independencies)@whatwg-node/server@^0.9.69↗︎(from
^0.9.64, independencies)v5.12.0Minor Changes
5150146Thanks @ardatan! -
extensions.codeusage for specific errorsPatch Changes
#3764
96498eeThanks @slagiewka! - Pass through
disposeOnProcessTerminatetocreateServerAdapter#3672
5150146Thanks @ardatan! - dependencies updates:
@graphql-tools/executor@^1.4.0↗︎(from
^1.3.7, independencies)v5.11.0Compare Source
Minor Changes
#3727
5fd15b8Thanks @EmrysMyrddin! - Allow to configure the endpoint used by
GraphiQL to send requests.
#3736
d13b8a4Thanks @ardatan! - Now it is possible to replace or wrap the logic
how
GraphQLParamshandled;By default Yoga calls Envelop to handle the parameters, but now you can replace it with your own
logic.
Example: Wrap the GraphQL handling pipeline in an
AsyncLocalStoragev5.10.11Compare Source
Patch Changes
1c055f5Thanks @ardatan! - Show deprecated input fields, arguments and all
other input values in GraphiQL
v5.10.10Compare Source
Patch Changes
[
d4cbae1,d4cbae1]:v5.10.9Compare Source
Patch Changes
#3620
d24c5d5Thanks @enisdenjo! - Bump dset dependency handling the
CVE-2024-21529
https://security.snyk.io/vuln/SNYK-JS-DSET-7116691
#3620
d24c5d5Thanks @enisdenjo! - dependencies updates:
dset@^3.1.4↗︎ (from^3.1.1, independencies)v5.10.8Compare Source
Patch Changes
ed344eaThanks @ardatan! - Mark
createLRUCacheutility as deprecated, andexport it as
_createLRUCachemarking it as an internal utilityv5.10.7Compare Source
Patch Changes
#3547
8fee214Thanks @Urigo! - dependencies updates:
@graphql-tools/executor@^1.3.7↗︎(from
^1.3.5, independencies)@graphql-tools/schema@^10.0.11↗︎(from
^10.0.10, independencies)@graphql-tools/utils@^10.6.2↗︎(from
^10.6.1, independencies)@whatwg-node/server@^0.9.63↗︎(from
^0.9.60, independencies)#3567
1df4912Thanks @ardatan! - dependencies updates:
@whatwg-node/server@^0.9.64↗︎(from
^0.9.63, independencies)v5.10.6Compare Source
Patch Changes
121ccbaThanks @bridges-wood! - Fix stylesheet reference in graphiql
v5.10.5Compare Source
Patch Changes
#3546
eca7cd1Thanks @EmrysMyrddin! - Add documentation for Plugin hooks
#3549
05fe345Thanks @ardatan! - dependencies updates:
@graphql-tools/executor@^1.3.7↗︎(from
^1.3.5, independencies)@graphql-tools/schema@^10.0.11↗︎(from
^10.0.10, independencies)@graphql-tools/utils@^10.6.2↗︎(from
^10.6.1, independencies)@whatwg-node/server@^0.9.63↗︎(from
^0.9.60, independencies)Updated dependencies []:
v5.10.4Compare Source
Patch Changes
944ecd5Thanks @ardatan! - dependencies updates:
@envelop/core@^5.0.2↗︎ (from^5.0.1, independencies)@graphql-tools/executor@^1.3.5↗︎(from
^1.3.3, independencies)@graphql-tools/schema@^10.0.10↗︎(from
^10.0.4, independencies)@graphql-tools/utils@^10.6.1↗︎(from
^10.3.2, independencies)@whatwg-node/server@^0.9.60↗︎(from
^0.9.55, independencies)tslib@^2.8.1↗︎ (from^2.5.2, independencies)v5.10.3Compare Source
Patch Changes
#3501
c93366dThanks @enisdenjo! - dependencies updates:
@graphql-tools/executor@^1.3.3↗︎(from
^1.3.0, independencies)#3501
c93366dThanks @enisdenjo! - Update transport executors containing
improvements and fixes
v5.10.2Compare Source
Patch Changes
#3491
7a413bcThanks @n1ru4l! - dependencies updates:
@whatwg-node/server@^0.9.55↗︎(from
^0.9.54, independencies)#3491
7a413bcThanks @n1ru4l! - Fix issue where context values being shared between
batched requests.
A bug within
@whatwg-node/servercaused properties assigned to a batched requests context to bepropagated to all other batched requests contexts. It is resolved by updating the dependency of
@whatwg-node/serverto0.9.55.v5.10.1Compare Source
Patch Changes
1c055f5Thanks @ardatan! - Show deprecated input fields, arguments and all
other input values in GraphiQL
v5.10.0Compare Source
Minor Changes
f81501cThanks @maeldur! - Correctly handle HTTP GET requests with
?characters in the query search string.
v5.9.0Compare Source
Minor Changes
87ee333Thanks @n1ru4l! - Inject initial context into
onParamshook.Patch Changes
2523d9fThanks @kroupacz! - ### Fixed
versionv5.8.0Compare Source
Minor Changes
18fe916Thanks @kroupacz! - Add
versionproperty to get version of YogaPatch Changes
6bb19edThanks @ardatan! - dependencies updates:
@whatwg-node/fetch@^0.9.22↗︎(from
^0.9.18, independencies)@whatwg-node/server@^0.9.50↗︎(from
^0.9.44, independencies)v5.7.0Compare Source
Minor Changes
#3331
5dae4abThanks @EmrysMyrddin! - Expose server context in
onResultProcessHook. In particular, this gives access to thewaitUntilmethod to cleanlyhandle hanging promises.
#3331
5dae4abThanks @EmrysMyrddin! - New hook: onExecutionResult which is
triggered when an execution is done on the pipeline. If it is a batched operation, this is called
per each operation in the batch
#3331
5dae4abThanks @EmrysMyrddin! - Expose the already existing
waitUntilmethod from the server context.
Patch Changes
5dae4abThanks @EmrysMyrddin! - dependencies updates:
@whatwg-node/server@^0.9.44↗︎(from
^0.9.41, independencies)v5.6.3Compare Source
Patch Changes
#3400
0866c1bThanks @n1ru4l! - Restores compatibility with
RFC1341: The Multipart Content-Type by
including preceding
\r\nfor initial boundary delimiter when using the multipart responseprotocol.
This makes Yoga compatible with libraries that strictly follow the response protocol, such as
fetch-multipart-graphql.
v5.6.2Compare Source
Patch Changes
#3357
b7bf47bThanks @renovate! - dependencies updates:
@whatwg-node/server@^0.9.41↗︎(from
^0.9.40, independencies)#3384
81a736bThanks @ardatan! - dependencies updates:
@envelop/core@^5.0.1↗︎ (from^5.0.0, independencies)@graphql-tools/executor@^1.3.0↗︎(from
^1.2.5, independencies)@graphql-tools/schema@^10.0.4↗︎(from
^10.0.0, independencies)@graphql-tools/utils@^10.3.2↗︎(from
^10.1.0, independencies)@whatwg-node/fetch@^0.9.18↗︎(from
^0.9.17, independencies)@whatwg-node/server@^0.9.40↗︎(from
^0.9.36, independencies)v5.6.1Compare Source
Patch Changes
4252e3dThanks @ardatan! - dependencies updates:
@whatwg-node/server@^0.9.36↗︎(from
^0.9.33, independencies)v5.6.0Compare Source
Minor Changes
#3333
9f3f945Thanks @ardatan! - By default, Yoga does not allow extra parameters
in the request body other than
query,operationName,extensions, andvariables, thenthrows 400 HTTP Error. This change adds a new option called
extraParamNamesto allow extraparameters in the request body.
v5.5.0Compare Source
Minor Changes
#3332
0208024Thanks @ardatan! - Customize the landing page by passing a custom
renderer that returns
Responseto thelandingPageoptionv5.4.0Compare Source
Minor Changes
#3314
d5dfe99Thanks @EmrysMyrddin! - Allow for full customization of the
GraphiQL page.
Props from the
YogaGraphiQLare now forwarded to the underlying GraphiQL components.The
graphiqloption field type of the Yoga server as also been updated to document which optionsare configurable from the server side. Only serializable options are available.
#3255
7335a82Thanks @nissy-dev! - support shouldPersistHeaders option in
GraphiQL plugin
Patch Changes
#3325
4cd43b9Thanks @n1ru4l! - Fix TypeScript compatibility with
type: "module".#3300
fdd902cThanks @EmrysMyrddin! - dependencies updates:
@graphql-yoga/logger@workspace:^↗︎(from
^2.0.0, independencies)@graphql-yoga/subscription@workspace:^↗︎(from
^5.0.0, independencies)#3270
f9aa1cdThanks @andrew0! - Retain server context prototype for batched
requests
Updated dependencies
[
fdd902c]:v5.3.1Compare Source
Patch Changes
#3237
3324bbabThanks @ardatan! - dependencies updates:
@whatwg-node/server@^0.9.33↗︎(from
^0.9.32, independencies)#3237
3324bbabThanks @ardatan! - In such environments like CloudFlare Workers, the
requestobject in the context always has the initial request object, so it was impossible toaccess the actual
Requestobject from the execution context. Now Yoga ensures that therequestin the context is the same with the actual
Request.v5.3.0Compare Source
Minor Changes
#3197
f775b341Thanks @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.
Learn more in our docs
Action Required In order to benefit from this new feature, you need to update your integration
setup for Fastify, Koa and Hapi.
Please refer to the corresponding integration guides for examples.
Patch Changes
#3197
f775b341Thanks @n1ru4l! - dependencies updates:
@graphql-tools/executor@^1.2.5↗︎(from
^1.2.2, independencies)@whatwg-node/fetch@^0.9.17↗︎(from
^0.9.7, independencies)@whatwg-node/server@^0.9.32↗︎(from
^0.9.1, independencies)#3214
f89a1aa2Thanks @n1ru4l! - Always include empty data payload for final
completeevent of SSE stream responses to ensureEventSourcecompatibility. Seethe
GraphQL over SSE protocol
for more information.
v5.2.0Compare Source
Minor Changes
71db7548Thanks @n1ru4l! - Allow setting async iterable within
onParamshooksetResultfunctionPatch Changes
71db7548Thanks @n1ru4l! - dependencies updates:
@graphql-tools/executor@^1.2.2↗︎(from
^1.0.0, independencies)@graphql-tools/utils@^10.1.0↗︎(from
^10.0.0, independencies)v5.1.1Compare Source
Patch Changes
3ef877a7Thanks @ardatan! - Support errors with extensions set undefined
v5.1.0Compare Source
Minor Changes
b1f0e3a2Thanks @magrinj! - Export YogaSchemaDefinition and mergeSchemas
v5.0.2Compare Source
Patch Changes
77d107feThanks @ardatan! - Update HTTP Executor and add
methodanduseGETForQueriesto GraphiQL optionsv5.0.1Compare Source
Patch Changes
3fea19f2Thanks @antonio-iodice! - Do not return 404 when using query
params or trailing slashes
v5.0.0Compare Source
Major Changes
#3063
01430e03Thanks @EmrysMyrddin! - Breaking Change: Drop support of
Node.js 16
#3070
5b615478Thanks @renovate! - dependencies updates:
@envelop/core@^5.0.0↗︎ (from^4.0.0, independencies)Patch Changes
#3051
350bb851Thanks @ardatan! - Use the same context object in the entire
pipeline
Updated dependencies
[
01430e03]:v4.0.5Compare Source
Patch Changes
bf602edfThanks @EmrysMyrddin! - Fix dynamic schema function type and
documentation
v4.0.4Compare Source
Patch Changes
5f182006Thanks @enisdenjo! - Start SSE stream with a ping
v4.0.3Compare Source
Patch Changes
5efb8250Thanks @n1ru4l! - dependencies updates:
@whatwg-node/fetch@^0.9.7↗︎(from
^0.9.0, independencies)@whatwg-node/server@^0.9.1↗︎(from
^0.8.1, independencies)v4.0.2Compare Source
Patch Changes
ce6d2465Thanks @nescalante! - Avoid overriding http status on extensions
when using a plugin that modifies error prop
v4.0.1Compare Source
Patch Changes
#2866
bb739b05Thanks @renovate! - dependencies updates:
lru-cache@^10.0.0↗︎(from
^9.0.0, independencies)#2869
8f7d7abcThanks @enisdenjo! - Properly serialise GraphQLError on graphql-js
v15
v4.0.0Compare Source
Major Changes
#2767
4228c1d5Thanks @renovate! - Drop support for Node.js 14. Require
Node.js
>=16.#2776
34ecb4bbThanks @enisdenjo! - Drop unused graphiql options
defaultVariableEditorOpenandheaderEditorEnabled#2810
ec318fe6Thanks @n1ru4l! - Remove support for executing Subscription
operations over the incremental delivery response protocol (
multipart/mixed)#2775
[`d
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.