Skip to content

Releases: n1ru4l/envelop

February 25, 2025

25 Feb 13:49
adad2da
Compare
Choose a tag to compare

@envelop/core@5.1.1

Patch Changes

@envelop/apollo-datasources@5.0.1

Patch Changes

  • Updated dependencies
    [5b6a166]:
    • @envelop/core@5.1.1

@envelop/apollo-federation@6.0.1

Patch Changes

  • Updated dependencies
    [5b6a166]:
    • @envelop/core@5.1.1

@envelop/apollo-server-errors@7.0.1

Patch Changes

  • Updated dependencies
    [5b6a166]:
    • @envelop/core@5.1.1

@envelop/apollo-tracing@7.0.1

Patch Changes

  • Updated dependencies
    [5b6a166,
    5b6a166,
    5b6a166]:
    • @envelop/core@5.1.1
    • @envelop/on-resolve@5.0.1
    • @envelop/types@5.1.1

@envelop/auth0@7.0.1

Patch Changes

  • Updated dependencies
    [5b6a166]:
    • @envelop/core@5.1.1

@envelop/dataloader@7.0.1

Patch Changes

  • Updated dependencies
    [5b6a166]:
    • @envelop/core@5.1.1

@envelop/depth-limit@5.0.1

Patch Changes

  • Updated dependencies
    [5b6a166]:
    • @envelop/core@5.1.1

@envelop/disable-introspection@7.0.1

Patch Changes

  • Updated dependencies
    [5b6a166]:
    • @envelop/core@5.1.1

@envelop/execute-subscription-event@6.0.1

Patch Changes

  • Updated dependencies
    [5b6a166]:
    • @envelop/core@5.1.1

@envelop/extended-validation@5.0.1

Patch Changes

  • Updated dependencies
    [5b6a166]:
    • @envelop/core@5.1.1

@envelop/filter-operation-type@7.0.1

Patch Changes

  • Updated dependencies
    [5b6a166]:
    • @envelop/core@5.1.1

@envelop/fragment-arguments@7.0.1

Patch Changes

  • Updated dependencies
    [5b6a166]:
    • @envelop/core@5.1.1

@envelop/generic-auth@9.0.1

Patch Changes

  • Updated dependencies
    [5b6a166]:
    • @envelop/core@5.1.1
    • @envelop/extended-validation@5.0.1

@envelop/graphql-jit@9.0.1

Patch Changes

  • Updated dependencies
    [5b6a166]:
    • @envelop/core@5.1.1

@envelop/graphql-middleware@7.0.1

Patch Changes

  • Updated dependencies
    [5b6a166]:
    • @envelop/core@5.1.1

@envelop/graphql-modules@7.0.2

Patch Changes

  • Updated dependencies
    [5b6a166]:
    • @envelop/core@5.1.1

@envelop/immediate-introspection@5.0.1

Patch Changes

  • Updated dependencies
    [5b6a166]:
    • @envelop/core@5.1.1

@envelop/live-query@8.0.1

Patch Changes

  • Updated dependencies
    [5b6a166]:
    • @envelop/core@5.1.1

@envelop/newrelic@8.0.1

Patch Changes

  • Updated dependencies
    [5b6a166,
    5b6a166]:
    • @envelop/core@5.1.1
    • @envelop/on-resolve@5.0.1

@envelop/on-resolve@5.0.1

Patch Changes

@envelop/opentelemetry@7.0.1

Patch Changes

  • Updated dependencies
    [5b6a166,
    5b6a166]:
    • @envelop/core@5.1.1
    • @envelop/on-resolve@5.0.1

@envelop/operation-field-permissions@7.0.1

Patch Changes

  • Updated dependencies
    [5b6a166]:
    • @envelop/core@5.1.1
    • @envelop/extended-validation@5.0.1

@envelop/parser-cache@8.0.1

Patch Changes

  • Updated dependencies
    [5b6a166]:
    • @envelop/core@5.1.1

@envelop/persisted-operations@8.0.1

Patch Changes

  • Updated dependencies
    [5b6a166]:
    • @envelop/core@5.1.1

@envelop/preload-assets@7.0.1

Patch Changes

  • Updated dependencies
    [5b6a166]:
    • @envelop/core@5.1.1

@envelop/prometheus@12.0.1

Patch Changes

  • Updated dependencies
    [5b6a166,
    5b6a166]:
    • @envelop/core@5.1.1
    • @envelop/on-resolve@5.0.1

@envelop/rate-limiter@7.0.2

Patch Changes

@envelop/resource-limitations@6.0.1

Patch Changes

  • Updated dependencies
    [5b6a166]:
    • @envelop/core@5.1.1
    • @envelop/extended-validation@5.0.1

@envelop/response-cache@7.0.1

Patch Changes

  • Updated dependencies
    [5b6a166]:
    • @envelop/core@5.1.1

@envelop/response-cache-redis@4.1.5

Patch Changes

  • Updated dependencies []:
    • @envelop/response-cache@7.0.1

@envelop/sentry@13.0.1

Patch Changes

  • Updated dependencies
    [5b6a166]:
    • @envelop/core@5.1.1

@envelop/statsd@6.0.1

Patch Changes

  • Updated dependencies
    [5b6a166]:
    • @envelop/core@5.1.1

@envelop/validation-cache@8.0.1

Patch Changes

  • Updated dependencies
    [5b6a166]:
    • @envelop/core@5.1.1

@envelop/testing@8.0.1

Patch Changes

  • Updated dependencies
    [5b6a166,
    5b6a166]:
    • @envelop/core@5.1.1
    • @envelop/types@5.1.1

@envelop/types@5.1.1

Patch Changes

Read more

February 20, 2025

20 Feb 12:44
08fff3b
Compare
Choose a tag to compare

@envelop/rate-limiter@7.0.1

Patch Changes

February 19, 2025

19 Feb 11:15
0b8fb8d
Compare
Choose a tag to compare

@envelop/graphql-modules@7.0.1

Patch Changes

February 19, 2025

19 Feb 00:30
57a6fea
Compare
Choose a tag to compare

@envelop/core@5.1.0

Minor Changes

  • #2438
    9bd1b20
    Thanks @ardatan! - Add context field to onExecute and
    onSubscribe hooks payloads. This harmonize all the hooks invovled in the handling of a graphql
    operation.

Patch Changes

  • Updated dependencies
    [9bd1b20]:
    • @envelop/types@5.1.0

@envelop/apollo-datasources@5.0.0

Patch Changes

@envelop/apollo-federation@6.0.0

Patch Changes

@envelop/apollo-server-errors@7.0.0

Patch Changes

  • Updated dependencies
    [9bd1b20]:
    • @envelop/core@5.1.0

@envelop/apollo-tracing@7.0.0

Patch Changes

  • Updated dependencies
    [9bd1b20]:
    • @envelop/types@5.1.0
    • @envelop/core@5.1.0
    • @envelop/on-resolve@5.0.0

@envelop/auth0@7.0.0

Patch Changes

  • Updated dependencies
    [9bd1b20]:
    • @envelop/core@5.1.0

@envelop/dataloader@7.0.0

Patch Changes

  • Updated dependencies
    [9bd1b20]:
    • @envelop/core@5.1.0

@envelop/depth-limit@5.0.0

Patch Changes

  • Updated dependencies
    [9bd1b20]:
    • @envelop/core@5.1.0

@envelop/disable-introspection@7.0.0

Patch Changes

  • Updated dependencies
    [9bd1b20]:
    • @envelop/core@5.1.0

@envelop/execute-subscription-event@6.0.0

Patch Changes

  • Updated dependencies
    [9bd1b20]:
    • @envelop/core@5.1.0

@envelop/extended-validation@5.0.0

Patch Changes

  • Updated dependencies
    [9bd1b20]:
    • @envelop/core@5.1.0

@envelop/filter-operation-type@7.0.0

Patch Changes

  • Updated dependencies
    [9bd1b20]:
    • @envelop/core@5.1.0

@envelop/fragment-arguments@7.0.0

Patch Changes

  • Updated dependencies
    [9bd1b20]:
    • @envelop/core@5.1.0

@envelop/generic-auth@9.0.0

Patch Changes

  • Updated dependencies
    [9bd1b20]:
    • @envelop/core@5.1.0
    • @envelop/extended-validation@5.0.0

@envelop/graphql-jit@9.0.0

Patch Changes

  • Updated dependencies
    [9bd1b20]:
    • @envelop/core@5.1.0

@envelop/graphql-middleware@7.0.0

Patch Changes

  • Updated dependencies
    [9bd1b20]:
    • @envelop/core@5.1.0

@envelop/graphql-modules@7.0.0

Patch Changes

  • Updated dependencies
    [9bd1b20]:
    • @envelop/core@5.1.0

@envelop/immediate-introspection@5.0.0

Patch Changes

  • Updated dependencies
    [9bd1b20]:
    • @envelop/core@5.1.0

@envelop/live-query@8.0.0

Patch Changes

  • Updated dependencies
    [9bd1b20]:
    • @envelop/core@5.1.0

@envelop/newrelic@8.0.0

Patch Changes

  • Updated dependencies
    [9bd1b20]:
    • @envelop/core@5.1.0
    • @envelop/on-resolve@5.0.0

@envelop/on-resolve@5.0.0

Patch Changes

  • Updated dependencies
    [9bd1b20]:
    • @envelop/core@5.1.0

@envelop/opentelemetry@7.0.0

Patch Changes

  • Updated dependencies
    [9bd1b20]:
    • @envelop/core@5.1.0
    • @envelop/on-resolve@5.0.0

@envelop/operation-field-permissions@7.0.0

Patch Changes

  • Updated dependencies
    [9bd1b20]:
    • @envelop/core@5.1.0
    • @envelop/extended-validation@5.0.0

@envelop/parser-cache@8.0.0

Patch Changes

  • Updated dependencies
    [9bd1b20]:
    • @envelop/core@5.1.0

@envelop/persisted-operations@8.0.0

Patch Changes

  • Updated dependencies
    [9bd1b20]:
    • @envelop/core@5.1.0

@envelop/preload-assets@7.0.0

Patch Changes

  • Updated dependencies
    [9bd1b20]:
    • @envelop/core@5.1.0

@envelop/prometheus@12.0.0

Patch Changes

  • Updated dependencies
    [9bd1b20]:
    • @envelop/core@5.1.0
    • @envelop/on-resolve@5.0.0

@envelop/rate-limiter@7.0.0

Patch Changes

  • Updated dependencies
    [9bd1b20]:
    • @envelop/core@5.1.0
    • @envelop/on-resolve@5.0.0

@envelop/resource-limitations@6.0.0

Patch Changes

  • Updated dependencies
    [9bd1b20]:
    • @envelop/core@5.1.0
    • @envelop/extended-validation@5.0.0

@envelop/response-cache@7.0.0

Patch Changes

@envelop/response-cache-cloudflare-kv@3.0.0

Patch Changes

  • Updated dependencies
    [9bd1b20]:
    • @envelop/response-cache@7.0.0

@envelop/response-cache-redis@4.1.4

Patch Changes

  • Updated dependencies
    [9bd1b20]:
    • @envelop/response-cache@7.0.0

@envelop/sentry@13.0.0

Patch Changes

  • Updated dependencies
    [9bd1b20]:
    • @envelop/core@5.1.0

@envelop/statsd@6.0.0

Patch Changes

  • Updated dependencies
    [9bd1b20]:
    • @envelop/core@5.1.0

@envelop/validation-cache@8.0.0

Patch Changes

  • Updated dependencies
    [9bd1b20]:
    • @envelop/core@5.1.0

@envelop/testing@8.0.0

Patch Changes

Read more

January 27, 2025

27 Jan 19:55
51e5f3e
Compare
Choose a tag to compare

@envelop/response-cache@6.3.0

Minor Changes

@envelop/response-cache-cloudflare-kv@2.0.0

Patch Changes

  • Updated dependencies
    [7882ffb]:
    • @envelop/response-cache@6.3.0

January 16, 2025

16 Jan 15:27
4d51ac0
Compare
Choose a tag to compare

@envelop/apollo-federation@5.0.1

Patch Changes

@envelop/response-cache-redis@4.1.3

Patch Changes

January 13, 2025

13 Jan 11:36
643b6bd
Compare
Choose a tag to compare

@envelop/core@5.0.3

Patch Changes

December 12, 2024

12 Dec 15:03
58cd3e8
Compare
Choose a tag to compare

@envelop/sentry@12.0.0

Major Changes

  • #2323
    2993773
    Thanks @Karibash! - Make it possible to get the active span in the
    GraphQL resolver

    Breaking Change: With this change, this plugin now wraps the execute function. This plugin
    should be placed last so that the execute function is not overwritten by another plugin.

    const yoga = createYoga({
      plugins: [
        ...otherPlugins,
        useSentry({
          // ...
        })
      ]
    })

December 11, 2024

11 Dec 10:43
f7be09b
Compare
Choose a tag to compare

@envelop/generic-auth@8.0.1

Patch Changes

  • #2347
    8b7e657
    Thanks @ardatan! - dependencies updates:

  • #2347
    8b7e657
    Thanks @ardatan! - Handle operations with `@include` and `@skip`
    correctly when they have default values in the operation definition

    {
        query: /* GraphQL */ `
          query MyQuery($include: Boolean = true) {
            field @include(if: $include)
          }
        `,
        variables: {}
    }

    should be considered same as

    {
        query: /* GraphQL */ `
          query MyQuery($include: Boolean!) {
            field @include(if: $include)
          }
        `,
        variables: {
            include: true
        }
    }

@envelop/response-cache@6.2.5

Patch Changes

@envelop/sentry@11.0.0

Major Changes

  • #2335
    073774c
    Thanks @EmrysMyrddin! - Fix: Update code to better feat the new
    Sentry v8 API

    Breaking Change:

    • startTransaction option has been removed.
    • forceTransaction option has been added, disabled by default.

@envelop/statsd@5.0.1

Patch Changes

November 26, 2024

26 Nov 10:51
40889ca
Compare
Choose a tag to compare

@envelop/prometheus@11.1.0

Minor Changes

  • #2326
    443fc15
    Thanks @EmrysMyrddin! - Allow to explicitly control which
    events and timing should be observe.

    Each metric can now be configured to observe events and timings only for certain GraphQL pipeline
    phases, or depending on the request context.

    Example: trace only execution and subscription errors

    import { execute, parse, specifiedRules, subscribe, validate } from 'graphql'
    import { envelop, useEngine } from '@envelop/core'
    import { usePrometheus } from '@envelop/prometheus'
    
    const TRACKED_OPERATION_NAMES = [
      // make a list of operation that you want to monitor
    ]
    
    const getEnveloped = envelop({
      plugins: [
        useEngine({ parse, validate, specifiedRules, execute, subscribe }),
        usePrometheus({
          metrics: {
            // Here, an array of phases can be provided to enable the metric only on certain phases.
            // In this example, only error happening during the execute and subscribe phases will tracked
            graphql_envelop_phase_error: ['execute', 'subscribe']
          }
        })
      ]
    })

    Example: Monitor timing only of a set of operations by name

    import { execute, parse, specifiedRules, subscribe, validate } from 'graphql'
    import { envelop, useEngine } from '@envelop/core'
    import { usePrometheus } from '@envelop/prometheus'
    
    const TRACKED_OPERATION_NAMES = [
      // make a list of operation that you want to monitor
    ]
    
    const getEnveloped = envelop({
      plugins: [
        useEngine({ parse, validate, specifiedRules, execute, subscribe }),
        usePrometheus({
          metrics: {
            graphql_yoga_http_duration: createHistogram({
              registry,
              histogram: {
                name: 'graphql_envelop_request_duration',
                help: 'Time spent on HTTP connection',
                labelNames: ['operationName']
              },
              fillLabelsFn: ({ operationName }, _rawContext) => ({ operationName }),
              phases: ['execute', 'subscribe'],
    
              // Here `shouldObserve` control if the request timing should be observed, based on context
              shouldObserve: ({ operationName }) => TRACKED_OPERATIONS.includes(operationName)
            })
          }
        })
      ]
    })

    Default Behavior Change

    A metric is enabled using true value in metrics options will observe in every phases available.

    Previously, which phase was observe was depending on which other metric were enabled. For example,
    this config would only trace validation error:

    usePrometheus({
      metrics: {
        graphql_envelop_phase_error: true,
        graphql_envelop_phase_validate: true
      }
    })

    This is no longer the case. If you were relying on this behavior, please use an array of string to
    restrict observed phases.

    usePrometheus({
      metrics: {
        graphql_envelop_phase_error: ['validate']
      }
    })