@graphql-tools/utils
13.2.2 · 10 Nov 2026MIT57M / weekRepositoryHomepagenpmAtom feed
11.2.2 is the newest release of 11.x.
In short
1 breaking
- Breaking
Support "federation/subgraph style" schemas in
astFromSchemaandprintSchemaWithDirectives
Security
2 advisories affect 11.0.0; 12.0.2 fixes them
- HighGraphQL Tools: Prototype pollution in mergeIncrementalResult via non-primitive path segmentsGHSA-c4qx-w738-7hr3 · 22 Oct 2026Fixed in 12.0.2
- HighGraphQL Tools has prototype pollution in well-established utility function `mergeDeep`GHSA-7mx3-vvmw-hjmv · 5 Oct 2026Fixed in 12.0.1
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 inastFromSchemaandprintSchemaWithDirectivesIf a
GraphQLSchemadoesn'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 withassumeValidoptions.// 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, previouslyextend schemawas converted toschema {}.
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.