Skip to content

Releases: graphql-hive/graphql-yoga

July 11, 2025

11 Jul 19:18
0e38e89
Compare
Choose a tag to compare

@graphql-yoga/apollo-link@4.2.1

@graphql-yoga/urql-exchange@4.2.1

graphql-yoga@5.15.1

Patch Changes

  • #4116
    ecd605b
    Thanks @enisdenjo! - Does not GraphQL error extensions when it's
    wrapping an internal server error

@graphql-yoga/nestjs@3.15.1

Patch Changes

  • Updated dependencies
    [ecd605b]:
    • graphql-yoga@5.15.1

@graphql-yoga/nestjs-federation@3.15.1

Patch Changes

  • Updated dependencies []:
    • @graphql-yoga/nestjs@3.15.1
    • @graphql-yoga/plugin-apollo-inline-trace@3.15.1

@graphql-yoga/plugin-apollo-inline-trace@3.15.1

Patch Changes

  • Updated dependencies
    [ecd605b]:
    • graphql-yoga@5.15.1

@graphql-yoga/apollo-managed-federation@0.13.1

Patch Changes

  • Updated dependencies
    [ecd605b]:
    • graphql-yoga@5.15.1

@graphql-yoga/plugin-apollo-usage-report@0.10.1

Patch Changes

  • Updated dependencies
    [ecd605b]:
    • graphql-yoga@5.15.1
    • @graphql-yoga/plugin-apollo-inline-trace@3.15.1

@graphql-yoga/plugin-apq@3.15.1

Patch Changes

  • Updated dependencies
    [ecd605b]:
    • graphql-yoga@5.15.1

@graphql-yoga/plugin-csrf-prevention@3.15.1

Patch Changes

  • Updated dependencies
    [ecd605b]:
    • graphql-yoga@5.15.1

@graphql-yoga/plugin-defer-stream@3.15.1

Patch Changes

  • Updated dependencies
    [ecd605b]:
    • graphql-yoga@5.15.1

@graphql-yoga/plugin-disable-introspection@2.16.1

Patch Changes

  • Updated dependencies
    [ecd605b]:
    • graphql-yoga@5.15.1

@graphql-yoga/plugin-graphql-sse@3.15.1

Patch Changes

  • Updated dependencies
    [ecd605b]:
    • graphql-yoga@5.15.1

@graphql-yoga/plugin-jwt@3.9.1

Patch Changes

  • Updated dependencies
    [ecd605b]:
    • graphql-yoga@5.15.1

@graphql-yoga/plugin-persisted-operations@3.15.1

Patch Changes

  • Updated dependencies
    [ecd605b]:
    • graphql-yoga@5.15.1

@graphql-yoga/plugin-prometheus@6.10.1

Patch Changes

  • Updated dependencies
    [ecd605b]:
    • graphql-yoga@5.15.1

@graphql-yoga/plugin-response-cache@3.17.1

Patch Changes

  • Updated dependencies
    [ecd605b]:
    • graphql-yoga@5.15.1

@graphql-yoga/plugin-sofa@3.15.1

Patch Changes

  • Updated dependencies
    [ecd605b]:
    • graphql-yoga@5.15.1

@graphql-yoga/render-graphiql@5.15.1

Patch Changes

  • Updated dependencies
    [ecd605b]:
    • graphql-yoga@5.15.1

July 11, 2025

11 Jul 14:26
580ad9d
Compare
Choose a tag to compare

@graphql-yoga/apollo-link@4.2.0

@graphql-yoga/urql-exchange@4.2.0

@graphql-yoga/graphiql@4.4.0

Minor Changes

graphql-yoga@5.15.0

Minor Changes

Patch Changes

@graphql-yoga/nestjs@3.15.0

Patch Changes

@graphql-yoga/nestjs-federation@3.15.0

Patch Changes

  • Updated dependencies []:
    • @graphql-yoga/nestjs@3.15.0
    • @graphql-yoga/plugin-apollo-inline-trace@3.15.0

@graphql-yoga/plugin-apollo-inline-trace@3.15.0

Patch Changes

@graphql-yoga/apollo-managed-federation@0.13.0

Patch Changes

@graphql-yoga/plugin-apollo-usage-report@0.10.0

Patch Changes

  • Updated dependencies
    [ccb5c53,
    ccb5c53]:
    • graphql-yoga@5.15.0
    • @graphql-yoga/plugin-apollo-inline-trace@3.15.0

@graphql-yoga/plugin-apq@3.15.0

Patch Changes

@graphql-yoga/plugin-csrf-prevention@3.15.0

Patch Changes

@graphql-yoga/plugin-defer-stream@3.15.0

Patch Changes

@graphql-yoga/plugin-disable-introspection@2.16.0

Patch Changes

@graphql-yoga/plugin-graphql-sse@3.15.0

Patch Changes

@graphql-yoga/plugin-jwt@3.9.0

Patch Changes

@graphql-yoga/plugin-persisted-operations@3.15.0

Patch Changes

@graphql-yoga/plugin-prometheus@6.10.0

Patch Changes

@graphql-yoga/plugin-response-cache@3.17.0

Patch Changes

@graphql-yoga/plugin-sofa@3.15.0

Patch Changes

@graphql-yoga/render-graphiql@5.15.0

Minor Changes

Patch Changes

July 01, 2025

01 Jul 15:04
4aad787
Compare
Choose a tag to compare

@graphql-yoga/apollo-link@4.1.0

@graphql-yoga/urql-exchange@4.1.0

@graphql-yoga/graphiql@4.3.6

Patch Changes

graphql-yoga@5.14.0

Minor Changes

  • #4088
    98c82a5
    Thanks @EmrysMyrddin! - Added new withState plugin utility
    for easy data sharing between hooks.

    New plugin utility to ease data sharing between hooks

    Sometimes, plugins can grow in complexity and need to share data between its hooks.

    A way to solve this can be to mutate the graphql context, but this context is not always available
    in all hooks in Yoga or Hive Gateway plugins. Moreover, mutating the context gives access to your
    internal data to all other plugins and graphql resolvers, without mentioning performance impact on
    field access on this object.

    The recommended approach to this problem was to use a WeakMap with a stable key (often the
    context or request object). While it works, it's not very convenient for plugin developers,
    and is prone to error with the choice of key.

    The new withState utility solves this DX issue by providing an easy and straightforward API for
    data sharing between hooks.

    import { withState } from 'graphql-yoga'
    
    type State = { foo: string }
    
    const myPlugin = () =>
      withState<Plugin, State>(() => ({
        onParse({ state }) {
          state.forOperation.foo = 'foo'
        },
        onValidate({ state }) {
          const { foo } = state.forOperation
          console.log('foo', foo)
        }
      }))

    The state payload field will be available in all relevant hooks, making it easy to access shared
    data. It also forces the developer to choose the scope for the data:

    • forOperation for a data scoped to GraphQL operation (Envelop, Yoga and Hive Gateway)
    • forRequest for a data scoped to HTTP request (Yoga and Hive Gateway)
    • forSubgraphExecution for a data scoped to the subgraph execution (Hive Gateway)

    Not all scopes are available in all hooks, the type reflects which scopes are available

    Under the hood, those states are kept in memory using WeakMap, which avoid any memory leaks.

    It is also possible to manually retrieve the state with the getState function:

    const myPlugin = () =>
      withState(getState => ({
        onParse({ context }) {
          // You can provide a payload, which will dictate which scope you have access to.
          // The scope can contain `context`, `request` and `executionRequest` fields.
          const state = getState({ context })
          // Use the state elsewhere.
        }
      }))

Patch Changes

@graphql-yoga/nestjs@3.14.0

Patch Changes

@graphql-yoga/nestjs-federation@3.14.0

Patch Changes

@graphql-yoga/plugin-apollo-inline-trace@3.14.0

Patch Changes

@graphql-yoga/apollo-managed-federation@0.12.0

Patch Changes

@graphql-yoga/plugin-apollo-usage-report@0.9.0

Minor Changes

  • #4020
    dcfd110
    Thanks @EmrysMyrddin! - Various improvements of Apollo Usage
    Report plugin. It is now production ready !
    • Report referenced field by types
    • Batched traces
    • Report gzip compression
    • Nonexecutable operations handling to match Apollo's behavior
    • Fix schema ID generation to match Apollo's algorithm

Patch Changes

Read more

May 23, 2025

23 May 17:01
87f691b
Compare
Choose a tag to compare

@graphql-yoga/apollo-link@4.0.0

Major Changes

@graphql-yoga/urql-exchange@4.0.0

Major Changes

graphql-yoga@5.13.5

Patch Changes

@graphql-yoga/nestjs@3.13.5

Patch Changes

  • Updated dependencies
    [8b41a52]:
    • graphql-yoga@5.13.5

@graphql-yoga/nestjs-federation@3.13.5

Patch Changes

  • Updated dependencies []:
    • @graphql-yoga/nestjs@3.13.5
    • @graphql-yoga/plugin-apollo-inline-trace@3.13.5

@graphql-yoga/plugin-apollo-inline-trace@3.13.5

Patch Changes

  • Updated dependencies
    [8b41a52]:
    • graphql-yoga@5.13.5

@graphql-yoga/apollo-managed-federation@0.11.5

Patch Changes

  • Updated dependencies
    [8b41a52]:
    • graphql-yoga@5.13.5

@graphql-yoga/plugin-apollo-usage-report@0.8.6

Patch Changes

  • Updated dependencies
    [8b41a52]:
    • graphql-yoga@5.13.5
    • @graphql-yoga/plugin-apollo-inline-trace@3.13.5

@graphql-yoga/plugin-apq@3.13.6

Patch Changes

  • Updated dependencies
    [8b41a52]:
    • graphql-yoga@5.13.5

@graphql-yoga/plugin-csrf-prevention@3.13.5

Patch Changes

  • Updated dependencies
    [8b41a52]:
    • graphql-yoga@5.13.5

@graphql-yoga/plugin-defer-stream@3.13.5

Patch Changes

  • Updated dependencies
    [8b41a52]:
    • graphql-yoga@5.13.5

@graphql-yoga/plugin-disable-introspection@2.14.5

Patch Changes

  • Updated dependencies
    [8b41a52]:
    • graphql-yoga@5.13.5

@graphql-yoga/plugin-graphql-sse@3.13.6

Patch Changes

  • Updated dependencies
    [8b41a52]:
    • graphql-yoga@5.13.5

@graphql-yoga/plugin-jwt@3.7.6

Patch Changes

  • Updated dependencies
    [8b41a52]:
    • graphql-yoga@5.13.5

@graphql-yoga/plugin-persisted-operations@3.13.6

Patch Changes

  • Updated dependencies
    [8b41a52]:
    • graphql-yoga@5.13.5

@graphql-yoga/plugin-prometheus@6.8.5

Patch Changes

  • Updated dependencies
    [8b41a52]:
    • graphql-yoga@5.13.5

@graphql-yoga/plugin-response-cache@3.15.6

Patch Changes

  • Updated dependencies
    [8b41a52]:
    • graphql-yoga@5.13.5

@graphql-yoga/plugin-sofa@3.13.6

Patch Changes

  • Updated dependencies
    [8b41a52]:
    • graphql-yoga@5.13.5

@graphql-yoga/render-graphiql@5.13.5

Patch Changes

  • Updated dependencies
    [8b41a52]:
    • graphql-yoga@5.13.5

April 15, 2025

15 Apr 11:10
eda5325
Compare
Choose a tag to compare

@graphql-yoga/apollo-link@3.13.4

@graphql-yoga/urql-exchange@3.13.4

graphql-yoga@5.13.4

Patch Changes

@graphql-yoga/nestjs@3.13.4

Patch Changes

@graphql-yoga/nestjs-federation@3.13.4

Patch Changes

  • Updated dependencies
    [000c33d]:
    • @graphql-yoga/plugin-apollo-inline-trace@3.13.4
    • @graphql-yoga/nestjs@3.13.4

@graphql-yoga/plugin-apollo-inline-trace@3.13.4

Patch Changes

@graphql-yoga/apollo-managed-federation@0.11.4

Patch Changes

@graphql-yoga/plugin-apollo-usage-report@0.8.5

Patch Changes

@graphql-yoga/plugin-apq@3.13.5

Patch Changes

  • Updated dependencies
    [000c33d]:
    • graphql-yoga@5.13.4

@graphql-yoga/plugin-csrf-prevention@3.13.4

Patch Changes

  • Updated dependencies
    [000c33d]:
    • graphql-yoga@5.13.4

@graphql-yoga/plugin-defer-stream@3.13.4

Patch Changes

@graphql-yoga/plugin-disable-introspection@2.14.4

Patch Changes

  • Updated dependencies
    [000c33d]:
    • graphql-yoga@5.13.4

@graphql-yoga/plugin-graphql-sse@3.13.5

Patch Changes

  • Updated dependencies
    [000c33d]:
    • graphql-yoga@5.13.4

@graphql-yoga/plugin-jwt@3.7.5

Patch Changes

  • Updated dependencies
    [000c33d]:
    • graphql-yoga@5.13.4

@graphql-yoga/plugin-persisted-operations@3.13.5

Patch Changes

  • Updated dependencies
    [000c33d]:
    • graphql-yoga@5.13.4

@graphql-yoga/plugin-prometheus@6.8.4

Patch Changes

  • Updated dependencies
    [000c33d]:
    • graphql-yoga@5.13.4

@graphql-yoga/plugin-response-cache@3.15.5

Patch Changes

  • Updated dependencies
    [000c33d]:
    • graphql-yoga@5.13.4

@graphql-yoga/plugin-sofa@3.13.5

Patch Changes

  • Updated dependencies
    [000c33d]:
    • graphql-yoga@5.13.4

@graphql-yoga/render-graphiql@5.13.4

Patch Changes

  • Updated dependencies
    [000c33d]:
    • graphql-yoga@5.13.4

@graphql-yoga/subscription@5.0.5

Patch Changes

April 09, 2025

09 Apr 10:40
7354e05
Compare
Choose a tag to compare

@graphql-yoga/apollo-link@3.13.3

@graphql-yoga/urql-exchange@3.13.3

graphql-yoga@5.13.3

Patch Changes

  • #3968
    1773c8c
    Thanks @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.

  • #3930
    3a7ef74
    Thanks @ardatan! - Bump @whatwg-node/server

  • Updated dependencies
    [3a7ef74]:

    • @graphql-yoga/subscription@5.0.4

@graphql-yoga/nestjs@3.13.3

Patch Changes

@graphql-yoga/nestjs-federation@3.13.3

Patch Changes

  • Updated dependencies
    [3a7ef74]:
    • @graphql-yoga/plugin-apollo-inline-trace@3.13.3
    • @graphql-yoga/nestjs@3.13.3

@graphql-yoga/plugin-apollo-inline-trace@3.13.3

Patch Changes

@graphql-yoga/apollo-managed-federation@0.11.3

Patch Changes

@graphql-yoga/plugin-apollo-usage-report@0.8.4

Patch Changes

  • Updated dependencies
    [1773c8c,
    3a7ef74]:
    • graphql-yoga@5.13.3
    • @graphql-yoga/plugin-apollo-inline-trace@3.13.3

@graphql-yoga/plugin-apq@3.13.4

Patch Changes

@graphql-yoga/plugin-csrf-prevention@3.13.3

Patch Changes

@graphql-yoga/plugin-defer-stream@3.13.3

Patch Changes

@graphql-yoga/plugin-disable-introspection@2.14.3

Patch Changes

@graphql-yoga/plugin-graphql-sse@3.13.4

Patch Changes

@graphql-yoga/plugin-jwt@3.7.4

Patch Changes

@graphql-yoga/plugin-persisted-operations@3.13.4

Patch Changes

@graphql-yoga/plugin-prometheus@6.8.3

Patch Changes

@graphql-yoga/plugin-response-cache@3.15.4

Patch Changes

@graphql-yoga/plugin-sofa@3.13.4

Patch Changes

@graphql-yoga/render-graphiql@5.13.3

Patch Changes

@graphql-yoga/subscription@5.0.4

Patch Changes

March 17, 2025

17 Mar 15:31
1aa989c
Compare
Choose a tag to compare

@graphql-yoga/apollo-link@3.13.2

@graphql-yoga/urql-exchange@3.13.2

graphql-yoga@5.13.2

Patch Changes

  • #3876
    abe91bd
    Thanks @EmrysMyrddin! - Re-export the utility type
    AsyncIterableIteratorOrValue from @envelop/core.

  • #3874
    9311842
    Thanks @EmrysMyrddin! - Gives access to the request in the
    operation instrument payload, since the request is not in the context yet.

@graphql-yoga/nestjs@3.13.2

Patch Changes

@graphql-yoga/nestjs-federation@3.13.2

Patch Changes

  • Updated dependencies []:
    • @graphql-yoga/nestjs@3.13.2
    • @graphql-yoga/plugin-apollo-inline-trace@3.13.2

@graphql-yoga/plugin-apollo-inline-trace@3.13.2

Patch Changes

@graphql-yoga/apollo-managed-federation@0.11.2

Patch Changes

@graphql-yoga/plugin-apollo-usage-report@0.8.3

Patch Changes

  • Updated dependencies
    [abe91bd,
    9311842]:
    • graphql-yoga@5.13.2
    • @graphql-yoga/plugin-apollo-inline-trace@3.13.2

@graphql-yoga/plugin-apq@3.13.3

Patch Changes

@graphql-yoga/plugin-csrf-prevention@3.13.2

Patch Changes

@graphql-yoga/plugin-defer-stream@3.13.2

Patch Changes

@graphql-yoga/plugin-disable-introspection@2.14.2

Patch Changes

@graphql-yoga/plugin-graphql-sse@3.13.3

Patch Changes

@graphql-yoga/plugin-jwt@3.7.3

Patch Changes

@graphql-yoga/plugin-persisted-operations@3.13.3

Patch Changes

@graphql-yoga/plugin-prometheus@6.8.2

Patch Changes

@graphql-yoga/plugin-response-cache@3.15.3

Patch Changes

@graphql-yoga/plugin-sofa@3.13.3

Patch Changes

@graphql-yoga/render-graphiql@5.13.2

Patch Changes

March 06, 2025

06 Mar 16:09
95f8d9e
Compare
Choose a tag to compare

@graphql-yoga/apollo-link@3.13.1

@graphql-yoga/urql-exchange@3.13.1

graphql-yoga@5.13.1

Patch Changes

@graphql-yoga/nestjs@3.13.1

Patch Changes

  • Updated dependencies
    [dee7995]:
    • graphql-yoga@5.13.1

@graphql-yoga/nestjs-federation@3.13.1

Patch Changes

@graphql-yoga/plugin-apollo-inline-trace@3.13.1

Patch Changes

@graphql-yoga/apollo-managed-federation@0.11.1

Patch Changes

  • Updated dependencies
    [dee7995]:
    • graphql-yoga@5.13.1

@graphql-yoga/plugin-apollo-usage-report@0.8.2

Patch Changes

  • Updated dependencies
    [dee7995,
    dee7995]:
    • @graphql-yoga/plugin-apollo-inline-trace@3.13.1
    • graphql-yoga@5.13.1

@graphql-yoga/plugin-apq@3.13.2

Patch Changes

  • Updated dependencies
    [dee7995]:
    • graphql-yoga@5.13.1

@graphql-yoga/plugin-csrf-prevention@3.13.1

Patch Changes

  • Updated dependencies
    [dee7995]:
    • graphql-yoga@5.13.1

@graphql-yoga/plugin-defer-stream@3.13.1

Patch Changes

  • Updated dependencies
    [dee7995]:
    • graphql-yoga@5.13.1

@graphql-yoga/plugin-disable-introspection@2.14.1

Patch Changes

  • Updated dependencies
    [dee7995]:
    • graphql-yoga@5.13.1

@graphql-yoga/plugin-graphql-sse@3.13.2

Patch Changes

  • Updated dependencies
    [dee7995]:
    • graphql-yoga@5.13.1

@graphql-yoga/plugin-jwt@3.7.2

Patch Changes

  • Updated dependencies
    [dee7995]:
    • graphql-yoga@5.13.1

@graphql-yoga/plugin-persisted-operations@3.13.2

Patch Changes

  • Updated dependencies
    [dee7995]:
    • graphql-yoga@5.13.1

@graphql-yoga/plugin-prometheus@6.8.1

Patch Changes

@graphql-yoga/plugin-response-cache@3.15.2

Patch Changes

@graphql-yoga/plugin-sofa@3.13.2

Patch Changes

  • Updated dependencies
    [dee7995]:
    • graphql-yoga@5.13.1

@graphql-yoga/render-graphiql@5.13.1

Patch Changes

  • Updated dependencies
    [dee7995]:
    • graphql-yoga@5.13.1

March 06, 2025

06 Mar 11:03
6c879e6
Compare
Choose a tag to compare

@graphql-yoga/plugin-apollo-usage-report@0.8.1

Patch Changes

@graphql-yoga/plugin-apq@3.13.1

Patch Changes

@graphql-yoga/plugin-graphql-sse@3.13.1

Patch Changes

@graphql-yoga/plugin-jwt@3.7.1

Patch Changes

@graphql-yoga/plugin-persisted-operations@3.13.1

Patch Changes

@graphql-yoga/plugin-response-cache@3.15.1

Patch Changes

@graphql-yoga/plugin-sofa@3.13.1

Patch Changes

March 05, 2025

05 Mar 15:09
0873274
Compare
Choose a tag to compare

@graphql-yoga/apollo-link@3.13.0

@graphql-yoga/urql-exchange@3.13.0

graphql-yoga@5.13.0

Minor Changes

  • #3793
    63b78d5
    Thanks @EmrysMyrddin! - Add new Instruments API

    Introduction 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 Instruments is 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: [
        {
          instruments: {
            request: ({ request }, wrapped) =>
              Sentry.startSpan({ name: 'Graphql Operation' }, async () => {
                try {
                  await wrapped()
                } catch (err) {
                  Sentry.captureException(err)
                }
              })
          }
        }
      ]
    })

    Multiple instruments plugins

    It is possible to have multiple instruments 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()]
    })
    sequenceDiagram
      Sentry->>Opentelemetry: ;
      Opentelemetry->>Server Adapter: ;
      Server Adapter->>Opentelemetry: ;
      Opentelemetry->>Sentry: ;

    Custom instruments ordering

    If the default composition ordering doesn't suite your need, you can manually compose instruments.
    This allows to have a different execution order of hooks and instruments.

    import { composeInstruments, createYoga } from 'graphql-yoga'
    import schema from './schema'
    
    const { instruments: sentryInstruments, ...sentryPlugin } = useSentry()
    const { instruments: otelInstruments, ...otelPlugin } = useOpentelemetry()
    const instruments = composeInstruments([otelInstruments, sentryInstruments])
    
    const server = createYoga({
      schema,
      plugins: [{ instruments }, useSentry(), useOpentelemetry()]
    })
    sequenceDiagram
      Opentelemetry->>Sentry: ;
      Sentry->>Server Adapter: ;
      Server Adapter->>Sentry: ;
      Sentry->>Opentelemetry: ;

Patch Changes

@graphql-yoga/nestjs@3.13.0

Patch Changes

@graphql-yoga/nestjs-federation@3.13.0

Patch Changes

@graphql-yoga/plugin-apollo-inline-trace@3.13.0

Patch Changes

@graphql-yoga/apollo-managed-federation@0.11.0

Patch Changes

@graphql-yoga/plugin-apollo-usage-report@0.8.0

Patch Changes

@graphql-yoga/plugin-apq@3.13.0

Patch Changes

@graphql-yoga/plugin-csrf-prevention@3.13.0

Patch Changes

@graphql-yoga/plugin-defer-stream@3.13.0

Patch Changes

@graphql-yoga/plugin-disable-introspection@2.14.0

Patch Changes

@graphql-yoga/plugin-graphql-sse@3.13.0

Patch Changes

Read more