@graphql-tools/stitch
10.4.4 · 12 Nov 2026MIT546k / weekRepositorynpmAtom feed
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
mergeDirectivesoption and default it totrueCustom directive definitions from subschemas were silently dropped from the stitched schema unless
mergeDirectives: truewas explicitly passed tostitchSchemas. 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
@publicwas 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: falsenow 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.