graphql-yoga
6.1.0 · 12 Nov 2026MIT3.3M / weekRepositoryHomepagenpmAtom feed
Upgrading graphql-yoga From 0.2.1 to 6.1.0
240 releases in betweennotes for 38
Reading releases, release notes and advisories…
- 21+
- changes to make
- 0
- advisories fixed
- 4+
- new
- 10+
- fixes
Counted from 38 of 240 release notes. Advisories are counted from the advisory database, in full.
Before you upgrade
Tick each one off as you go- Breaking6.0.0
- Breaking6.0.0
- Breaking6.0.0
- Breaking6.0.0
- Breaking6.0.0
- Breaking6.0.0
- Breaking6.0.0
- Breaking6.0.0
- Breaking6.0.0
- Breaking6.0.0
Release by release
- New
Add support for the HTTP
QUERYmethod as described in graphql/graphql-over-http#411. - Fixed
Match the request
Content-Typemedia type case-insensitively and allow optional whitespace before its parameters, as required by RFC 9110. A request sent withApplication/JSONorapplication/json ; charset=utf-8was rejected with415 Unsupported Media Type. - Fixed
A schema factory function now works when
getEnvelopedis called outside of the request pipeline, for example bygraphql-ws. When the context passed togetEnvelopedhas a Fetch APIRequestasrequest, the factory is called with that context instead of throwing "No schema found for this request", and it has to return the schema synchronously there. The WebSocket recipes now pass the upgrade request asrequest. - Fixed
Mutations sent over a WebSocket no longer fail with "Can only perform a mutation operation from a POST request." when the WebSocket server passes the upgrade request to
getEnvelopedorgetResultForParams. The check now applies only to requests that Yoga's HTTP handler parsed.
- New
- Fixed
dependencies: Bump
@whatwg-node/serverto^0.13.1so nativeRequestsubclasses (Next.jsNextRequest, including the App RouterproxyNextRequestProxy) are classified as the platform Fetch API. The body-size limiter no longer throws a cross-realmTypeError/ 500 on those requests; oversized bodies still return 413.
- Fixed
- Breaking
Use
@graphql-hive/loggerand add correlated, per-request logging (closes #4048) - Breaking
The
@graphql-yoga/loggerpackage has been removed.graphql-yogare-exportsLogger,MemoryLogWriterandLogLevelfrom@graphql-hive/loggerinstead. - Breaking
createLoggerand theYogaLoggertype are no longer exported. Usenew Logger(options)instead. - Breaking
The
loggingoption now takesboolean | Logger | LogLevel, whereLoggeris the one from@graphql-hive/logger.
- Breaking
- Fixed
Fix to guard result-processor cancel against undefined iterator
- Fixed
5.24.3 – 5.24.53 releases, nothing new or fixed in the notes
- Breaking
Remove the built-in
subscriptionsdriver option and itsgraphql-ws/subscriptions-transport-wswiring (previously implemented via@nestjs/graphql'sGqlSubscriptionService).
- Breaking
- Fixed
Fixes the issue thrown in the plugin that limits the incoming request body's size, when the incoming
Requestobject is not the instance of thefetchAPI.Requestwhich is usually the ponyfill implementation from@whatwg-node/node-fetch.
- Fixed
- New
Limit the size of incoming HTTP request bodies by default to protect against denial-of-service attacks from oversized payloads.
- New
Add homepage and bugs.url to package.json files
- New
4 other lines we could not sort, mostly version bumps
- 6.0.0
getSchemaCoordinate->@graphql-tools/utils - 6.0.0
mergeSchemas->@graphql-tools/schema - 6.0.0
DisposableSymbols->@whatwg-node/server - 6.0.0
mapAsyncIterator/isPromise/fakePromise/handleMaybePromise/MaybePromise->@whatwg-node/promise-helpers
52 internal lines (docs, tests, tooling) left out.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.