Skip to content

Releases: graphql-hive/gateway

hive-gateway@1.7.1

14 Dec 15:48
3551600
Compare
Choose a tag to compare

Pre-built binaries of the Hive Gateway for the @graphql-hive/gateway@1.7.1 release.

December 13, 2024

13 Dec 14:00
c417be8
Compare
Choose a tag to compare

@graphql-hive/gateway-abort-signal-any@0.0.1

Patch Changes

@graphql-tools/batch-delegate@9.0.24

Patch Changes

  • Updated dependencies [23b8987]:
    • @graphql-tools/delegate@10.2.8

@graphql-tools/delegate@10.2.8

Patch Changes

@graphql-tools/executor-http@1.2.1

Patch Changes

@graphql-tools/federation@3.0.2

Patch Changes

  • Updated dependencies [23b8987, 23b8987]:
    • @graphql-tools/delegate@10.2.8
    • @graphql-tools/executor-http@1.2.1
    • @graphql-tools/stitch@9.4.10
    • @graphql-tools/wrap@10.0.26

@graphql-mesh/fusion-runtime@0.10.21

Patch Changes

  • Updated dependencies [23b8987, 23b8987]:
    • @graphql-mesh/transport-common@0.7.23
    • @graphql-tools/delegate@10.2.8
    • @graphql-tools/federation@3.0.2
    • @graphql-tools/stitch@9.4.10
    • @graphql-tools/stitching-directives@3.1.23
    • @graphql-tools/wrap@10.0.26

@graphql-hive/gateway@1.7.0

Minor Changes

  • #322 23b8987 Thanks @ardatan! - New Retry and Timeout plugins;

    • Retry plugin: Retry a request if it fails

    It respects the Retry-After HTTP header, See more about this HTTP

    export const gatewayConfig = defineConfig({
        upstreamRetry: {
            // The maximum number of retries to attempt.
            maxRetries: 3, // required
            // The delay between retries in milliseconds.
            retryDelay: 1000, // default
            /**
             * A function that determines whether a response should be retried.
             * If the upstream returns `Retry-After` header, the request will be retried.
             */
            shouldRetry: ({ response }) => response?.status >= 500 || response?.status === 429
        }
        // or you can configure it by subgraph name
        upstreamRetry({ subgraphName }) {
            if (subgraphName === 'my-rate-limited-subgraph') {
                return {
                    maxRetries: 3,
                }
            }
            return { maxRetries: 10 }
        }
    })
    • Timeout plugin: Timeout a request if it takes too long
    export const gatewayConfig = defineConfig({
      // The maximum time in milliseconds to wait for a response from the upstream.
      upstreamTimeout: 1000, // required
      // or you can configure it by subgraph name
      upstreamTimeout({ subgraphName }) {
        if (subgraphName === 'my-slow-subgraph') {
          return 1000;
        }
      },
    });

Patch Changes

  • Updated dependencies [23b8987, 23b8987]:
    • @graphql-hive/gateway-runtime@1.4.0
    • @graphql-mesh/plugin-opentelemetry@1.3.28
    • @graphql-mesh/plugin-prometheus@1.3.16
    • @graphql-mesh/hmac-upstream-signature@1.2.17
    • @graphql-mesh/transport-http@0.6.27
    • @graphql-mesh/transport-http-callback@0.5.14
    • @graphql-mesh/transport-ws@0.4.12

@graphql-mesh/hmac-upstream-signature@1.2.17

Patch Changes

  • Updated dependencies [23b8987]:
    • @graphql-mesh/transport-common@0.7.23

@graphql-mesh/plugin-opentelemetry@1.3.28

Patch Changes

  • Updated dependencies [23b8987, 23b8987, 23b8987]:
    • @graphql-hive/gateway-runtime@1.4.0
    • @graphql-mesh/transport-common@0.7.23

@graphql-mesh/plugin-prometheus@1.3.16

Patch Changes

  • Updated dependencies [23b8987, 23b8987]:
    • @graphql-hive/gateway-runtime@1.4.0

@graphql-hive/gateway-runtime@1.4.0

Minor Changes

  • #322 23b8987 Thanks @ardatan! - New Retry and Timeout plugins;

    • Retry plugin: Retry a request if it fails

    It respects the Retry-After HTTP header, See more about this HTTP

    export const gatewayConfig = defineConfig({
        upstreamRetry: {
            // The maximum number of retries to attempt.
            maxRetries: 3, // required
            // The delay between retries in milliseconds.
            retryDelay: 1000, // default
            /**
             * A function that determines whether a response should be retried.
             * If the upstream returns `Retry-After` header, the request will be retried.
             */
            shouldRetry: ({ response }) => response?.status >= 500 || response?.status === 429
        }
        // or you can configure it by subgraph name
        upstreamRetry({ subgraphName }) {
            if (subgraphName === 'my-rate-limited-subgraph') {
                return {
                    maxRetries: 3,
                }
            }
            return { maxRetries: 10 }
        }
    })
    • Timeout plugin: Timeout a request if it takes too long
    export const gatewayConfig = defineConfig({
      // The maximum time in milliseconds to wait for a response from the upstream.
      upstreamTimeout: 1000, // required
      // or you can configure it by subgraph name
      upstreamTimeout({ subgraphName }) {
        if (subgraphName === 'my-slow-subgraph') {
          return 1000;
        }
      },
    });

Patch Changes

  • #322 23b8987 Thanks @ardatan! - dependencies updates:

  • Updated dependencies [23b8987, 23b8987, 23b8987, 23b8987]:

    • @graphql-mesh/transport-common@0.7.23
    • @graphql-tools/delegate@10.2.8
    • @graphql-tools/executor-http@1.2.1
    • @graphql-hive/gateway-abort-signal-any@0.0.1
    • @graphql-mesh/fusion-runtime@0.10.21
    • @graphql-mesh/hmac-upstream-signature@1.2.17
    • @graphql-tools/batch-delegate@9.0.24
    • @graphql-tools/federation@3.0.2
    • @graphql-tools/stitch@9.4.10
    • @graphql-tools/wrap@10.0.26

@graphql-tools/stitch@9.4.10

Patch Changes

  • Updated dependencies [23b8987]:
    • @graphql-tools/delegate@10.2.8
    • @graphql-tools/batch-delegate@9.0.24
    • @graphql-tools/wrap@10.0.26

@graphql-tools/stitching-directives@3.1.23

Patch Changes

  • Updated dependencies [23b8987]:
    • @graphql-tools/delegate@10.2.8

@graphql-mesh/transport-common@0.7.23

Patch Changes

Read more

hive-gateway@1.7.0

13 Dec 14:03
c417be8
Compare
Choose a tag to compare

Pre-built binaries of the Hive Gateway for the @graphql-hive/gateway@1.7.0 release.

December 12, 2024

12 Dec 10:01
2f2f157
Compare
Choose a tag to compare

@graphql-tools/executor-http@1.2.0

Minor Changes

  • #313 367b359 Thanks @ardatan! - Automatic Persisted Queries support for upstream requests

    For HTTP Executor;

    buildHTTPExecutor({
      // ...
      apq: true,
    });

    For Gateway Configuration;

    export const gatewayConfig = defineConfig({
      transportEntries: {
        '*': {
          options: {
            apq: true,
          },
        },
      },
    });

@graphql-tools/federation@3.0.1

Patch Changes

  • Updated dependencies [367b359]:
    • @graphql-tools/executor-http@1.2.0

@graphql-mesh/fusion-runtime@0.10.20

Patch Changes

  • Updated dependencies []:
    • @graphql-tools/federation@3.0.1

@graphql-hive/gateway@1.6.8

Patch Changes

  • Updated dependencies [367b359]:
    • @graphql-mesh/transport-http@0.6.26
    • @graphql-hive/gateway-runtime@1.3.15
    • @graphql-mesh/plugin-opentelemetry@1.3.27
    • @graphql-mesh/plugin-prometheus@1.3.15
    • @graphql-mesh/hmac-upstream-signature@1.2.16

@graphql-mesh/plugin-opentelemetry@1.3.27

Patch Changes

  • Updated dependencies []:
    • @graphql-hive/gateway-runtime@1.3.15

@graphql-mesh/plugin-prometheus@1.3.15

Patch Changes

  • Updated dependencies []:
    • @graphql-hive/gateway-runtime@1.3.15

@graphql-hive/gateway-runtime@1.3.15

Patch Changes

  • Updated dependencies [367b359]:
    • @graphql-tools/executor-http@1.2.0
    • @graphql-tools/federation@3.0.1
    • @graphql-mesh/fusion-runtime@0.10.20
    • @graphql-mesh/hmac-upstream-signature@1.2.16

@graphql-mesh/transport-http@0.6.26

Patch Changes

  • #313 367b359 Thanks @ardatan! - Automatic Persisted Queries support for upstream requests

    For HTTP Executor;

    buildHTTPExecutor({
      // ...
      apq: true,
    });

    For Gateway Configuration;

    export const gatewayConfig = defineConfig({
      transportEntries: {
        '*': {
          options: {
            apq: true,
          },
        },
      },
    });
  • Updated dependencies [367b359]:

    • @graphql-tools/executor-http@1.2.0

hive-gateway@1.6.8

12 Dec 10:03
2f2f157
Compare
Choose a tag to compare

Pre-built binaries of the Hive Gateway for the @graphql-hive/gateway@1.6.8 release.

December 10, 2024

10 Dec 11:26
33f97bf
Compare
Choose a tag to compare

@graphql-tools/federation@3.0.0

Major Changes

  • #308 d747d4c Thanks @ardatan! - BREAKING CHANGES;

    • Removed buildSubgraphSchema, use @apollo/subgraph instead.
    • Removed the following gateway related functions, and prefer using Supergraph approach instead
      • getSubschemaForFederationWithURL
      • getSubschemaForFederationWithTypeDefs
      • getSubschemaForFederationWithExecutor
      • getSubschemaForFederationWithSchema
      • federationSubschemaTransformer
    • SupergraphSchemaManager is no longer an EventEmitter but EventTarget instead, and it emits a real Event object.
    • SupergraphSchemaManager is now Disposable and it no longer stops based on Nodejs terminate events, so you should use using syntax.
    using manager = new SupergraphSchemaManager({ ... });
    
    manager.addEventListener('error', (event: SupergraphSchemaManagerErrorEvent) => {
      console.error(event.detail.error);
    });
    
    let schema: GraphQLSchema | null = null;
    manager.addEventListener('schema', (event: SupergraphSchemaManagerSchemaEvent) => {
        schema = event.detail.schema;
    });

Patch Changes

@graphql-mesh/fusion-runtime@0.10.19

Patch Changes

  • Updated dependencies [d747d4c, d747d4c]:
    • @graphql-tools/federation@3.0.0

@graphql-hive/gateway@1.6.7

Patch Changes

  • Updated dependencies []:
    • @graphql-hive/gateway-runtime@1.3.14
    • @graphql-mesh/plugin-opentelemetry@1.3.26
    • @graphql-mesh/plugin-prometheus@1.3.14
    • @graphql-mesh/hmac-upstream-signature@1.2.16

@graphql-mesh/plugin-opentelemetry@1.3.26

Patch Changes

  • Updated dependencies []:
    • @graphql-hive/gateway-runtime@1.3.14

@graphql-mesh/plugin-prometheus@1.3.14

Patch Changes

  • Updated dependencies []:
    • @graphql-hive/gateway-runtime@1.3.14

@graphql-hive/gateway-runtime@1.3.14

Patch Changes

  • Updated dependencies [d747d4c, d747d4c]:
    • @graphql-tools/federation@3.0.0
    • @graphql-mesh/fusion-runtime@0.10.19
    • @graphql-mesh/hmac-upstream-signature@1.2.16

hive-gateway@1.6.7

10 Dec 11:28
33f97bf
Compare
Choose a tag to compare

Pre-built binaries of the Hive Gateway for the @graphql-hive/gateway@1.6.7 release.

December 06, 2024

06 Dec 15:20
d473a0a
Compare
Choose a tag to compare

@graphql-hive/gateway@1.6.6

Patch Changes

  • Updated dependencies [21ac43e]:
    • @graphql-hive/gateway-runtime@1.3.13
    • @graphql-mesh/plugin-opentelemetry@1.3.25
    • @graphql-mesh/plugin-prometheus@1.3.13
    • @graphql-mesh/hmac-upstream-signature@1.2.16

@graphql-mesh/plugin-opentelemetry@1.3.25

Patch Changes

  • Updated dependencies [21ac43e]:
    • @graphql-hive/gateway-runtime@1.3.13

@graphql-mesh/plugin-prometheus@1.3.13

Patch Changes

  • Updated dependencies [21ac43e]:
    • @graphql-hive/gateway-runtime@1.3.13

@graphql-hive/gateway-runtime@1.3.13

Patch Changes

  • #293 21ac43e Thanks @ardatan! - Fixes the bug when the fetcher given in subgraph called multiple times, so in the CLI when you point to a file for subgraph file, it fetches the subgraph on each request.

  • Updated dependencies []:

    • @graphql-mesh/hmac-upstream-signature@1.2.16

December 06, 2024

06 Dec 13:12
031e5b4
Compare
Choose a tag to compare

@graphql-tools/batch-delegate@9.0.23

Patch Changes

@graphql-tools/batch-execute@9.0.10

Patch Changes

@graphql-tools/delegate@10.2.7

Patch Changes

@graphql-tools/executor-graphql-ws@1.3.5

Patch Changes

@graphql-tools/executor-http@1.1.14

Patch Changes

@graphql-tools/federation@2.2.40

Patch Changes

@graphql-mesh/fusion-runtime@0.10.18

Patch Changes

@graphql-hive/gateway@1.6.5

Patch Changes

@graphql-mesh/hmac-upstream-signature@1.2.16

Patch Changes

@graphql-mesh/plugin-opentelemetry@1.3.24

Patch Changes

Read more

December 06, 2024

06 Dec 12:53
e361ae4
Compare
Choose a tag to compare

@graphql-mesh/fusion-runtime@0.10.17

Patch Changes

@graphql-hive/gateway@1.6.4

Patch Changes

  • Updated dependencies []:
    • @graphql-hive/gateway-runtime@1.3.11
    • @graphql-mesh/plugin-opentelemetry@1.3.23
    • @graphql-mesh/plugin-prometheus@1.3.11
    • @graphql-mesh/hmac-upstream-signature@1.2.15

@graphql-mesh/plugin-opentelemetry@1.3.23

Patch Changes

  • Updated dependencies []:
    • @graphql-hive/gateway-runtime@1.3.11

@graphql-mesh/plugin-prometheus@1.3.11

Patch Changes

  • Updated dependencies []:
    • @graphql-hive/gateway-runtime@1.3.11

@graphql-hive/gateway-runtime@1.3.11

Patch Changes

  • Updated dependencies [3b901c6]:
    • @graphql-mesh/fusion-runtime@0.10.17
    • @graphql-mesh/hmac-upstream-signature@1.2.15