Skip to content

Releases: graphql-hive/gateway

February 04, 2025

04 Feb 14:51
344f837
Compare
Choose a tag to compare

@graphql-tools/[email protected]

Patch Changes

  • #591 7d42160 Thanks @ardatan! - Fix the regression preventing users from passing custom lazy and lazyCloseTimeout options

@graphql-hive/[email protected]

Patch Changes

@graphql-mesh/[email protected]

Patch Changes

February 04, 2025

04 Feb 09:35
a3f8546
Compare
Choose a tag to compare

@graphql-tools/[email protected]

Major Changes

  • #481 0b13cb4 Thanks @enisdenjo! - Executor options don't exist graphql-ws dependency options

    Removing the dependency on the types. Some options are still exposed, but if you want to further customise the graphql-ws client, you should pass your own instance of the client instead.

    import { buildGraphQLWSExecutor } from '@graphql-tools/executor-graphql-ws';
    import { createClient } from 'graphql-ws';
    import { options } from './my-graphql-ws-client-options';
    
    const executor = buildGraphQLWSExecutor(
      createClient({
        url: 'ws://localhost:4000/graphql',
        ...options,
      }),
    );
  • #481 0b13cb4 Thanks @enisdenjo! - Upgrade graphql-ws to v6

    If you have a custom graphql-ws configuration when building the executor with buildGraphQLWSExecutor, you will have to migrate the graphql-ws side to v6. Please consult the changelog of graphql-ws.

Minor Changes

Patch Changes

@graphql-hive/[email protected]

Patch Changes

@graphql-mesh/[email protected]

Patch Changes

@graphql-mesh/[email protected]

Patch Changes

@graphql-hive/[email protected]

Patch Changes

@graphql-mesh/[email protected]

Major Changes

  • #481 0b13cb4 Thanks @enisdenjo! - WebSocket transport options allow configuring only connectionParams

    In most of the cases you won't need to configure the underlying graphql-ws client any further.

  • #481 0b13cb4 Thanks @enisdenjo! - WebSocket transport is stable and production ready

Minor Changes

Patch Changes

[email protected]

04 Feb 14:54
344f837
Compare
Choose a tag to compare

Pre-built binaries of the Hive Gateway for the @graphql-hive/[email protected] release.

[email protected]

04 Feb 09:38
a3f8546
Compare
Choose a tag to compare

Pre-built binaries of the Hive Gateway for the @graphql-hive/[email protected] release.

January 31, 2025

31 Jan 15:28
932a4be
Compare
Choose a tag to compare

@graphql-hive/[email protected]

Patch Changes

  • #574 8c466f4 Thanks @ardatan! - Fix the regression causing port, host and pollingInterval in the configuration is overriden by the default values of CLI parameters

[email protected]

31 Jan 15:31
932a4be
Compare
Choose a tag to compare

Pre-built binaries of the Hive Gateway for the @graphql-hive/[email protected] release.

January 30, 2025

30 Jan 10:45
432fd8f
Compare
Choose a tag to compare

@graphql-hive/[email protected]

Minor Changes

  • #568 de83dd2 Thanks @dotansimha! - Improve cache configuration signature.

    The cache configuration key now allow you to pass a custom factory function to get the cache instance:

    import { defineConfig } from '@graphql-hive/gateway';
    
    export const gatewayConfig = defineConfig({
      // ...
      cache: (ctx) => {
        // Here you may create/retrieve your cache store instance, and return a KeyValueCache instance
      },
    });

Patch Changes

  • #561 7f6490f Thanks @ardatan! - Binary for Linux-ARM64

  • #568 de83dd2 Thanks @dotansimha! - Use the same logging instance across different components whenever possible

    For example if the log level is set in the configuration, change it immediately for the cache storages etc.

[email protected]

30 Jan 10:48
432fd8f
Compare
Choose a tag to compare

Pre-built binaries of the Hive Gateway for the @graphql-hive/[email protected] release.

January 29, 2025

29 Jan 15:40
f695984
Compare
Choose a tag to compare

@graphql-tools/[email protected]

Patch Changes

@graphql-tools/[email protected]

Patch Changes

  • #506 9144222 Thanks @ardatan! - Add isPrototypePollutingKey to prevent accidential prototype pollution, whenever object manipulation happens with the keys based on the user input, it is validated to prevent prototype pollution.

    For example, WrapQuery takes path which is used to manipulate the object returned to the client. If the user input is __proto__, it will throw an error from now on but previously it would have polluted the prototype.

@graphql-tools/[email protected]

Minor Changes

  • #444 b52c9ba Thanks @ardatan! - Now SupergraphSchemaManager can be used in ApolloServer as gateway;

    import { ApolloServer } from '@apollo/server';
    import { SupergraphSchemaManager } from '@graphql-tools/federation';
    
    const gateway = new SupergraphSchemaManager();
    const apolloServer = new ApolloServer({
      gateway,
    });

    And with the new onStitchedSchema option, you can manipulate the executable schema created from the supergraph.
    The following example demonstrates how to use onStitchedSchema with applyMiddleware from graphql-middleware:

    import { SupergraphSchemaManager } from '@graphql-tools/federation';
    import { applyMiddleware } from 'graphql-middleware';
    
    const logInput = async (resolve, root, args, context, info) => {
      console.log(`1. logInput: ${JSON.stringify(args)}`);
      const result = await resolve(root, args, context, info);
      console.log(`5. logInput`);
      return result;
    };
    
    const logResult = async (resolve, root, args, context, info) => {
      console.log(`2. logResult`);
      const result = await resolve(root, args, context, info);
      console.log(`4. logResult: ${JSON.stringify(result)}`);
      return result;
    };
    
    const gateway = new SupergraphSchemaManager({
      onStitchedSchema: async (schema) => {
        // Manipulate the schema
        return applyMiddleware(schema, logInput, logResult);
      },
    });

Patch Changes

@graphql-mesh/[email protected]

Patch Changes

@graphql-hive/[email protected]

Patch Changes

@graphql-mesh/[email protected]

Patch Changes

@graphql-mesh/[email protected]

Patch Changes

@graphql-hive/[email protected]

Patch Changes

Read more

[email protected]

29 Jan 15:43
f695984
Compare
Choose a tag to compare

Pre-built binaries of the Hive Gateway for the @graphql-hive/[email protected] release.