@graphql-tools/utils
13.2.2 · 10 Nov 2026MIT57M / weekRepositoryHomepagenpmAtom feed
Upgrading @graphql-tools/utils From 10.8.4 to 12.0.1
18 releases in betweenevery note read
Reading releases, release notes and advisories…
Before you upgrade
Tick each one off as you go- Breaking12.0.0
- Breaking12.0.0
- Breaking11.0.0
Security
1 advisory still affects 12.0.1
- GraphQL Tools: Prototype pollution in mergeIncrementalResult via non-primitive path segmentshigh · GHSA-c4qx-w738-7hr3
Upgrading to 12.0.2 clears it.
Fixes 1 advisory affecting 10.8.4
- GraphQL Tools has prototype pollution in well-established utility function `mergeDeep`high · GHSA-7mx3-vvmw-hjmv
- 12.0.1
Fix prototype pollution in
mergeDeep
Release by release
- Security
Fix prototype pollution in
mergeDeep - New
Allow
%in paths checked byisValidPath(e.g. directories from URL-encoded repo names). - Fixed
Omit mutation/subscription from
printSchemaWithDirectiveswhen those root types are no longer present on the schema (e.g. afterpruneSchema). - Fixed
Clean up
observableToAsyncIterablequeues and unsubscribe when the observable completes, so iterators do not retain references afterdone. Fixes leak detection flakes related to #8057. - Fixed
Prefer runtime
descriptionvalues over staleastNodedescriptions inprintSchemaWithDirectives/getDescriptionNode. Fixes #5508.
- Security
- 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.
- Breaking
- Fixed
Fix mergeDeep to treat explicit undefined property values as overrides rather than skipping them, distinct from an absent property
- Fixed
- Fixed
Fix mergeDeep to treat null property values as explicit overrides rather than skipping them
- Fixed
- New
getDocumentNodeFromSchema: Add arg defaultValue support for graphql@17
- New
- Fixed
Fix
mergeDeepreturningundefinedinstead of{}when merging two or more empty objects.
- Fixed
- New
Deep merge and preserve non-enumerable symbols
- New
- Fixed
Handle enum values correctly if they are arguments of directives defined in the extensions
- Fixed
5 other lines we could not sort, mostly version bumps
- 12.0.0
getAsyncHelpersis now available onGraphQLResolveInfo. Itstrackmethod is used wheneverwaitUntilis available, as in Yoga's Explicit Resource Management - 12.0.0
getAbortSignalis now available onGraphQLResolveInfo, matching behavior that was already available in this executor implementation, as in Yoga's Execution Cancellation - 12.0.0
GraphQLResolveInfoautomatically 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,variableValuesremains a flat map as in previous versions. - 12.0.0
If your custom scalar resolvers define
__serializeand__parseValue, they are automatically mapped tocoerceOutputValueandcoerceInputValuein GraphQL v17. - 12.0.0
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.