Update dependency graphql-yoga to v5 #823
Open
+201
−364
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.0.0
Release Notes
dotansimha/graphql-yoga (graphql-yoga)
v5.8.0
Compare Source
Minor Changes
18fe916
Thanks @kroupacz! - Add
version
property to get version of YogaPatch Changes
6bb19ed
Thanks @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.0
Compare Source
Minor Changes
#3331
5dae4ab
Thanks @EmrysMyrddin! - Expose server context in
onResultProcessHook
. In particular, this gives access to thewaitUntil
method to cleanlyhandle hanging promises.
#3331
5dae4ab
Thanks @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
5dae4ab
Thanks @EmrysMyrddin! - Expose the already existing
waitUntil
method from the server context.
Patch Changes
5dae4ab
Thanks @EmrysMyrddin! - dependencies updates:
@whatwg-node/server@^0.9.44
↗︎(from
^0.9.41
, independencies
)v5.6.3
Compare Source
Patch Changes
#3400
0866c1b
Thanks @n1ru4l! - Restores compatibility with
RFC1341: The Multipart Content-Type by
including preceding
\r\n
for 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.2
Compare Source
Patch Changes
#3357
b7bf47b
Thanks @renovate! - dependencies updates:
@whatwg-node/server@^0.9.41
↗︎(from
^0.9.40
, independencies
)#3384
81a736b
Thanks @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.1
Compare Source
Patch Changes
4252e3d
Thanks @ardatan! - dependencies updates:
@whatwg-node/server@^0.9.36
↗︎(from
^0.9.33
, independencies
)v5.6.0
Compare Source
Minor Changes
#3333
9f3f945
Thanks @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
extraParamNames
to allow extraparameters in the request body.
v5.5.0
Compare Source
Minor Changes
#3332
0208024
Thanks @ardatan! - Customize the landing page by passing a custom
renderer that returns
Response
to thelandingPage
optionv5.4.0
Compare Source
Minor Changes
#3314
d5dfe99
Thanks @EmrysMyrddin! - Allow for full customization of the
GraphiQL page.
Props from the
YogaGraphiQL
are now forwarded to the underlying GraphiQL components.The
graphiql
option 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
7335a82
Thanks @nissy-dev! - support shouldPersistHeaders option in
GraphiQL plugin
Patch Changes
#3325
4cd43b9
Thanks @n1ru4l! - Fix TypeScript compatibility with
type: "module"
.#3300
fdd902c
Thanks @EmrysMyrddin! - dependencies updates:
@graphql-yoga/logger@workspace:^
↗︎(from
^2.0.0
, independencies
)@graphql-yoga/subscription@workspace:^
↗︎(from
^5.0.0
, independencies
)#3270
f9aa1cd
Thanks @andrew0! - Retain server context prototype for batched
requests
Updated dependencies
[
fdd902c
]:v5.3.1
Compare Source
Patch Changes
#3237
3324bbab
Thanks @ardatan! - dependencies updates:
@whatwg-node/server@^0.9.33
↗︎(from
^0.9.32
, independencies
)#3237
3324bbab
Thanks @ardatan! - In such environments like CloudFlare Workers, the
request
object in the context always has the initial request object, so it was impossible toaccess the actual
Request
object from the execution context. Now Yoga ensures that therequest
in the context is the same with the actual
Request
.v5.3.0
Compare Source
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.
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
f775b341
Thanks @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
f89a1aa2
Thanks @n1ru4l! - Always include empty data payload for final
complete
event of SSE stream responses to ensureEventSource
compatibility. Seethe
GraphQL over SSE protocol
for more information.
v5.2.0
Compare Source
Minor Changes
71db7548
Thanks @n1ru4l! - Allow setting async iterable within
onParams
hooksetResult
functionPatch Changes
71db7548
Thanks @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.1
Compare Source
Patch Changes
3ef877a7
Thanks @ardatan! - Support errors with extensions set undefined
v5.1.0
Compare Source
Minor Changes
b1f0e3a2
Thanks @magrinj! - Export YogaSchemaDefinition and mergeSchemas
v5.0.2
Compare Source
Patch Changes
77d107fe
Thanks @ardatan! - Update HTTP Executor and add
method
anduseGETForQueries
to GraphiQL optionsv5.0.1
Compare Source
Patch Changes
3fea19f2
Thanks @antonio-iodice! - Do not return 404 when using query
params or trailing slashes
v5.0.0
Compare Source
Major Changes
#3063
01430e03
Thanks @EmrysMyrddin! - Breaking Change: Drop support of
Node.js 16
#3070
5b615478
Thanks @renovate! - dependencies updates:
@envelop/core@^5.0.0
↗︎ (from^4.0.0
, independencies
)Patch Changes
#3051
350bb851
Thanks @ardatan! - Use the same context object in the entire
pipeline
Updated dependencies
[
01430e03
]:v4.0.5
Compare Source
Patch Changes
bf602edf
Thanks @EmrysMyrddin! - Fix dynamic schema function type and
documentation
v4.0.4
Compare Source
Patch Changes
5f182006
Thanks @enisdenjo! - Start SSE stream with a ping
v4.0.3
Compare Source
Patch Changes
5efb8250
Thanks @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.2
Compare Source
Patch Changes
ce6d2465
Thanks @nescalante! - Avoid overriding http status on extensions
when using a plugin that modifies error prop
v4.0.1
Compare Source
Patch Changes
#2866
bb739b05
Thanks @renovate! - dependencies updates:
lru-cache@^10.0.0
↗︎(from
^9.0.0
, independencies
)#2869
8f7d7abc
Thanks @enisdenjo! - Properly serialise GraphQLError on graphql-js
v15
v4.0.0
Compare Source
Major Changes
#2767
4228c1d5
Thanks @renovate! - Drop support for Node.js 14. Require
Node.js
>=16
.#2776
34ecb4bb
Thanks @enisdenjo! - Drop unused graphiql options
defaultVariableEditorOpen
andheaderEditorEnabled
#2810
ec318fe6
Thanks @n1ru4l! - Remove support for executing Subscription
operations over the incremental delivery response protocol (
multipart/mixed
)#2775
dd699c4b
Thanks @enisdenjo! - Subscriptions use GraphQL over SSE "distinct
connections mode"
#2767
4228c1d5
Thanks @renovate! - Events without an event payload will now
always have
null
as the event payload instead ofundefined
.#2777
0522c740
Thanks @enisdenjo! - Parse and validation cache are now under a
single option
parserAndValidationCache
Patch Changes
#2720
cc370691
Thanks @n1ru4l! - Skip validation caching when there is no
schema
specified. This previously caused a cryptic error message when reaching execution/validation
without a schema. Now the missing schema error will actually originate from within the
validate
function instead.
#2726
b309ca0d
Thanks @ardatan! - Respect
toJSON
in the thrown errors.Updated dependencies
[
4228c1d5
,4228c1d5
]:v3.9.1
Compare Source
Patch Changes
#2682
e1a60e21
Thanks @renovate! - dependencies updates:
@graphql-tools/executor@^0.0.17
↗︎(from
^0.0.16
, independencies
)#2686
c50ea51c
Thanks @n1ru4l! - dependencies updates:
@graphql-tools/executor@^0.0.18
↗︎(from
^0.0.17
, independencies
)@graphql-tools/schema@^9.0.18
↗︎(from
^9.0.0
, independencies
)#2686
c50ea51c
Thanks @n1ru4l! - Prevent errors thrown from subscription source
crashing the Node.js process and instead log the error to the console, then terminate the client
subscription.
v3.9.0
Compare Source
Minor Changes
aff69200
Thanks @enisdenjo! - Only well-formatted GraphQL-over-HTTP
requests use 200 when accepting application/json
v3.8.1
Compare Source
Patch Changes
#2652
ebb65b14
Thanks @renovate! - dependencies updates:
@graphql-tools/executor@^0.0.16
↗︎(from
^0.0.15
, independencies
)#2676
528941cb
Thanks @n1ru4l! - Prefer
content-type: multipart/mixed
overcontent-type: text/event-stream
when the client sendsaccept: text/event-stream, multipart/mixed
.v3.8.0
Compare Source
Minor Changes
09d23a4b
Thanks @ardatan! - GraphQL SSE Distinct Connections mode support
with
legacySse = false
flagPatch Changes
#2602
99b72696
Thanks @n1ru4l! - dependencies updates:
lru-cache@^7.14.1
↗︎(from
^8.0.0
, independencies
)#2602
99b72696
Thanks @n1ru4l! - revert
lru-cache
version to7.x.x
, as8.x.x
broke Node.js 14 support.
v3.7.3
Compare Source
Patch Changes
46e75917
Thanks @renovate! - dependencies updates:
lru-cache@^8.0.0
↗︎(from
^7.14.1
, independencies
)v3.7.2
Compare Source
Patch Changes
7ad50529
Thanks @renovate! - dependencies updates:
@graphql-yoga/logger@^0.0.1
↗︎(from
0.0.1
, independencies
)@whatwg-node/server@^0.7.3
↗︎(from
^0.7.1
, independencies
)v3.7.1
Compare Source
Patch Changes
#2481
9fdd94b5
Thanks @ardatan! - dependencies updates:
@whatwg-node/server@^0.7.1
↗︎(from
^0.6.7
, independencies
)#2496
47b1c4a4
Thanks @renovate! - dependencies updates:
@graphql-tools/executor@^0.0.15
↗︎(from
^0.0.14
, independencies
)#2527
02ac055c
Thanks @ardatan! - dependencies updates:
@graphql-yoga/[email protected]
↗︎(to
dependencies
)#2527
02ac055c
Thanks @ardatan! - Release logger seperately
Updated dependencies
[
02ac055c
]:v3.7.0
Minor Changes
9e743db5
Thanks @ardatan! - Respect
http
in the extensions just like errorextensions
Patch Changes
#2470
23d1b26c
Thanks @n1ru4l! - dependencies updates:
@envelop/validation-cache@^5.1.2
↗︎(from
^5.0.5
, independencies
)#2470
23d1b26c
Thanks @n1ru4l! - bump range of
@envelop/validation-cache
forfixing javascript runtime compatibility (usage of node-only global
require
).v3.6.1
Patch Changes
3c8c8434
Thanks @ardatan! - Replace LRU caching with lazy URL construction,
avoid unnecessary
parse
andvalidate
invocation and CORSv3.6.0
Minor Changes
790330be
Thanks @ardatan! - Decrease request latency by improving the
validation and parser cache algorithm.
Patch Changes
#2388
6bc1410f
Thanks @ardatan! - Improve URL parsing performance
#2375
ddb2607d
Thanks @renovate! - dependencies updates:
@graphql-tools/[email protected]
↗︎(from
0.0.12
, independencies
)#2388
6bc1410f
Thanks @ardatan! - dependencies updates:
lru-cache@^7.14.1
↗︎ (todependencies
)#2392
1caac99b
Thanks @renovate! - dependencies updates:
@whatwg-node/[email protected]
↗︎ (from0.6.5
, independencies
)@whatwg-node/[email protected]
↗︎(from
0.5.11
, independencies
)#2393
790330be
Thanks @ardatan! - dependencies updates:
@graphql-tools/utils@^9.2.1
↗︎(from
^9.0.1
, independencies
)@envelop/parser-cache@^5.0.4
↗︎(from
dependencies
)#2394
7587d5c5
Thanks @renovate! - dependencies updates:
@graphql-tools/executor@^0.0.14
↗︎(from
^0.0.13
, independencies
)#2405
cc0d3899
Thanks @renovate! - dependencies updates:
@whatwg-node/fetch@^0.7.0
↗︎(from
^0.6.9
, independencies
)@whatwg-node/server@^0.6.5
↗︎(from
^0.6.4
, independencies
)#2411
a747d249
Thanks @ardatan! - dependencies updates:
@whatwg-node/fetch@^0.8.1
↗︎(from
^0.7.0
, independencies
)@whatwg-node/server@^0.6.7
↗︎(from
^0.6.5
, independencies
)#2417
2933fc89
Thanks @ardatan! - dependencies updates:
@whatwg-node/fetch@^0.7.1
↗︎(from
^0.7.0
, independencies
)#2421
543e490b
Thanks @ardatan! - dependencies updates:
@whatwg-node/fetch@^0.8.1
↗︎(from
^0.7.1
, independencies
)@whatwg-node/server@^0.6.7
↗︎(from
^0.6.5
, independencies
)v3.5.1
Patch Changes
3a8446df
Thanks @n1ru4l! - Close multipart responses correctly
v3.5.0
Minor Changes
#2364
03597a5a
Thanks @n1ru4l! - export the yoga default format error function.
v3.4.1
Compare Source
Patch Changes
#2254
00843174
Thanks @ardatan! - dependencies updates:
@whatwg-node/[email protected]
↗︎ (from0.6.2
, independencies
)@whatwg-node/[email protected]
↗︎(from
0.5.8
, independencies
)#2254
00843174
Thanks @ardatan! - Use the new fetch implementation
v3.4.0
Compare Source
Patch Changes
#2331
76c1ecb9
Thanks @enisdenjo! - Properly serialise response extension arrays,
nullish values and dates
#2276
8cd8b5a5
Thanks @renovate! - dependencies updates:
@whatwg-node/[email protected]
↗︎(from
0.5.4
, independencies
)#2313
6e8bddba
Thanks @renovate! - dependencies updates:
@whatwg-node/[email protected]
↗︎ (from0.6.1
, independencies
)@whatwg-node/[email protected]
↗︎(from
0.5.5
, independencies
)#2316
6ee252db
Thanks @renovate! - dependencies updates:
@graphql-tools/[email protected]
↗︎(from
0.0.11
, independencies
)#2335
8f139e15
Thanks @renovate! - dependencies updates:
@whatwg-node/[email protected]
↗︎(from
0.5.6
, independencies
)#2340
9beef914
Thanks @renovate! - dependencies updates:
@whatwg-node/[email protected]
↗︎(from
0.5.7
, independencies
)#2240
c46d75e8
Thanks @enisdenjo! - Check HTTP request method after user-land
plugins
#2278
f9ab8a70
Thanks @ardatan! - Use normalized URL instead of string
Updated dependencies
[
fe4a2aca
]:v3.3.0
Compare Source
Minor Changes
3e5f688f
Thanks @ardatan! - Accept URL patterns like
/:path
and*
ingraphqlEndpoint
Patch Changes
#2266
3e5f688f
Thanks @ardatan! - dependencies updates:
@whatwg-node/[email protected]
↗︎ (from0.5.4
, independencies
)@whatwg-node/[email protected]
↗︎(from
0.5.1
, independencies
)#2269
8b288a23
Thanks @renovate! - dependencies updates:
@whatwg-node/[email protected]
↗︎(from
0.5.3
, independencies
)v3.2.1
Compare Source
Patch Changes
5528d312
Thanks @ardatan! - Handle errors thrown in onRequest correctly
v3.2.0
Compare Source
Minor Changes
290c7f7f
Thanks @ardatan! - Ping the client every 12 seconds to keep the
connection alive
Patch Changes
#2213
a86aaa0f
Thanks @renovate! - dependencies updates:
@graphql-tools/[email protected]
↗︎(from
0.0.9
, independencies
)@whatwg-node/[email protected]
↗︎ (from0.5.3
, independencies
)@whatwg-node/[email protected]
↗︎(from
0.4.17
, independencies
)#2250
82f58934
Thanks @ardatan! - More accurate HTTP status code when unsupported
media type is sent as a request body.
Before it was returning
400: Bad Request
withRequest is not valid
text body in the responsebut now it returns
415: Unsupported Media Type
with an empty body.Also see this unit test;
https://github.com/dotansimha/graphql-yoga/pull/22502250/files#diff-78bcfa5f6d33aceeabdacd26e353641fea6fd125838ed0e1565762221568c777R380
v3.1.2
Compare Source
Patch Changes
c5b1cc46
Thanks @n1ru4l! - dependencies upd
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.