node-graphql-server
node-graphql-server copied to clipboard
fix(deps): update dependency graphql-yoga to v5
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| graphql-yoga (source) | 1.18.3 -> 5.7.0 |
Release Notes
dotansimha/graphql-yoga (graphql-yoga)
v5.7.0
Minor Changes
-
#3331
5dae4abThanks @EmrysMyrddin! - Expose server context inonResultProcessHook. In particular, this gives access to thewaitUntilmethod to cleanly handle 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 existingwaitUntilmethod from the server context.
Patch Changes
- #3331
5dae4abThanks @EmrysMyrddin! - dependencies updates:- Updated dependency
@whatwg-node/server@^0.9.44↗︎ (from^0.9.41, independencies)
- Updated dependency
v5.6.3
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 response protocol.This makes Yoga compatible with libraries that strictly follow the response protocol, such as fetch-multipart-graphql.
v5.6.2
Patch Changes
-
#3357
b7bf47bThanks @renovate! - dependencies updates:- Updated dependency
@whatwg-node/server@^0.9.41↗︎ (from^0.9.40, independencies)
- Updated dependency
-
#3384
81a736bThanks @ardatan! - dependencies updates:- Updated dependency
@envelop/core@^5.0.1↗︎ (from^5.0.0, independencies) - Updated dependency
@graphql-tools/executor@^1.3.0↗︎ (from^1.2.5, independencies) - Updated dependency
@graphql-tools/schema@^10.0.4↗︎ (from^10.0.0, independencies) - Updated dependency
@graphql-tools/utils@^10.3.2↗︎ (from^10.1.0, independencies) - Updated dependency
@whatwg-node/fetch@^0.9.18↗︎ (from^0.9.17, independencies) - Updated dependency
@whatwg-node/server@^0.9.40↗︎ (from^0.9.36, independencies)
- Updated dependency
v5.6.1
Patch Changes
- #3338
4252e3dThanks @ardatan! - dependencies updates:- Updated dependency
@whatwg-node/server@^0.9.36↗︎ (from^0.9.33, independencies)
- Updated dependency
v5.6.0
Minor Changes
-
#3333
9f3f945Thanks @ardatan! - By default, Yoga does not allow extra parameters in the request body other thanquery,operationName,extensions, andvariables, then throws 400 HTTP Error. This change adds a new option calledextraParamNamesto allow extra parameters in the request body.import { createYoga } from 'graphql-yoga' const yoga = createYoga({ /* other options */ extraParamNames: ['extraParam1', 'extraParam2'] }) const res = await yoga.fetch('/graphql', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ query: 'query { __typename }', extraParam1: 'value1', extraParam2: 'value2' }) }) console.assert(res.status === 200)
v5.5.0
Minor Changes
-
#3332
0208024Thanks @ardatan! - Customize the landing page by passing a custom renderer that returnsResponseto thelandingPageoptionimport { createYoga } from 'graphql-yoga' const yoga = createYoga({ landingPage: ({ url, fetchAPI }) => { return new fetchAPI.Response( /* HTML */ ` <!doctype html> <html> <head> <title>404 Not Found</title> </head> <body> <h1>404 Not Found</h1> <p>Sorry, the page (${url.pathname}) you are looking for could not be found.</p> </body> </html> `, { status: 404, headers: { 'Content-Type': 'text/html' } } ) } })
v5.4.0
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 options are 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 withtype: "module". -
#3300
fdd902cThanks @EmrysMyrddin! - dependencies updates:- Updated dependency
@graphql-yoga/logger@workspace:^↗︎ (from^2.0.0, independencies) - Updated dependency
@graphql-yoga/subscription@workspace:^↗︎ (from^5.0.0, independencies)
- Updated dependency
-
#3270
f9aa1cdThanks @andrew0! - Retain server context prototype for batched requests -
Updated dependencies [
fdd902c]:
v5.3.1
Patch Changes
-
#3237
3324bbabThanks @ardatan! - dependencies updates:- Updated dependency
@whatwg-node/server@^0.9.33↗︎ (from^0.9.32, independencies)
- Updated dependency
-
#3237
3324bbabThanks @ardatan! - In such environments like CloudFlare Workers, therequestobject in the context always has the initial request object, so it was impossible to access the actualRequestobject from the execution context. Now Yoga ensures that therequestin the context is the same with the actualRequest.
v5.3.0
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.
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
f775b341Thanks @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
f89a1aa2Thanks @n1ru4l! - Always include empty data payload for finalcompleteevent of SSE stream responses to ensureEventSourcecompatibility. See the GraphQL over SSE protocol for more information.
v5.2.0
Minor Changes
- #3196
71db7548Thanks @n1ru4l! - Allow setting async iterable withinonParamshooksetResultfunction
Patch Changes
- #3196
71db7548Thanks @n1ru4l! - dependencies updates:- Updated dependency
@graphql-tools/executor@^1.2.2↗︎ (from^1.0.0, independencies) - Updated dependency
@graphql-tools/utils@^10.1.0↗︎ (from^10.0.0, independencies)
- Updated dependency
v5.1.1
Patch Changes
v5.1.0
Minor Changes
v5.0.2
Patch Changes
- #3133
77d107feThanks @ardatan! - Update HTTP Executor and addmethodanduseGETForQueriesto GraphiQL options
v5.0.1
Patch Changes
3fea19f2Thanks @antonio-iodice! - Do not return 404 when using query params or trailing slashes
v5.0.0
Major Changes
-
#3063
01430e03Thanks @EmrysMyrddin! - Breaking Change: Drop support of Node.js 16 -
#3070
5b615478Thanks @renovate! - dependencies updates:- Updated dependency
@envelop/core@^5.0.0↗︎ (from^4.0.0, independencies)
- Updated dependency
Patch Changes
-
#3051
350bb851Thanks @ardatan! - Use the same context object in the entire pipeline -
Updated dependencies [
01430e03]:
v4.0.5
Patch Changes
- #3004
bf602edfThanks @EmrysMyrddin! - Fix dynamic schema function type and documentation
v4.0.4
Patch Changes
- #2958
5f182006Thanks @enisdenjo! - Start SSE stream with a ping
v4.0.3
Patch Changes
5efb8250Thanks @n1ru4l! - dependencies updates:- Updated dependency
@whatwg-node/fetch@^0.9.7↗︎ (from^0.9.0, independencies) - Updated dependency
@whatwg-node/server@^0.9.1↗︎ (from^0.8.1, independencies)
- Updated dependency
v4.0.2
Patch Changes
- #2872
ce6d2465Thanks @nescalante! - Avoid overriding http status on extensions when using a plugin that modifies error prop
v4.0.1
Patch Changes
-
#2866
bb739b05Thanks @renovate! - dependencies updates:- Updated dependency
lru-cache@^10.0.0↗︎ (from^9.0.0, independencies)
- Updated dependency
-
#2869
8f7d7abcThanks @enisdenjo! - Properly serialise GraphQLError on graphql-js v15
v4.0.0
Major Changes
-
#2767
4228c1d5Thanks @renovate! - Drop support for Node.js 14. Require Node.js>=16. -
#2776
34ecb4bbThanks @enisdenjo! - Drop unused graphiql optionsdefaultVariableEditorOpenandheaderEditorEnabled -
#2810
ec318fe6Thanks @n1ru4l! - Remove support for executing Subscription operations over the incremental delivery response protocol (multipart/mixed) -
#2775
dd699c4bThanks @enisdenjo! - Subscriptions use GraphQL over SSE "distinct connections mode" -
#2767
4228c1d5Thanks @renovate! - Events without an event payload will now always havenullas the event payload instead ofundefined. -
#2777
0522c740Thanks @enisdenjo! - Parse and validation cache are now under a single optionparserAndValidationCache
Patch Changes
-
#2720
cc370691Thanks @n1ru4l! - Skip validation caching when there is noschemaspecified. This previously caused a cryptic error message when reaching execution/validation without a schema. Now the missing schema error will actually originate from within thevalidatefunction instead. -
#2726
b309ca0dThanks @ardatan! - RespecttoJSONin the thrown errors.
v3.9.1
Patch Changes
-
#2682
e1a60e21Thanks @renovate! - dependencies updates:- Updated dependency
@graphql-tools/executor@^0.0.17↗︎ (from^0.0.16, independencies)
- Updated dependency
-
#2686
c50ea51cThanks @n1ru4l! - dependencies updates:- Updated dependency
@graphql-tools/executor@^0.0.18↗︎ (from^0.0.17, independencies) - Updated dependency
@graphql-tools/schema@^9.0.18↗︎ (from^9.0.0, independencies)
- Updated dependency
-
#2686
c50ea51cThanks @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
Minor Changes
- #2675
aff69200Thanks @enisdenjo! - Only well-formatted GraphQL-over-HTTP requests use 200 when accepting application/json
v3.8.1
Patch Changes
-
#2652
ebb65b14Thanks @renovate! - dependencies updates:- Updated dependency
@graphql-tools/executor@^0.0.16↗︎ (from^0.0.15, independencies)
- Updated dependency
-
#2676
528941cbThanks @n1ru4l! - Prefercontent-type: multipart/mixedovercontent-type: text/event-streamwhen the client sendsaccept: text/event-stream, multipart/mixed.
v3.8.0
Minor Changes
- #2445
09d23a4bThanks @ardatan! - GraphQL SSE Distinct Connections mode support withlegacySse = falseflag
Patch Changes
-
#2602
99b72696Thanks @n1ru4l! - dependencies updates:- Updated dependency
lru-cache@^7.14.1↗︎ (from^8.0.0, independencies)
- Updated dependency
-
#2602
99b72696Thanks @n1ru4l! - revertlru-cacheversion to7.x.x, as8.x.xbroke Node.js 14 support.
v3.7.3
Patch Changes
- #2559
46e75917Thanks @renovate! - dependencies updates:- Updated dependency
lru-cache@^8.0.0↗︎ (from^7.14.1, independencies)
- Updated dependency
v3.7.2
Patch Changes
- #2528
7ad50529Thanks @renovate! - dependencies updates:- Updated dependency
@graphql-yoga/logger@^0.0.1↗︎ (from0.0.1, independencies) - Updated dependency
@whatwg-node/server@^0.7.3↗︎ (from^0.7.1, independencies)
- Updated dependency
v3.7.1
Patch Changes
-
#2481
9fdd94b5Thanks @ardatan! - dependencies updates:- Updated dependency
@whatwg-node/server@^0.7.1↗︎ (from^0.6.7, independencies)
- Updated dependency
-
#2496
47b1c4a4Thanks @renovate! - dependencies updates:- Updated dependency
@graphql-tools/executor@^0.0.15↗︎ (from^0.0.14, independencies)
- Updated dependency
-
#2527
02ac055cThanks @ardatan! - dependencies updates:- Added dependency
@graphql-yoga/[email protected]↗︎ (todependencies)
- Added dependency
-
#2527
02ac055cThanks @ardatan! - Release logger seperately -
Updated dependencies [
02ac055c]:
v3.7.0
Minor Changes
Patch Changes
-
#2470
23d1b26cThanks @n1ru4l! - dependencies updates:- Updated dependency
@envelop/validation-cache@^5.1.2↗︎ (from^5.0.5, independencies)
- Updated dependency
-
#2470
23d1b26cThanks @n1ru4l! - bump range of@envelop/validation-cachefor fixing javascript runtime compatibility (usage of node-only globalrequire).
v3.6.1
Patch Changes
3c8c8434Thanks @ardatan! - Replace LRU caching with lazy URL construction, avoid unnecessaryparseandvalidateinvocation and CORS
v3.6.0
Minor Changes
- #2393
790330beThanks @ardatan! - Decrease request latency by improving the validation and parser cache algorithm.
Patch Changes
-
#2388
6bc1410fThanks @ardatan! - Improve URL parsing performance -
#2375
ddb2607dThanks @renovate! - dependencies updates:- Updated dependency
@graphql-tools/[email protected]↗︎ (from0.0.12, independencies)
- Updated dependency
-
#2388
6bc1410fThanks @ardatan! - dependencies updates:- Added dependency
lru-cache@^7.14.1↗︎ (todependencies)
- Added dependency
-
#2392
1caac99bThanks @renovate! - dependencies updates:- Updated dependency
@whatwg-node/[email protected]↗︎ (from0.6.5, independencies) - Updated dependency
@whatwg-node/[email protected]↗︎ (from0.5.11, independencies)
- Updated dependency
-
#2393
790330beThanks @ardatan! - dependencies updates:- Updated dependency
@graphql-tools/utils@^9.2.1↗︎ (from^9.0.1, independencies) - Removed dependency
@envelop/parser-cache@^5.0.4↗︎ (fromdependencies)
- Updated dependency
-
#2394
7587d5c5Thanks @renovate! - dependencies updates:- Updated dependency
@graphql-tools/executor@^0.0.14↗︎ (from^0.0.13, independencies)
- Updated dependency
-
#2405
cc0d3899Thanks @renovate! - dependencies updates:- Updated dependency
@whatwg-node/fetch@^0.7.0↗︎ (from^0.6.9, independencies) - Updated dependency
@whatwg-node/server@^0.6.5↗︎ (from^0.6.4, independencies)
- Updated dependency
-
#2411
a747d249Thanks @ardatan! - dependencies updates:- Updated dependency
@whatwg-node/fetch@^0.8.1↗︎ (from^0.7.0, independencies) - Updated dependency
@whatwg-node/server@^0.6.7↗︎ (from^0.6.5, independencies)
- Updated dependency
-
#2417
2933fc89Thanks @ardatan! - dependencies updates:- Updated dependency
@whatwg-node/fetch@^0.7.1↗︎ (from^0.7.0, independencies)
- Updated dependency
-
#2421
543e490bThanks @ardatan! - dependencies updates:- Updated dependency
@whatwg-node/fetch@^0.8.1↗︎ (from^0.7.1, independencies) - Updated dependency
@whatwg-node/server@^0.6.7↗︎ (from^0.6.5, independencies)
- Updated dependency
v3.5.1
Patch Changes
v3.5.0
Minor Changes
-
#2364
03597a5aThanks @n1ru4l! - export the yoga default format error function.import { createYoga, maskError } from 'graphql-yoga' const yoga = createYoga({ maskedErrors: { maskError(error, message, isDev) { if (error?.extensions?.code === 'DOWNSTREAM_SERVICE_ERROR') { return error } return maskError(error, message, isDev) } } })
v3.4.1
Patch Changes
-
#2254
00843174Thanks @ardatan! - dependencies updates:- Updated dependency
@whatwg-node/[email protected]↗︎ (from0.6.2, independencies) - Updated dependency
@whatwg-node/[email protected]↗︎ (from0.5.8, independencies)
- Updated dependency
-
#2254
00843174Thanks @ardatan! - Use the new fetch implementation
v3.4.0
Patch Changes
-
#2331
76c1ecb9Thanks @enisdenjo! - Properly serialise response extension arrays, nullish values and dates -
#2276
8cd8b5a5Thanks @renovate! - dependencies updates:- Updated dependency
@whatwg-node/[email protected]↗︎ (from0.5.4, independencies)
- Updated dependency
-
#2313
6e8bddbaThanks @renovate! - dependencies updates:- Updated dependency
@whatwg-node/[email protected]↗︎ (from0.6.1, independencies) - Updated dependency
@whatwg-node/[email protected]↗︎ (from0.5.5, independencies)
- Updated dependency
-
#2316
6ee252dbThanks @renovate! - dependencies updates:- Updated dependency
@graphql-tools/[email protected]↗︎ (from0.0.11, independencies)
- Updated dependency
-
#2335
8f139e15Thanks @renovate! - dependencies updates:- Updated dependency
@whatwg-node/[email protected]↗︎ (from0.5.6, independencies)
- Updated dependency
-
#2340
9beef914Thanks @renovate! - dependencies updates:- Updated dependency
@whatwg-node/[email protected]↗︎ (from0.5.7, independencies)
- Updated dependency
-
#2240
c46d75e8Thanks @enisdenjo! - Check HTTP request method after user-land plugins -
#2278
f9ab8a70Thanks @ardatan! - Use normalized URL instead of string -
Updated dependencies [
fe4a2aca]:
v3.3.0
Minor Changes
Patch Changes
-
#2266
3e5f688fThanks @ardatan! - dependencies updates:- Updated dependency
@whatwg-node/[email protected]↗︎ (from0.5.4, independencies) - Updated dependency
@whatwg-node/[email protected]↗︎ (from0.5.1, independencies)
- Updated dependency
-
#2269
8b288a23Thanks @renovate! - dependencies updates:- Updated dependency
@whatwg-node/[email protected]↗︎ (from0.5.3, independencies)
- Updated dependency
v3.2.1
Patch Changes
v3.2.0
Minor Changes
Patch Changes
-
#2213
a86aaa0fThanks @renovate! - dependencies updates:- Updated dependency
@graphql-tools/[email protected]↗︎ (from0.0.9, independencies) - Updated dependency
@whatwg-node/[email protected]↗︎ (from0.5.3, independencies) - Updated dependency
@whatwg-node/[email protected]↗︎ (from0.4.17, independencies)
- Updated dependency
-
#2250
82f58934Thanks @ardatan! - More accurate HTTP status code when unsupported media type is sent as a request body.Before it was returning
400: Bad RequestwithRequest is not validtext body in the response but now it returns415: Unsupported Media Typewith an empty body.Also see this unit test; https://github.com/dotansimha/graphql-yoga/pull/22502250/files#diff-78bcfa5f6d33aceeabdacd26e353641fea6fd125838ed0e1565762221568c777R380
v3.1.2
Patch Changes
-
#2231
c5b1cc46Thanks @n1ru4l! - dependencies updates:- Updated dependency
@envelop/parser-cache@^5.0.4↗︎ (from5.0.4, independencies) - Updated dependency
@envelop/validation-cache@^5.0.5↗︎ (from5.0.4, independencies)
- Updated dependency
-
#2238
c152105eThanks @ardatan! - Do not call CORS headers factory twice -
#2206
26d780cdThanks @ardatan! - Correct Mask Error Factory signature -
#2239 [
d2958781](https://redirect.github.com/dotansimha/graphql-yoga/commit/d2958
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.
- [ ] If you want to rebase/retry this PR, check this box
This PR was generated by Mend Renovate. View the repository job log.