Skip to content

Update dependency graphql-yoga to v5.21.2#147

Open
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/graphql-yoga-5.x
Open

Update dependency graphql-yoga to v5.21.2#147
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/graphql-yoga-5.x

Conversation

@renovate

@renovate renovate Bot commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
graphql-yoga (source) 5.18.05.21.2 age confidence

Release Notes

graphql-hive/graphql-yoga (graphql-yoga)

v5.21.2

Compare Source

Patch Changes

v5.21.1

Compare Source

Patch Changes

v5.21.0

Compare Source

Minor Changes
  • #​4430
    e263f7e
    Thanks @​ardatan! - Short-circuit response in onRequestParse hook

    In the onRequestParse hook, if a response is sent using endResponse, we should short-circuit
    the request parsing and return that response immediately. This allows users to handle certain
    requests entirely within the onRequestParse hook without needing to go through the rest of the
    request processing pipeline.

    const plugin = {
      onRequestParse({ endResponse }) {
        if (/* some condition */) {
          endResponse(new Response('Short-circuited response'));
        }
      },
    };

    Or you can also short-circuit the response inside the request parser:

    const plugin = {
      onRequestParse({ setRequestParser }) {
        setRequestParser(req => {
          if (req.url === '/short-circuit') {
            return new Response('Short-circuited response')
          }
          // Otherwise, return the parsed parameters as usual
          return parseRequestNormally(req)
        })
      }
    }

v5.20.0

Compare Source

Minor Changes
  • #​4428
    93f1dc0
    Thanks @​ardatan! - Support changing graphqlEndpoint after
    initialization;

    const yoga = createYoga({
      schema,
      logging: false,
      plugins: [
        {
          onYogaInit({ yoga }) {
            // Inside the plugin
            yoga.graphqlEndpoint = `/(graphql|my-custom-path)`
          }
        }
      ]
    })
    
    // Or after the initialization
    yoga.graphqlEndpoint = `/(graphql|my-custom-path)`

v5.19.0

Compare Source

Minor Changes

v5.18.1

Compare Source

Patch Changes
  • #​4345
    9a221c3
    Thanks @​ardatan! - Fix error isolation in batched GraphQL operations

    When processing batched GraphQL requests, an error in one operation would previously cause the
    entire batch to fail. This change wraps each batched operation in error handling so that
    individual operation errors are caught and returned as GraphQL errors for that specific operation,
    while other operations in the batch continue to execute successfully.

  • #​4346
    f98149a
    Thanks @​ardatan! - dependencies updates:


Configuration

📅 Schedule: (UTC)

  • 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 is behind base branch, 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.

@renovate
renovate Bot force-pushed the renovate/graphql-yoga-5.x branch from e2c4636 to dda61b3 Compare June 24, 2026 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants