@graphql-tools/utils
13.2.2 · 10 Nov 2026MIT57M / weekRepositoryHomepagenpmAtom feed
12.1.0 is the newest release of 12.x.
In short
2 breaking5 changed
- Breaking
@graphql-tools/executor'sgetVariableValuesnow returns{ variableValues }on success, wherevariableValuesis aVariableValuesobject ({ coerced, sources }). On failure, it returns{ errors }. - Breaking
collectFields,shouldIncludeNode,getDeferValues, andcollectSubFieldsnow need aVariableValuesobject instead ofRecord<string, any>for thevariableValuesargument.
Security
2 advisories affect 12.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.
Major Changes
- Breaking
#8346
2273c21
Thanks @ardatan! - This release adds GraphQL v17 support and aligns
the existing executor implementation with the latest GraphQL v17 API changes. The following
changes are included:getAsyncHelpersis now available onGraphQLResolveInfo. Itstrackmethod is used wheneverwaitUntilis available, as in Yoga's
Explicit Resource ManagementgetAbortSignalis now available onGraphQLResolveInfo, matching behavior that was already
available in this executor implementation, as in Yoga's
Execution CancellationGraphQLResolveInfoautomatically alignsvariableValuesaccording to the GraphQL version for
better compatibility. In GraphQL v17 and above,variableValuesfollows the wrapped shape
({ coerced, sources }) expected by GraphQL APIs. In GraphQL v16 and below,variableValues
remains a flat map as in previous versions.If your custom scalar resolvers define
__serializeand__parseValue, they are automatically
mapped tocoerceOutputValueandcoerceInputValuein GraphQL v17.BREAKING:
@graphql-tools/executor'sgetVariableValuesnow returns{ variableValues }
on success, wherevariableValuesis aVariableValuesobject ({ coerced, sources }). On
failure, it returns{ errors }.BREAKING:
collectFields,shouldIncludeNode,getDeferValues, andcollectSubFieldsnow
need aVariableValuesobject instead ofRecord<string, any>for thevariableValues
argument.visitResultnow internally normalizesExecutionRequest.variablesinto aVariableValues-compatible shape ({ coerced, sources }) before traversing selections.
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.