Skip to content

Releases: apollographql/federation

@apollo/[email protected]

10 Mar 21:20
01b9c31
Compare
Choose a tag to compare
Pre-release

Patch Changes

@apollo/[email protected]

10 Mar 20:22
3f2045f
Compare
Choose a tag to compare
Pre-release

Patch Changes

@apollo/[email protected]

10 Mar 21:20
01b9c31
Compare
Choose a tag to compare
Pre-release

Patch Changes

@apollo/[email protected]

10 Mar 20:22
3f2045f
Compare
Choose a tag to compare
Pre-release

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';
    
    class MyCustomQueryPlanCache implements QueryPlanCache {
      // ...
    }
    
  • Adds debug/testing query planner options (debug.bypassPlannerForSingleSubgraph) to bypass the query planning (#2441)
    process for federated supergraph having only a single subgraph. The option is disabled by default, is not recommended
    for production, and is not supported (it may be removed later). It is meant for debugging/testing purposes.

Patch Changes

  • Handle defaulted variables correctly during post-processing. (#2443)

    Users who tried to use built-in conditional directives (skip/include) with defaulted variables and no variable provided would encounter an error thrown by operation post-processing saying that the variables weren't provided. The defaulted values went unaccounted for, so the operation would validate but then fail an assertion while resolving the conditional.

    With this change, defaulted variable values are now collected and provided to post-processing (with defaults being overwritten by variables that are actually provided).

  • Updated dependencies [d4426ff9, a9385bdb, 6e2d24b5, 1a555d98, ade7ceb8]:

@apollo/[email protected]

10 Mar 21:20
01b9c31
Compare
Choose a tag to compare
Pre-release

Patch Changes

  • Revert #2293. Removing URL import causes a problem when running under deno. (#2451)

@apollo/[email protected]

10 Mar 20:22
3f2045f
Compare
Choose a tag to compare
Pre-release

Patch Changes

  • Handle defaulted variables correctly during post-processing. (#2443)

    Users who tried to use built-in conditional directives (skip/include) with defaulted variables and no variable provided would encounter an error thrown by operation post-processing saying that the variables weren't provided. The defaulted values went unaccounted for, so the operation would validate but then fail an assertion while resolving the conditional.

    With this change, defaulted variable values are now collected and provided to post-processing (with defaults being overwritten by variables that are actually provided).

  • Use globally available URL object instead of node builtin "url" module (#2293)

@apollo/[email protected]

10 Mar 21:20
01b9c31
Compare
Choose a tag to compare
Pre-release

Patch Changes

@apollo/[email protected]

10 Mar 20:22
3f2045f
Compare
Choose a tag to compare
Pre-release

Minor Changes

  • Addition of new query planner node types to enable federated subscriptions support (#2389)

Patch Changes

@apollo/[email protected]

07 Mar 17:28
8874706
Compare
Choose a tag to compare

Patch Changes

  • Correctly attach provided subscription resolvers to the schema object (#2388)

  • Updated dependencies []:

@apollo/[email protected]

07 Mar 17:28
8874706
Compare
Choose a tag to compare

Patch Changes