graphql-yoga
6.1.0 · 12 Nov 2026MIT3.3M / weekRepositoryHomepagenpmAtom feed
5.24.6 is the newest release of 5.x.
In short
1 fixed
Release note
The section about graphql-yoga of a note shared by several packages.
graphql-yoga@5.24.1
Patch Changes
#4586
c6a9aa4
Thanks @ardatan! - Fixes the issue thrown in the plugin that limits
the incoming request body's size, when the incomingRequestobject is not the instance of thefetchAPI.Requestwhich is usually the ponyfill implementation from@whatwg-node/node-fetch.This will be fixed in the following breaking release in
@whatwg-node/node-fetchbut in order to
unblock the current users of GraphQL Yoga, a small normalization layer has been added to the
plugin as a temporary workaround.Since the native
Request.bodyis a nativeReadableStream, that doesn't support otherTransformStreamimplementation to itspipeThroughmethod, the limiting implementation didn't
work properly.When the user ran Yoga within Next.js that uses the native
Requestobject, it threw aTypeErrorwhich causes a cryptic500 Internal Server Errorfor Next.js users.This workaround checks whether the incoming
Request's body object is an instance of the nativeReadableStreamand applies the appropriateTransformStreamimplementation to ensure the
request body size limiting works correctly.
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.