@graphql-tools/stitching-directives
4.1.7 · 20 Nov 2026MIT251.1k / weekRepositorynpmAtom feed
2.3.34 is the newest release of 2.x.
In short
1 breaking1 new1 internal
- Breaking
getDirectives: Preserve order around repeatable directives
Release note
The section about @graphql-tools/stitching-directives of a note shared by several packages.
Major Changes
- Breaking
getDirectives: Preserve order around repeatable directives
BREAKING CHANGE: getDirectives now always return an array of individual DirectiveAnnotation
objects consisting ofnameandargsproperties.New useful function
getDirectivereturns an array of objects representing any args for each use
of a single directive (returning the empty object{}when a directive is used without
arguments).Note: The
getDirectivefunction returns an array even when the specified directive is
non-repeatable. This is because one use of this function is to throw an error if more than one
directive annotation is used for a non repeatable directive!When specifying directives in extensions, one can use either the old or new format.
Minor Changes
stitching-directives: Move federation-to-stitching-sdl
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.