Packages

@theguild/federation-composition

0.27.2 · 19 Nov 2026MIT2M / weekRepositoryHomepagenpmAtom feed

Your version

0.27.2

Latest19 Nov 2026Where it was published

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 @TaskStatus next to enum TaskStatus threw Expected TaskStatus to be an enum type instead 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 @inaccessible unless they were tagged themselves. Optional arguments silently disappeared from the contract schema, and required arguments failed composition with REQUIRED_INACCESSIBLE.

    An argument without its own @tag now inherits the tags of its field, matching the behavior of Apollo contracts. Arguments with their own @tag are 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.