commerceql
commerceql 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.3.1 |
Release Notes
dotansimha/graphql-yoga (graphql-yoga)
v5.3.1
Patch Changes
-
#3237
3324bbab
Thanks @ardatan! - dependencies updates:- Updated dependency
@whatwg-node/server@^0.9.33
↗︎ (from^0.9.32
, independencies
)
- Updated dependency
-
#3237
3324bbab
Thanks @ardatan! - In such environments like CloudFlare Workers, therequest
object in the context always has the initial request object, so it was impossible to access the actualRequest
object from the execution context. Now Yoga ensures that therequest
in the context is the same with the actualRequest
.
v5.3.0
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 finalcomplete
event of SSE stream responses to ensureEventSource
compatibility. See the GraphQL over SSE protocol for more information.
v5.2.0
Minor Changes
-
#3196
71db7548
Thanks @n1ru4l! - Allow setting async iterable withinonParams
hooksetResult
function
Patch Changes
-
#3196
71db7548
Thanks @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
77d107fe
Thanks @ardatan! - Update HTTP Executor and addmethod
anduseGETForQueries
to GraphiQL options
v5.0.1
Patch Changes
-
3fea19f2
Thanks @antonio-iodice! - Do not return 404 when using query params or trailing slashes
v5.0.0
Major Changes
-
#3063
01430e03
Thanks @EmrysMyrddin! - Breaking Change: Drop support of Node.js 16 -
#3070
5b615478
Thanks @renovate! - dependencies updates:- Updated dependency
@envelop/core@^5.0.0
↗︎ (from^4.0.0
, independencies
)
- Updated dependency
Patch Changes
-
#3051
350bb851
Thanks @ardatan! - Use the same context object in the entire pipeline -
Updated dependencies [
01430e03
]:
v4.0.5
Patch Changes
-
#3004
bf602edf
Thanks @EmrysMyrddin! - Fix dynamic schema function type and documentation
v4.0.4
Patch Changes
-
#2958
5f182006
Thanks @enisdenjo! - Start SSE stream with a ping
v4.0.3
Patch Changes
-
5efb8250
Thanks @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
ce6d2465
Thanks @nescalante! - Avoid overriding http status on extensions when using a plugin that modifies error prop
v4.0.1
Patch Changes
-
#2866
bb739b05
Thanks @renovate! - dependencies updates:- Updated dependency
lru-cache@^10.0.0
↗︎ (from^9.0.0
, independencies
)
- Updated dependency
-
#2869
8f7d7abc
Thanks @enisdenjo! - Properly serialise GraphQLError on graphql-js v15
v4.0.0
Major Changes
-
#2767
4228c1d5
Thanks @renovate! - Drop support for Node.js 14. Require Node.js>=16
. -
#2776
34ecb4bb
Thanks @enisdenjo! - Drop unused graphiql optionsdefaultVariableEditorOpen
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 havenull
as the event payload instead ofundefined
. -
#2777
0522c740
Thanks @enisdenjo! - Parse and validation cache are now under a single optionparserAndValidationCache
Patch Changes
-
#2720
cc370691
Thanks @n1ru4l! - Skip validation caching when there is noschema
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 thevalidate
function instead. -
#2726
b309ca0d
Thanks @ardatan! - RespecttoJSON
in the thrown errors.
v3.9.1
Patch Changes
-
#2682
e1a60e21
Thanks @renovate! - dependencies updates:- Updated dependency
@graphql-tools/executor@^0.0.17
↗︎ (from^0.0.16
, independencies
)
- Updated dependency
-
#2686
c50ea51c
Thanks @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
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
Minor Changes
-
#2675
aff69200
Thanks @enisdenjo! - Only well-formatted GraphQL-over-HTTP requests use 200 when accepting application/json
v3.8.1
Patch Changes
-
#2652
ebb65b14
Thanks @renovate! - dependencies updates:- Updated dependency
@graphql-tools/executor@^0.0.16
↗︎ (from^0.0.15
, independencies
)
- Updated dependency
-
#2676
528941cb
Thanks @n1ru4l! - Prefercontent-type: multipart/mixed
overcontent-type: text/event-stream
when the client sendsaccept: text/event-stream, multipart/mixed
.
v3.8.0
Minor Changes
-
#2445
09d23a4b
Thanks @ardatan! - GraphQL SSE Distinct Connections mode support withlegacySse = false
flag
Patch Changes
-
#2602
99b72696
Thanks @n1ru4l! - dependencies updates:- Updated dependency
lru-cache@^7.14.1
↗︎ (from^8.0.0
, independencies
)
- Updated dependency
-
#2602
99b72696
Thanks @n1ru4l! - revertlru-cache
version to7.x.x
, as8.x.x
broke Node.js 14 support.
v3.7.3
Patch Changes
-
#2559
46e75917
Thanks @renovate! - dependencies updates:- Updated dependency
lru-cache@^8.0.0
↗︎ (from^7.14.1
, independencies
)
- Updated dependency
v3.7.2
Patch Changes
-
#2528
7ad50529
Thanks @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
9fdd94b5
Thanks @ardatan! - dependencies updates:- Updated dependency
@whatwg-node/server@^0.7.1
↗︎ (from^0.6.7
, independencies
)
- Updated dependency
-
#2496
47b1c4a4
Thanks @renovate! - dependencies updates:- Updated dependency
@graphql-tools/executor@^0.0.15
↗︎ (from^0.0.14
, independencies
)
- Updated dependency
-
#2527
02ac055c
Thanks @ardatan! - dependencies updates:- Added dependency
@graphql-yoga/[email protected]
↗︎ (todependencies
)
- Added dependency
-
#2527
02ac055c
Thanks @ardatan! - Release logger seperately -
Updated dependencies [
02ac055c
]:
v3.7.0
Minor Changes
Patch Changes
-
#2470
23d1b26c
Thanks @n1ru4l! - dependencies updates:- Updated dependency
@envelop/validation-cache@^5.1.2
↗︎ (from^5.0.5
, independencies
)
- Updated dependency
-
#2470
23d1b26c
Thanks @n1ru4l! - bump range of@envelop/validation-cache
for fixing javascript runtime compatibility (usage of node-only globalrequire
).
v3.6.1
Patch Changes
-
3c8c8434
Thanks @ardatan! - Replace LRU caching with lazy URL construction, avoid unnecessaryparse
andvalidate
invocation and CORS
v3.6.0
Minor Changes
-
#2393
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:- Updated dependency
@graphql-tools/[email protected]
↗︎ (from0.0.12
, independencies
)
- Updated dependency
-
#2388
6bc1410f
Thanks @ardatan! - dependencies updates:- Added dependency
lru-cache@^7.14.1
↗︎ (todependencies
)
- Added dependency
-
#2392
1caac99b
Thanks @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
790330be
Thanks @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
7587d5c5
Thanks @renovate! - dependencies updates:- Updated dependency
@graphql-tools/executor@^0.0.14
↗︎ (from^0.0.13
, independencies
)
- Updated dependency
-
#2405
cc0d3899
Thanks @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
a747d249
Thanks @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
2933fc89
Thanks @ardatan! - dependencies updates:- Updated dependency
@whatwg-node/fetch@^0.7.1
↗︎ (from^0.7.0
, independencies
)
- Updated dependency
-
#2421
543e490b
Thanks @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
03597a5a
Thanks @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
00843174
Thanks @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
00843174
Thanks @ardatan! - Use the new fetch implementation
v3.4.0
Patch Changes
-
#2331
76c1ecb9
Thanks @enisdenjo! - Properly serialise response extension arrays, nullish values and dates -
#2276
8cd8b5a5
Thanks @renovate! - dependencies updates:- Updated dependency
@whatwg-node/[email protected]
↗︎ (from0.5.4
, independencies
)
- Updated dependency
-
#2313
6e8bddba
Thanks @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
6ee252db
Thanks @renovate! - dependencies updates:- Updated dependency
@graphql-tools/[email protected]
↗︎ (from0.0.11
, independencies
)
- Updated dependency
-
#2335
8f139e15
Thanks @renovate! - dependencies updates:- Updated dependency
@whatwg-node/[email protected]
↗︎ (from0.5.6
, independencies
)
- Updated dependency
-
#2340
9beef914
Thanks @renovate! - dependencies updates:- Updated dependency
@whatwg-node/[email protected]
↗︎ (from0.5.7
, independencies
)
- Updated dependency
-
#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
Minor Changes
Patch Changes
-
#2266
3e5f688f
Thanks @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
8b288a23
Thanks @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
a86aaa0f
Thanks @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
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 response but now it returns415: 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
Patch Changes
-
#2231
c5b1cc46
Thanks @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
c152105e
Thanks @ardatan! - Do not call CORS headers factory twice -
#2206
26d780cd
Thanks @ardatan! - Correct Mask Error Factory signature -
#2239
d2958781
Thanks @davidruisinger! - Add content-length: 0 header if 204 is returned by OPTIONS request
v3.1.1
Patch Changes
v3.1.0
Minor Changes
Patch Changes
-
#2165
86fe453c
Thanks @ardatan! - ExportuseErrorHandler
to revert the unexpected breaking change -
#2145
ea81e1dd
Thanks @n1ru4l! - Avoid unnecessary iteration within internals
v3.0.3
Patch Changes
-
#2156
491ef5da
Thanks @renovate! - dependencies updates:- Updated dependency
@envelop/[email protected]
↗︎ (from3.0.3
, independencies
) - Updated dependency
@envelop/[email protected]
↗︎ (from5.0.3
, independencies
) - Updated dependency
@envelop/[email protected]
↗︎ (from5.0.3
, independencies
)
- Updated dependency
v3.0.2
Patch Changes
-
#2154
0007c58d
Thanks @ardatan! - Only Yoga's errors are now 200 when content-type is application/json -
#2147
39a8fe89
Thanks @ardatan! - Bump @whatwg-node/server to fix the conflict issue between webworker & dom TS typing libs
v3.0.1
Patch Changes
-
#2125
d63fe841
Thanks @enisdenjo! - application/json is the default when accept is missing until watershed
v3.0.0
Major Changes
-
2e0c4824
Thanks @b4s36t4! - Drop Node 12 SupportGraphQL Yoga no longer supports Node 12 which is no longer an LTS version. GraphQL Yoga now needs Node 14 at least.
-
#2012
720898db
Thanks @saihaj! - Remove.inject
method to mock testing. Users should replace to usefetch
method for testing.Checkout our docs on testing https://www.the-guild.dev/graphql/yoga-server/v3/features/testing.
import { createYoga } from 'graphql-yoga' import { schema } from './schema' const yoga = createYoga({ schema }) - const { response, executionResult } = await yoga.inject({ - document: "query { ping }", - }) + const response = await yoga.fetch('http://yoga/graphql', { + method: 'POST', + headers: { + 'Content-Type': 'application/json', + }, + body: JSON.stringify({ + query: 'query { ping }', + }), + }) + const executionResult = await response.json() console.assert(response.status === 200, 'Response status should be 200') console.assert(executionResult.data.ping === 'pong',`Expected 'pong'`)
-
#1753
eeaced00
Thanks @ardatan! -schema
no longer accepts an object oftypeDefs
andresolvers
but instead you can usecreateSchema
to create a GraphQL schema. -
#1516
209b1620
Thanks @ardatan! - Now it is possible to decide the returnedContent-Type
by specifying theAccept
header. So ifAccept
header hastext/event-stream
withoutapplication/json
, Yoga respects that returnstext/event-stream
instead ofapplication/json
. -
#1808
02d2aecd
Thanks @enisdenjo! - DropreadinessCheckEndpoint
in favor of theuseReadinessCheck
plugin -
#1473
c4b3a9c8
Thanks @ardatan! - ReplaceGraphQLYogaError
in favor ofGraphQLError
. -
#1660
71554172
Thanks @saihaj! - Update to the latest version of the envelopuseMaskedError
plugin.- Removed
handleValidationErrors
andhandleParseErrors
- Renamed
formatError
tomaskError
- Removed
-
#2091
1d508495
Thanks @ardatan! - Export only specific utilities from@envelop/core
.
Minor Changes
-
#1966
6e250209
Thanks @saihaj! - Use@graphql-tools/executor
as a default GraphQL Executor in favor ofgraphql-js
. -
#1497
1d7f810a
Thanks @ardatan! - Support a schema factory function that runs per request or a promise to be resolved before the first request.createYoga({ schema(request: Request) { return getSchemaForToken(request.headers.get('x-my-token')) } })
async function buildSchemaAsync() { const typeDefs = await fs.promises.readFile('./schema.graphql', 'utf8') const resolvers = await import('./resolvers.js') return makeExecutableSchema({ typeDefs, resolvers }) } createYoga({ schema: buildSchemaAsync() })
-
#1662
098e139f
Thanks @ardatan! - - Batching RFC support withbatchingLimit
option to enable batching with an exact limit of requests per batch.- New
onParams
hook that takes a singleGraphQLParams
object - Changes in
onRequestParse
andonRequestParseDone
hook - Now
onRequestParseDone
receives the exact object that is passed by the request parser so it can beGraphQLParams
or an array ofGraphQLParams
so useonParams
if you need to manipulate batched execution params individually.
- New
Patch Changes
-
#2024
9f991a27
Thanks @enisdenjo! - Ensure all parsing failures inGraphQLScalarType
are caught and handled with 400 status code. -
#1920
cebca219
Thanks @enisdenjo! - Handle edge case whereContent-Type
header provides a list like;Content-Type: application/json, text/plain, */*
-
#1609
74e1f830
Thanks @enisdenjo! -usePreventMutationViaGET
doesn't do assertion if it is notYogaContext
, so it is possible to use Yoga's Envelop instance with other server implementations likegraphql-ws
. -
#1567
e7a47b56
Thanks @n1ru4l! - Handle invalid POST body gracefully. Rejectnull
, non-object bodies or invalid JSON bodies. -
#1911
5f5b1160
Thanks @enisdenjo! - Handle cases where user supplies a malformed/unexpected context. Preventing GraphQL Yoga to crash and existing prematurely. -
73e56068
Thanks @ardatan! - Fix cancellation logic for defer/stream queries. -
#1609 [`7
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 has been generated by Mend Renovate. View repository job log here.