Netflix / dgs-federation-example

Apache License 2.0
108 stars 43 forks source link

Bump @apollo/gateway from 2.0.4 to 2.4.1 in /apollo-gateway #299

Closed dependabot[bot] closed 1 year ago

dependabot[bot] commented 1 year ago

Bumps @apollo/gateway from 2.0.4 to 2.4.1.

Release notes

Sourced from @​apollo/gateway's releases.

@​apollo/gateway@​2.4.1

Patch Changes

  • Fix issues (incorrectly rejected composition and/or subgraph errors) with @interfaceObject. Those issues may occur (#2494) either due to some use of @requires in an @interfaceObject type, or when some subgraph S defines a type that is an implementation of an interface I in the supergraph, and there is an @interfaceObject for I in another subgraph, but S does not itself defines I.

  • Fix handling of aliases and variables in introspection queries. (#2506)

  • Start building packages with TS 5.x, which should have no effect on consumers (#2480)

  • Improves reuse of named fragments in subgraph fetches. When a question has named fragments, the code tries to reuse (#2497) those fragment in subgraph fetches is those can apply (so when the fragment is fully queried in a single subgraph fetch). However, the existing was only able to reuse those fragment in a small subset of cases. This change makes it much more likely that if a fragment can be reused, it will be.

  • Updated dependencies [450b9578, afde3158, eafebc3c, 01fe3f83]:

    • @​apollo/query-planner@​2.4.1
    • @​apollo/federation-internals@​2.4.1
    • @​apollo/composition@​2.4.1

@​apollo/gateway@​2.4.0

Minor Changes

  • This change introduces a configurable query plan cache. This option allows (#2385) developers to provide their own query plan cache like so:

    new ApolloGateway({
      queryPlannerConfig: {
        cache: new MyCustomQueryPlanCache(),
      },
    });
    

    The current default implementation is effectively as follows:

    import { InMemoryLRUCache } from "@apollo/utils.keyvaluecache";
    

    const cache = new InMemoryLRUCache<string>({ maxSize: Math.pow(2, 20) * 30, sizeCalculation<T>(obj: T): number { return Buffer.byteLength(JSON.stringify(obj), "utf8"); }, });

    TypeScript users should implement the QueryPlanCache type which is now exported by @apollo/query-planner:

    import { QueryPlanCache } from '@apollo/query-planner';
    

... (truncated)

Changelog

Sourced from @​apollo/gateway's changelog.

2.4.1

Patch Changes

  • Fix issues (incorrectly rejected composition and/or subgraph errors) with @interfaceObject. Those issues may occur (#2494) either due to some use of @requires in an @interfaceObject type, or when some subgraph S defines a type that is an implementation of an interface I in the supergraph, and there is an @interfaceObject for I in another subgraph, but S does not itself defines I.

  • Fix handling of aliases and variables in introspection queries. (#2506)

  • Start building packages with TS 5.x, which should have no effect on consumers (#2480)

  • Improves reuse of named fragments in subgraph fetches. When a question has named fragments, the code tries to reuse (#2497) those fragment in subgraph fetches is those can apply (so when the fragment is fully queried in a single subgraph fetch). However, the existing was only able to reuse those fragment in a small subset of cases. This change makes it much more likely that if a fragment can be reused, it will be.

  • Updated dependencies [450b9578, afde3158, eafebc3c, 01fe3f83]:

    • @​apollo/query-planner@​2.4.1
    • @​apollo/federation-internals@​2.4.1
    • @​apollo/composition@​2.4.1

2.4.0

Minor Changes

  • This change introduces a configurable query plan cache. This option allows (#2385) developers to provide their own query plan cache like so:

    new ApolloGateway({
      queryPlannerConfig: {
        cache: new MyCustomQueryPlanCache(),
      },
    });
    

    The current default implementation is effectively as follows:

    import { InMemoryLRUCache } from "@apollo/utils.keyvaluecache";
    

    const cache = new InMemoryLRUCache<string>({ maxSize: Math.pow(2, 20) * 30, sizeCalculation<T>(obj: T): number { return Buffer.byteLength(JSON.stringify(obj), "utf8"); }, });

... (truncated)

Commits


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
dependabot[bot] commented 1 year ago

Superseded by #307.