Packages

@graphql-tools/stitch

10.4.4 · 12 Nov 2026MIT546k / weekRepositorynpmAtom feed

Your version

243 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.

  1. 10.x · latest line
  2. 10.4.3

    9 Nov 2026
    • Dependencies updates:

  3. 10.4.1 – 10.4.22 releases that only update dependencies@graphql-tools/delegate 12.3.2@graphql-tools/batch-delegate 10.1.4@graphql-tools/wrap 11.2.4Show each
  4. 10.4.0

    23 Oct 2026

    Summary· from the note as AI read it

    Nothing to change: 1 new, 3 fixed.

  5. 10.3.1

    28 Sep 2026
    • stitchSchemas no longer mutates the resolver objects passed in resolvers.

      The wrapper it adds around resolvers of fields that return a merged type (so the merged type's fields get resolved) used to be written back into the caller's field config (existing.resolve = wrappedResolve). A resolver map reused across stitchSchemas calls — a gateway's additional resolvers on every supergraph reload — therefore gained one wrapper per call, and every wrapper kept its call's stitchingInfo, and with it the entire superseded schema, subschemas and executors, reachable: a heap leak of one schema generation per reload.

      Nesting also changed behaviour, because wrappedResolve closes over its own call's stitchingInfo and the innermost (oldest) wrapper runs first: such a field hydrated through a superseded call's stitching plan and executors, and once that hydration satisfied the selection the newest wrapper found nothing left to resolve.

      The merged resolver map is now cloned before the wrappers are added. Enum value maps, scalars, union and input type resolvers and plain resolver functions are still passed through by reference, so their identities are unchanged.

  6. 10.3.0

    8 Sep 2026
    • Support GraphQL 16 with @graphql-tools/utils v12

      Preserves GraphQL 16 compatibility while upgrading to @graphql-tools/utils v12, @graphql-tools/executor v2, and the compatible @graphql-tools/schema and @graphql-tools/merge releases. Consumers now receive consistent resolver and execution request types without conflicts between different GraphQL Tools versions.

      Stitched and delegated operations handle the new executor variable result shape correctly, including variables used by directives. Resolver execution also supports the executor's cancellation and asynchronous work helpers while remaining compatible with the GraphQL 16 GraphQLResolveInfo API.

    • Dependencies updates:

  7. 10.2.4

    3 Sep 2026
    • Flush deferred merged fields without blocking the initial payload

      Deferred fields on merged entity types are now delegated when their deferred resolvers run instead of being included in the initial delegation plan. This allows the initial payload to be delivered before slower merged subgraph fields resolve.

  8. 10.2.2 – 10.2.32 releases that only update dependencies@graphql-tools/delegate 12.1.2@graphql-tools/batch-delegate 10.0.30@graphql-tools/wrap 11.1.22Show each
  9. 10.2.1

    23 Jul 2026
    • Reduce peak memory consumption for stitchSchemas function

  10. 10.2.0

    20 Jul 2026
    • Automatically resolve plain merged-type references returned by local stitching resolvers

      Local fields introduced through typeDefs or resolvers are wrapped by stitchSchemas. When they return a partial merged type containing a usable key, stitching performs one initial delegation with type merging enabled. The existing stitching planner then handles computed fields, @requires dependencies, batching, nested entities, and fields owned by other subschemas.

    • Fields that are not provided by any subschema (added through typeDefs or resolvers) can now return partial objects of merged types; the missing fields are resolved from the owning subschema automatically

      type Query {
        personCreated: PersonCreated
      }
      
      type PersonCreated {
        person: Person # merged type, owned by a subschema
        cursor: String
      }
      const resolvers = {
        Query: {
          // only the key of `Person` is provided locally
          personCreated: () => ({ person: { id: '1' }, cursor: 'c1' }),
        },
      };

      Before, person had to be resolved manually even though the stitched schema knows Person and its keys. Now the key is enough: { person { name } } runs through the standard stitching planner, while local data (cursor) and local field resolvers on Person keep working as before. Computed fields, @requires dependencies, batching, and fields from other subschemas use the same type-merging flow as regular delegated results.

  11. 10.1.24

    13 Jul 2026
    • Fix @provides so the gateway only requests the provided fields the client actually selected, and stops delegating to the owner subgraph when @provides already covers the request.

      Previously, when a subgraph declared @provides(fields: "...") on a field, the gateway would still:

      For example with:

      # subgraph B (provider)
      type Query {
        entity: Entity @provides(fields: "name description")
      }
      
      type Entity @key(fields: "id") {
        id: ID!
        name: String! @external
        description: String! @external
      }

      a client query of { entity { id name } } would still cause the gateway to ask subgraph B for description and fetch name again from subgraph A (the owner of Entity).

      After this fix:

      Aliases, direct field selections, fragments, fragment spreads, @include/@skip directives wrapping a @provides field, and nested @provides selections are preserved without unnecessary owner delegations.

  12. 10.1.22

    9 Jun 2026
    • Fix mergeDirectives option and default it to true

      Custom directive definitions from subschemas were silently dropped from the stitched schema unless mergeDirectives: true was explicitly passed to stitchSchemas. This meant a schema like:

      directive @public on SCHEMA | OBJECT | FIELD_DEFINITION
      
      type Query @public {
        isAnExample: Boolean @public
      }

      would stitch into a broken schema where @public was used on types and fields but never defined.

      The default is now true, so directive definitions are always collected and retained in the stitched schema, this is the expected behaviour since the merging was partial before this fix (usages got merged, but definitions not).

      Passing mergeDirectives: false now produces a fully clean result - both directive definitions and all their usages on types, fields, input fields, and enum values are stripped.

  13. 10.1.14 – 10.1.218 releases that only update dependencies@graphql-tools/batch-delegate 10.0.24@graphql-tools/delegate 12.0.17@graphql-tools/wrap 11.1.16Show each
  14. 10.1.13

    10 Mar 2026
    • Fix redundant extra calls to the same subschema in case of @canonical annotation

  15. 10.1.11 – 10.1.122 releases that only update dependencies@graphql-tools/delegate 12.0.8@graphql-tools/batch-delegate 10.0.14@graphql-tools/wrap 11.1.8Show each
  16. 10.1.10

    4 Feb 2026
    • Handle the type merging order correctly with custom labels and percentage labels for progressive override

  17. 10.1.8

    8 Jan 2026
    • Dependencies updates:

  18. 10.1.5 – 10.1.73 releases that only update dependencies@graphql-tools/delegate 12.0.3@graphql-tools/batch-delegate 10.0.9@graphql-tools/wrap 11.1.3Show each
  19. 10.1.4

    1 Dec 2025
    • Ensure key fields propagate correctly for interface/object combinations

    • Avoid extra __typename in the root selection

      query {
      - __typename
        hello
      }
  20. 10.1.3

    19 Nov 2025
    • Dependencies updates:

  21. 10.1.2

    7 Nov 2025
    • Dependencies updates:

    • Dependencies updates:

    • Dependencies updates:

  22. 10.1.1

    1 Nov 2025
    • Dependencies updates:

    • Fix Progressive Override to prevent caching on different variations of override

  23. 10.1.0

    27 Oct 2025
    • Progressive Override for Safer Field Migrations

      Introduces Progressive Override, allowing you to safely migrate fields between subgraphs using the @override directive with a label. Control the rollout using custom logic in the gateway (e.g., percentage, headers) or the built-in percent(x) label for gradual, incremental traffic migration.

      Detailed documentation can be found here.

  24. 10.0.2

    23 Sep 2025
    • Normalize the subschemas with root types in a custom names like query_root instead of Query, then stitch them

      schema {
          query: query_root
          subscription: subscription_root
      }
      
      type Post {
          id: ID!
          text: String
          userId: ID!
      }
      
      type query_root {
          postById(id: ID!): Post
      }
      
      type subscription_root {
          postsByUserId(userId: ID!): [Post]!
      }

      and

      type User {
          id: ID!
          email: String
      }
      
      type Query {
          userById(id: ID!): User
      }

      should be stitched as;

      type Query {
        postById(id: ID!): Post
        userById(id: ID!): User
      }
      
      type Subscription {
        postsByUserId(userId: ID!): [Post]!
      }
      
      type Post {
        id: ID!
        text: String
        userId: ID!
      }
      
      type User {
        id: ID!
        email: String
      }
  25. 10.0.1

    15 Sep 2025
    • Dependencies updates:

  26. 10.0.0

    4 Sep 2025
    • Breaking

      Drop Node 18 support

      Least supported Node version is now v20.

  27. 9.x
  28. 9.4.29

    3 Sep 2025

    Reading the note…

  29. 9.4.28

    1 Aug 2025

    Reading the note…

  30. 9.4.27

    23 Jul 2025

    Reading the note…

  31. 9.4.26

    7 Jul 2025

    Reading the note…

  32. 9.4.25

    26 Jun 2025

    Reading the note…

  33. 9.4.24

    2 Jun 2025

    Reading the note…

  34. 9.4.23

    16 May 2025

    Reading the note…

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.