@theguild/federation-composition
0.27.2 · 19 Nov 2026MIT2M / weekRepositoryHomepagenpmAtom feed
In short
2 fixed
Release note
Patch Changes
Fix a crash when a directive shares its name with a type. Directives and types live in separate namespaces in GraphQL, but subgraph state kept both in a single map, so
directive @TaskStatusnext toenum TaskStatusthrewExpected TaskStatus to be an enum typeinstead of composing.Keep untagged arguments of included fields in schema contracts.
Previously, when a contract used an include filter, arguments of an included field were marked
@inaccessibleunless they were tagged themselves. Optional arguments silently disappeared from the contract schema, and required arguments failed composition withREQUIRED_INACCESSIBLE.An argument without its own
@tagnow inherits the tags of its field, matching the behavior of Apollo contracts. Arguments with their own@tagare still filtered by their own tags.type Query { user(id: ID!): User @tag(name: "public") users(first: Int): [User] @tag(name: "public") }With
include: ["public"], the contract schema now composes and contains:type Query { user(id: ID!): User users(first: Int): [User] }
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.