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.13.5 |
Release Notes
graphql-hive/graphql-yoga (graphql-yoga)
v5.13.5
Patch Changes
- #3998
8b41a52Thanks @renovate! - Remove extra error handling plugin
v5.13.4
Patch Changes
-
#3995
000c33dThanks @enisdenjo! - Update whatwg-node packagesIn light of https://github.com/ardatan/whatwg-node/pull/2305. Please upgrade as soon as possible!
-
Updated dependencies [
000c33d]:
v5.13.3
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.
-
Updated dependencies [
3a7ef74]:
v5.13.2
Patch Changes
-
#3876
abe91bdThanks @EmrysMyrddin! - Re-export the utility typeAsyncIterableIteratorOrValuefrom@envelop/core. -
#3874
9311842Thanks @EmrysMyrddin! - Gives access to the request in theoperationinstrument payload, since the request is not in the context yet.
v5.13.1
Patch Changes
- #3865
dee7995Thanks @ardatan! - dependencies updates:- Updated dependency
@envelop/core@^5.2.3↗︎ (from^5.2.1, independencies) - Updated dependency
@whatwg-node/server@^0.10.1↗︎ (from^0.10.0, independencies) - Added dependency
@envelop/instrumentation@^1.0.0↗︎ (todependencies) - Removed dependency
@envelop/instruments@^1.0.0↗︎ (fromdependencies)
- Updated dependency
v5.13.0
Minor Changes
-
#3793
63b78d5Thanks @EmrysMyrddin! - Add new Instrumentation APIIntroduction 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 whole process of a phase, including plugins hooks executions.The main use case of this new API is observability (monitoring, tracing, etc...).
Basic usage
import { createYoga } from 'graphql-yoga'
import Sentry from '@​sentry/node'
import schema from './schema'
const server = createYoga({
schema,
plugins: [
{
instrumentation: {
request: ({ request }, wrapped) =>
Sentry.startSpan({ name: 'Graphql Operation' }, async () => {
try {
await wrapped()
} catch (err) {
Sentry.captureException(err)
}
})
}
}
]
})
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).
import { createYoga } from 'graphql-yoga'
import schema from './schema'
const server = createYoga({
schema,
plugins: [useSentry(), useOpentelemetry()]
})
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.
import { composeInstrumentation, createYoga } from 'graphql-yoga'
import schema from './schema'
const { instrumentation: sentryInstrumentation, ...sentryPlugin } = useSentry()
const { instrumentation: otelInstrumentation, ...otelPlugin } = useOpentelemetry()
const instrumentation = composeInstrumentation([otelInstrumentation, sentryInstrumentation])
const server = createYoga({
schema,
plugins: [{ instrumentation }, useSentry(), useOpentelemetry()]
})
Patch Changes
-
#3793
63b78d5Thanks @EmrysMyrddin! - dependencies updates:- Updated dependency
@envelop/core@^5.2.1↗︎ (from^5.0.2, independencies) - Added dependency
@envelop/instrumentation@^1.0.0↗︎ (todependencies) - Added dependency
@whatwg-node/promise-helpers@^1.2.4↗︎ (todependencies)
- Updated dependency
-
#3855
6ed67e8Thanks @renovate! - dependencies updates:- Updated dependency
@whatwg-node/server@^0.10.0↗︎ (from^0.9.71, independencies)
- Updated dependency
v5.12.2
Patch Changes
- #3837
a6b3de9Thanks @ardatan! - dependencies updates:- Updated dependency
@whatwg-node/server@^0.9.71↗︎ (from^0.9.69, independencies)
- Updated dependency
v5.12.1
Patch Changes
- #3808
fbf328cThanks @ardatan! - dependencies updates:- Updated dependency
@whatwg-node/fetch@^0.10.5↗︎ (from^0.10.1, independencies) - Updated dependency
@whatwg-node/server@^0.9.69↗︎ (from^0.9.64, independencies)
- Updated dependency
v5.12.0
Minor Changes
Patch Changes
-
#3764
96498eeThanks @slagiewka! - Pass throughdisposeOnProcessTerminatetocreateServerAdapter -
#3672
5150146Thanks @ardatan! - dependencies updates:- Updated dependency
@graphql-tools/executor@^1.4.0↗︎ (from^1.3.7, independencies)
- Updated dependency
v5.11.0
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 howGraphQLParamshandled;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
AsyncLocalStoragefunction myPlugin(): Plugin { const context = new AsyncLocalStorage(); return { onParams({ paramsHandler, setParamsHandler }) { const store = { foo: 'bar' } setParamsHandler(payload => context.run(store, paramsHandler, payload)) } }
v5.10.11
Patch Changes
- #3712
1c055f5Thanks @ardatan! - Show deprecated input fields, arguments and all other input values in GraphiQL
v5.10.10
Patch Changes
v5.10.9
Patch Changes
-
#3620
d24c5d5Thanks @enisdenjo! - Bump dset dependency handling the CVE-2024-21529https://security.snyk.io/vuln/SNYK-JS-DSET-7116691
-
#3620
d24c5d5Thanks @enisdenjo! - dependencies updates:- Updated dependency
dset@^3.1.4↗︎ (from^3.1.1, independencies)
- Updated dependency
v5.10.8
Patch Changes
- #3588
ed344eaThanks @ardatan! - MarkcreateLRUCacheutility as deprecated, and export it as_createLRUCachemarking it as an internal utility
v5.10.7
Patch Changes
-
#3547
8fee214Thanks @Urigo! - dependencies updates:- Updated dependency
@graphql-tools/executor@^1.3.7↗︎ (from^1.3.5, independencies) - Updated dependency
@graphql-tools/schema@^10.0.11↗︎ (from^10.0.10, independencies) - Updated dependency
@graphql-tools/utils@^10.6.2↗︎ (from^10.6.1, independencies) - Updated dependency
@whatwg-node/server@^0.9.63↗︎ (from^0.9.60, independencies)
- Updated dependency
-
#3567
1df4912Thanks @ardatan! - dependencies updates:- Updated dependency
@whatwg-node/server@^0.9.64↗︎ (from^0.9.63, independencies)
- Updated dependency
v5.10.6
Patch Changes
- #3551
121ccbaThanks @bridges-wood! - Fix stylesheet reference in graphiql
v5.10.5
Patch Changes
-
#3546
eca7cd1Thanks @EmrysMyrddin! - Add documentation for Plugin hooks -
#3549
05fe345Thanks @ardatan! - dependencies updates:- Updated dependency
@graphql-tools/executor@^1.3.7↗︎ (from^1.3.5, independencies) - Updated dependency
@graphql-tools/schema@^10.0.11↗︎ (from^10.0.10, independencies) - Updated dependency
@graphql-tools/utils@^10.6.2↗︎ (from^10.6.1, independencies) - Updated dependency
@whatwg-node/server@^0.9.63↗︎ (from^0.9.60, independencies)
- Updated dependency
-
Updated dependencies []:
v5.10.4
Patch Changes
- #3520
944ecd5Thanks @ardatan! - dependencies updates:- Updated dependency
@envelop/core@^5.0.2↗︎ (from^5.0.1, independencies) - Updated dependency
@graphql-tools/executor@^1.3.5↗︎ (from^1.3.3, independencies) - Updated dependency
@graphql-tools/schema@^10.0.10↗︎ (from^10.0.4, independencies) - Updated dependency
@graphql-tools/utils@^10.6.1↗︎ (from^10.3.2, independencies) - Updated dependency
@whatwg-node/server@^0.9.60↗︎ (from^0.9.55, independencies) - Updated dependency
tslib@^2.8.1↗︎ (from^2.5.2, independencies)
- Updated dependency
v5.10.3
Patch Changes
-
#3501
c93366dThanks @enisdenjo! - dependencies updates:- Updated dependency
@graphql-tools/executor@^1.3.3↗︎ (from^1.3.0, independencies)
- Updated dependency
-
#3501
c93366dThanks @enisdenjo! - Update transport executors containing improvements and fixes
v5.10.2
Patch Changes
-
#3491
7a413bcThanks @n1ru4l! - dependencies updates:- Updated dependency
@whatwg-node/server@^0.9.55↗︎ (from^0.9.54, independencies)
- Updated dependency
-
#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 be propagated to all other batched requests contexts. It is resolved by updating the dependency of@whatwg-node/serverto0.9.55.
v5.10.1
Patch Changes
- #3712
1c055f5Thanks @ardatan! - Show deprecated input fields, arguments and all other input values in GraphiQL
v5.10.0
Minor Changes
- #3462
f81501cThanks @maeldur! - Correctly handle HTTP GET requests with?characters in the query search string.
v5.9.0
Minor Changes
Patch Changes
- #3457
2523d9fThanks @kroupacz! - ### Fixed- propagation of Yoga
version
- propagation of Yoga
v5.8.0
Minor Changes
18fe916Thanks @kroupacz! - Addversionproperty to get version of Yoga
Patch Changes
- #3445
6bb19edThanks @ardatan! - dependencies updates:- Updated dependency
@whatwg-node/fetch@^0.9.22↗︎ (from^0.9.18, independencies) - Updated dependency
@whatwg-node/server@^0.9.50↗︎ (from^0.9.44, independencies)
- Updated dependency
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 [`@
- Updated dependency
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.