Packages

@graphql-tools/stitch

10.4.4 · 12 Nov 2026MIT546k / weekRepositorynpmAtom feed

Your version

10.3.1

28 Sep 2026Where it was published

10.4.4 is the newest release of 10.x.

In short

1 fixed

Release note

The section about @graphql-tools/stitch of a note shared by several packages.

@graphql-tools/stitch@10.3.1

Patch Changes

  • 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.

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.