Skip to content

Releases: dotansimha/graphql-yoga

June 18, 2024

18 Jun 09:31
f32ad6d
Compare
Choose a tag to compare

@graphql-yoga/apollo-link@3.4.0

@graphql-yoga/urql-exchange@3.4.0

@graphql-yoga/redis-event-target@3.0.1

Patch Changes

@graphql-yoga/graphiql@4.3.0

Minor Changes

  • #3314
    d5dfe99
    Thanks @EmrysMyrddin! - Allow for full customization of the
    GraphiQL page.

    Props from the YogaGraphiQL are now forwarded to the underlying GraphiQL components.

    The graphiql option field type of the Yoga server as also been updated to document which options
    are configurable from the server side. Only serializable options are available.

  • #3255
    7335a82
    Thanks @nissy-dev! - support shouldPersistHeaders option in
    GraphiQL plugin

Patch Changes

graphql-yoga@5.4.0

Minor Changes

  • #3314
    d5dfe99
    Thanks @EmrysMyrddin! - Allow for full customization of the
    GraphiQL page.

    Props from the YogaGraphiQL are now forwarded to the underlying GraphiQL components.

    The graphiql option field type of the Yoga server as also been updated to document which options
    are configurable from the server side. Only serializable options are available.

  • #3255
    7335a82
    Thanks @nissy-dev! - support shouldPersistHeaders option in
    GraphiQL plugin

Patch Changes

@graphql-yoga/nestjs@3.4.0

Patch Changes

@graphql-yoga/nestjs-federation@3.4.0

Patch Changes

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

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

Patch Changes

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

Patch Changes

@graphql-yoga/plugin-apq@3.4.0

Patch Changes

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

Patch Changes

Read more

May 08, 2024

08 May 09:18
f99322f
Compare
Choose a tag to compare

graphql-yoga-cloud-run-guide@3.3.1

Patch Changes

@graphql-yoga/apollo-link@3.3.1

@graphql-yoga/urql-exchange@3.3.1

graphql-yoga@5.3.1

Patch Changes

  • #3237
    3324bbab
    Thanks @ardatan! - dependencies updates:

  • #3237
    3324bbab
    Thanks @ardatan! - In such environments like CloudFlare Workers, the
    request object in the context always has the initial request object, so it was impossible to
    access the actual Request object from the execution context. Now Yoga ensures that the request
    in the context is the same with the actual Request.

@graphql-yoga/nestjs@3.3.1

Patch Changes

@graphql-yoga/nestjs-federation@3.3.1

Patch Changes

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

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

Patch Changes

@graphql-yoga/plugin-apq@3.3.1

Patch Changes

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

Patch Changes

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

Patch Changes

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

Patch Changes

@graphql-yoga/plugin-graphql-sse@3.3.1

Patch Changes

@graphql-yoga/plugin-jwt@2.3.1

Patch Changes

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

Patch Changes

@graphql-yoga/plugin-prometheus@5.0.0

Major Changes

  • #3251
    a8ddac54
    Thanks @EmrysMyrddin! - Adds a cache for metrics definition
    (Summary, Histogram and Counter).

    Fixes an issue preventing this plugin to be initialized multiple times, leading to metrics
    duplication error (ardatan/graphql-mesh#6545).

    Behavior Breaking Change:

    Due to Prometheus client API limitations, a metric is only defined once for a given registry. This
    means that if the configuration of the metrics, it will be silently ignored on plugin
    re-initialization.

    This is to avoid potential loss of metrics data produced between the plugin re-initialization and
    the last pull by the prometheus agent.

    If you need to be sure metrics configuration is up to date after a plugin re-initialization, you
    can either:

    • restart the whole node process instead of just recreating a graphql server at runtime
    • clear the registry using registry.clear() before plugin re-initialization:
      function usePrometheusWithReset() {
        registry.clear()
        return usePrometheus({ ... })
      }
    • use a new registry for each plugin instance:
      function usePrometheusWithRegistry() {
        const registry = new Registry()
        return usePrometheus({
          registry,
          ...
        })
      }

    Keep in mind that this implies potential data loss in pull mode.

    API Breaking Change:

    To ensure metrics from being registered multiple times on the same registry, the signature of
    createHistogram, createSummary and createCounter have been changed to now include the
    registry as a mandatory parameter.

    If you were customizing metrics parameters, you will need to update the metric definitions

    usePrometheus({
      execute: createHistogram({
    +   registry: registry
        histogram: new Histogram({
          name: 'my_custom_name',
          help: 'HELP ME',
          labelNames: ['opText'] as const,
    -     registers: [registry],
        }),
        fillLabelsFn: () => {}
      }),
      requestCount: createCounter({
    +   registry: registry
        histogram: new Histogram({
          name: 'my_custom_name',
          help: 'HELP ME',
          labelNames: ['opText'] as const,
    -     registers: [registry],
        }),
        fillLabelsFn: () => {}
      }),
      requestSummary: createSummary({
    +   registry: registry
        histogram: new Histogram({
          name: 'my_custom_name',
          help: 'HELP ME',
          labelNames: ['opText'] as const,
    -     registers: [registry],
        }),
        fillLabelsFn: () => {}
      }),
    })

Patch Changes

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

Patch Changes

@graphql-yoga/plugin-sofa@3.3.1

Patch Changes

@graphql-yoga/render-graphiql@5.3.1

Patch Changes

March 29, 2024

29 Mar 22:39
0c95e90
Compare
Choose a tag to compare

graphql-yoga-cloud-run-guide@3.3.0

Patch Changes

@graphql-yoga/apollo-link@3.3.0

@graphql-yoga/urql-exchange@3.3.0

graphql-yoga@5.3.0

Minor Changes

  • #3197
    f775b341
    Thanks @n1ru4l! - Experimental support for aborting GraphQL execution
    when the HTTP request is canceled.

    The execution of subsequent GraphQL resolvers is now aborted if the incoming HTTP request is
    canceled from the client side. This reduces the load of your API in case incoming requests with
    deep GraphQL operation selection sets are canceled.

    import { createYoga, useExecutionCancellation } from 'graphql-yoga'
    
    const yoga = createYoga({
      plugins: [useExecutionCancellation()]
    })

    Learn more in our docs

    Action Required In order to benefit from this new feature, you need to update your integration
    setup for Fastify, Koa and Hapi.

    - const response = await yoga.handleNodeRequest(req, { ... })
    + const response = await yoga.handleNodeRequestAndResponse(req, res, { ... })

    Please refer to the corresponding integration guides for examples.

Patch Changes

@graphql-yoga/nestjs@3.3.0

Patch Changes

@graphql-yoga/nestjs-federation@3.3.0

Patch Changes

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

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

Patch Changes

@graphql-yoga/plugin-apq@3.3.0

Patch Changes

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

Patch Changes

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

Patch Changes

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

Patch Changes

@graphql-yoga/plugin-graphql-sse@3.3.0

Patch Changes

@graphql-yoga/plugin-jwt@2.3.0

Patch Changes

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

Patch Changes

@graphql-yoga/plugin-prometheus@4.2.0

Patch Changes

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

Patch Changes

@graphql-yoga/plugin-sofa@3.3.0

Patch Changes

@graphql-yoga/render-graphiql@5.3.0

Patch Changes

March 13, 2024

13 Mar 14:22
40b5224
Compare
Choose a tag to compare

graphql-yoga-cloud-run-guide@3.2.0

Patch Changes

@graphql-yoga/apollo-link@3.2.0

@graphql-yoga/urql-exchange@3.2.0

graphql-yoga@5.2.0

Minor Changes

  • #3196
    71db7548
    Thanks @n1ru4l! - Allow setting async iterable within onParams hook
    setResult function

Patch Changes

@graphql-yoga/nestjs@3.2.0

Patch Changes

@graphql-yoga/nestjs-federation@3.2.0

Patch Changes

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

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

Patch Changes

@graphql-yoga/plugin-apq@3.2.0

Patch Changes

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

Patch Changes

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

Patch Changes

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

Patch Changes

@graphql-yoga/plugin-graphql-sse@3.2.0

Patch Changes

@graphql-yoga/plugin-jwt@2.2.0

Patch Changes

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

Minor Changes

  • #3183
    6725f8e7
    Thanks @n1ru4l! - Inject request into extractPersistedOperationId
    function for allowing to extract the ID based on request header, query parameters or request path.

Patch Changes

@graphql-yoga/plugin-prometheus@4.1.0

Minor Changes

  • 9047d76d
    Thanks @ardatan! - Ability to rename the metrics without creating a
    new histogram

Patch Changes

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

Patch Changes

@graphql-yoga/plugin-sofa@3.2.0

Patch Changes

@graphql-yoga/render-graphiql@5.2.0

Patch Changes

February 04, 2024

04 Feb 12:20
a852e34
Compare
Choose a tag to compare

@graphql-yoga/plugin-prometheus@4.0.0

Major Changes

January 18, 2024

18 Jan 15:09
def25fc
Compare
Choose a tag to compare

@graphql-yoga/plugin-prometheus@3.1.2

Patch Changes

January 16, 2024

16 Jan 14:23
f3e0d22
Compare
Choose a tag to compare

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

Minor Changes

  • #3164
    353c0fed
    Thanks @n1ru4l! - Add servedFromResponseCache symbol property to
    responses served from the response cache in order to allow other plugins to determine, whether a
    response was served from the cache and apply custom logic based on that.

January 03, 2024

03 Jan 15:39
e65b273
Compare
Choose a tag to compare

graphql-yoga-cloud-run-guide@3.1.1

Patch Changes

  • Updated dependencies
    [3ef877a7]:
    • graphql-yoga@5.1.1

@graphql-yoga/apollo-link@3.1.1

@graphql-yoga/urql-exchange@3.1.1

graphql-yoga@5.1.1

Patch Changes

@graphql-yoga/nestjs@3.1.1

Patch Changes

  • Updated dependencies
    [3ef877a7]:
    • graphql-yoga@5.1.1

@graphql-yoga/nestjs-federation@3.1.1

Patch Changes

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

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

Patch Changes

  • Updated dependencies
    [3ef877a7]:
    • graphql-yoga@5.1.1

@graphql-yoga/plugin-apq@3.1.1

Patch Changes

  • Updated dependencies
    [3ef877a7]:
    • graphql-yoga@5.1.1

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

Patch Changes

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

Patch Changes

  • Updated dependencies
    [3ef877a7]:
    • graphql-yoga@5.1.1

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

Patch Changes

  • Updated dependencies
    [3ef877a7]:
    • graphql-yoga@5.1.1

@graphql-yoga/plugin-graphql-sse@3.1.1

Patch Changes

  • Updated dependencies
    [3ef877a7]:
    • graphql-yoga@5.1.1

@graphql-yoga/plugin-jwt@2.1.2

Patch Changes

  • Updated dependencies
    [3ef877a7]:
    • graphql-yoga@5.1.1

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

Patch Changes

  • Updated dependencies
    [3ef877a7]:
    • graphql-yoga@5.1.1

@graphql-yoga/plugin-prometheus@3.1.1

Patch Changes

  • Updated dependencies
    [3ef877a7]:
    • graphql-yoga@5.1.1

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

Patch Changes

  • Updated dependencies
    [3ef877a7]:
    • graphql-yoga@5.1.1

@graphql-yoga/plugin-sofa@3.1.1

Patch Changes

  • Updated dependencies
    [3ef877a7]:
    • graphql-yoga@5.1.1

@graphql-yoga/render-graphiql@5.1.1

Patch Changes

  • Updated dependencies
    [3ef877a7]:
    • graphql-yoga@5.1.1

December 22, 2023

22 Dec 15:42
1606c95
Compare
Choose a tag to compare

@graphql-yoga/plugin-jwt@2.1.1

Patch Changes

  • #3149
    b9d2afcc
    Thanks @EmrysMyrddin! - Fix unauthorized error resulting in an
    response with 500 status or in a server crash (depending on actual HTTP server implementation
    used).

December 22, 2023

22 Dec 11:41
ab81a2e
Compare
Choose a tag to compare

graphql-yoga-cloud-run-guide@3.1.0

Patch Changes

  • Updated dependencies
    [b1f0e3a2]:
    • graphql-yoga@5.1.0

@graphql-yoga/apollo-link@3.1.0

@graphql-yoga/urql-exchange@3.1.0

graphql-yoga@5.1.0

Minor Changes

@graphql-yoga/nestjs@3.1.0

Minor Changes

  • #2992
    b1f0e3a2
    Thanks @magrinj! - Adding support of conditionalSchema option.
    (Currently without support for WebSocket subscriptions)

Patch Changes

  • Updated dependencies
    [b1f0e3a2]:
    • graphql-yoga@5.1.0

@graphql-yoga/nestjs-federation@3.1.0

Patch Changes

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

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

Patch Changes

  • Updated dependencies
    [b1f0e3a2]:
    • graphql-yoga@5.1.0

@graphql-yoga/plugin-apq@3.1.0

Patch Changes

  • Updated dependencies
    [b1f0e3a2]:
    • graphql-yoga@5.1.0

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

Patch Changes

  • Updated dependencies
    [b1f0e3a2]:
    • graphql-yoga@5.1.0

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

Patch Changes

  • Updated dependencies
    [b1f0e3a2]:
    • graphql-yoga@5.1.0

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

Patch Changes

  • Updated dependencies
    [b1f0e3a2]:
    • graphql-yoga@5.1.0

@graphql-yoga/plugin-graphql-sse@3.1.0

Patch Changes

  • Updated dependencies
    [b1f0e3a2]:
    • graphql-yoga@5.1.0

@graphql-yoga/plugin-jwt@2.1.0

Patch Changes

  • Updated dependencies
    [b1f0e3a2]:
    • graphql-yoga@5.1.0

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

Patch Changes

  • Updated dependencies
    [b1f0e3a2]:
    • graphql-yoga@5.1.0

@graphql-yoga/plugin-prometheus@3.1.0

Patch Changes

  • Updated dependencies
    [b1f0e3a2]:
    • graphql-yoga@5.1.0

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

Patch Changes

  • Updated dependencies
    [b1f0e3a2]:
    • graphql-yoga@5.1.0

@graphql-yoga/plugin-sofa@3.1.0

Patch Changes

  • Updated dependencies
    [b1f0e3a2]:
    • graphql-yoga@5.1.0

@graphql-yoga/render-graphiql@5.1.0

Patch Changes

  • Updated dependencies
    [b1f0e3a2]:
    • graphql-yoga@5.1.0