Packages

@graphql-tools/utils

13.2.2 · 10 Nov 2026MIT57M / weekRepositoryHomepagenpmAtom feed

Your version

11.0.0

major7 Jan 2026Where it was published

11.2.2 is the newest release of 11.x.

In short

1 breaking

  • Breaking

    Support "federation/subgraph style" schemas in astFromSchema and printSchemaWithDirectives

Security

2 advisories affect 11.0.0; 12.0.2 fixes them

Release note

The section about @graphql-tools/utils of a note shared by several packages.

@graphql-tools/utils@11.0.0

Major Changes

  • Breaking

    #7685
    6f3776c
    Thanks @ardatan! - Support "federation/subgraph style" schemas in
    astFromSchema and printSchemaWithDirectives

    If a GraphQLSchema doesn't have any defined operation types, we should print the schema
    definition as an extension rather than omitting it entirely. They are not a valid schema on their
    own, but they are valid subgraph schemas in a federation setup, and it is possible to build such
    schemas with assumeValid options.

    // A schema without defined root types
    buildSchema(
      /* GraphQL */ `
        extend schema @link(url: "https://specs.apollo.dev/federation/v2.0", import: ["@key"])
    
        type User @key(fields: "id") {
          id: ID!
          username: String
        }
      `,
      { assumeValid: true, assumeValidSDL: true }
    )

    POTENTIAL BREAKING CHANGE: This can be a breaking change because now the schema above will be
    printed as the input, previously extend schema was converted to schema {}.

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.