@theguild/federation-composition
0.27.2 · 19 Nov 2026MIT2M / weekRepositoryHomepagenpmAtom feed
0.27.2 is the newest release of 0.21.x.
In short
2 new1 fixed
Release note
Minor Changes
Enforce correct placement of auth directives. A new validation rule (
AUTH_REQUIREMENTS_APPLIED_ON_INTERFACE) rejects any attempt to put these directives on interfaces, interface fields or interface objects.Add transitive-auth requirements checking. A new rule verifies that any field using
@requiresspecifies at least the auth requirements of the fields it selects. If a field doesn't carry forward the@authenticated,@requiresScopesor@policyrequirements of its dependencies, composition fails with aMISSING_TRANSITIVE_AUTH_REQUIREMENTSerror.Propagate auth requirements through interface hierarchies. Interface types and fields now inherit
@authenticated,@requiresScopesand@policyfrom the object types that implement them.Disallowed using
@coston interfaces - you can no longer place@coston an interface type, its fields, or field arguments. Composition now fails with a clear error instead of accepting it silently.The
@listSizedirective now validates thatsizedFieldspoint to list fields, not integer counters (e.g., useedgesinstead ofcount).Added validation for
slicingArgumentsin@listSize. Only arguments that exist in all subgraphs are kept, invalid ones trigger an error.
Patch Changes
The
EXTERNAL_MISSING_ON_BASErule has been updated to handle@interfaceObjectcorner‑cases, like@externalfields on object types, but provided by interface objects, were triggering false positives.
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.