Packages

graphql-yoga

6.1.0 · 12 Nov 2026MIT3.3M / weekRepositoryHomepagenpmAtom feed

Your version

6.1.0

Latest12 Nov 2026Where it was published

In short

1 new3 fixed4 internal

Release note

Minor Changes

  • #4647
    cfd0092
    Thanks @egoodwinx! - Add support for the HTTP QUERY method as
    described in
    graphql/graphql-over-http#411.

    QUERY requests carry the GraphQL params in the request body, exactly like POST
    (application/json, application/graphql+json, application/graphql, and
    application/x-www-form-urlencoded are all supported), but are treated as safe/read-only like
    GET: sending a mutation over QUERY is rejected with a 405 Method Not Allowed response, the
    same way it already is for GET.

Patch Changes

  • #4650
    045fc2f
    Thanks @Shaurya55555! - Match the request Content-Type media
    type case-insensitively and allow optional whitespace before its parameters, as required by
    RFC 9110. A request sent with Application/JSON or application/json ; charset=utf-8 was
    rejected with 415 Unsupported Media Type.

  • #4658
    38e9f1b
    Thanks @egoodwinx! - dependencies updates:

  • #4646
    35501fe
    Thanks @mattkrick! - A schema factory function now works when
    getEnveloped is called outside of the request pipeline, for example by graphql-ws. When the
    context passed to getEnveloped has a Fetch API Request as request, 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 as request.

  • #4656
    807c7af
    Thanks @mattkrick! - 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 getEnveloped or getResultForParams. The check now applies only
    to requests that Yoga's HTTP handler parsed.

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.