Packages

@graphql-tools/stitch

10.4.4 · 12 Nov 2026MIT546k / weekRepositorynpmAtom feed

Your version

10.1.22

9 Jun 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.1.22

Patch Changes

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

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.