@graphql-tools/utils
13.2.2 · 10 Nov 2026MIT57M / weekRepositoryHomepagenpmAtom feed
Upgrading @graphql-tools/utils From 12.0.0 to 13.2.2
15 releases in betweenevery note read
Reading releases, release notes and advisories…
Before you upgrade
Tick each one off as you go- Breaking13.0.0
Security
Fixes 2 advisories affecting 12.0.0
- GraphQL Tools has prototype pollution in well-established utility function `mergeDeep`high · GHSA-7mx3-vvmw-hjmv
- GraphQL Tools: Prototype pollution in mergeIncrementalResult via non-primitive path segmentshigh · GHSA-c4qx-w738-7hr3
- 12.0.2
Fix prototype pollution in
mergeIncrementalResult - 12.0.1
Fix prototype pollution in
mergeDeep
Release by release
- Fixed
Print argument and input field defaults configured with the deprecated
defaultValueon graphql 17.
- Fixed
- Fixed
Cache
collectFields/collectSubfieldsacross executions when the document has no variable-conditional@skip,@include, or@defer, sovariableValuesare omitted from the cache key for those documents.
- Fixed
- New
loadDocuments/loadTypedefsnow accepterrorHandlingso a single invalid file does not have to hide the rest of the load. - Fixed
rewireTypes(used bymapSchemaandaddTypes) now recreates only the types that actually reference a replaced type. - Fixed
transformInputValuenow keeps falsy list items when GraphQL coerces a singleton into a list.
- New
- Fixed
mapSchemanow remaps directive argument defaults the same way it already remaps field argument defaults. - Fixed
Published
Executortypes include/// <reference lib="esnext.disposable" preserve="true" />so consumers do not needskipLibCheckor a fullesnextlib just to import this package.
- Fixed
- Fixed
printSchemaWithDirectivesno longer turns unquoted directive argument literals into strings.
- Fixed
- Fixed
INCREMENTAL_DELIVERY_SPECSis the shared HTTP contract forincrementalSpec. Each row maps an Accept / Content-Type parameter (deferSpec=20220824,incrementalSpec=v0.2, ...) to the executor payload id ('v0.1'|'v0.2').
- Fixed
- New
@graphql-tools/executorcan publish both incremental delivery payload formats from one execution kernel. PassincrementalSpec: 'v0.1' | 'v0.2'onexecute/subscribe/normalizedExecutor(also onExecutionRequestforexecutorFromSchema).'v0.1'remains the default and keeps the existingpath/labelpatches used withmultipart/mixed;deferSpec=20220824.'v0.2'emits Apollo incremental v0.2 payloads (pendingwithidandpath,incrementalwithidand optionalsubPath,completed) used withmultipart/mixed;incrementalSpec=v0.2.
- New
- New
Add
asGetArgumentValuesVariablesandcoerceGetVariableValuesResulthelpers for GraphQL 16/17VariableValuescompatibility when callinggetArgumentValues/ normalizinggetVariableValuesresults for helpers likeshouldIncludeNode.
- New
6 other lines we could not sort, mostly version bumps
- 13.0.0
On Node.js ≥26.1 (and ≥24.16 where backported),
fs.globfollowSymlinksis used. - 13.0.0
On older engines, symlink directories are discovered only under each pattern’s literal prefix (not the whole
cwd) and patterns are re-rooted. - 13.0.0
Non-recursive / literal patterns skip the symlink walk entirely.
- 13.0.0
Prefer
new GraphQLError(message, options)fromgraphql. Experimental schemacoordinatesupport remains onlocatedError/relocatedError/getSchemaCoordinate. - 13.0.0
Removed GraphQL versions older than 16 compatibility branches (error construction, validation rule name suffixes,
URL.canParsefallback). - 13.0.0
Promise helpers should be imported from
@whatwg-node/promise-helpers(handleMaybePromise,isPromise,fakePromise,mapAsyncIterator,MaybePromise) rather than re-exported from utils.
5 internal lines (docs, tests, tooling) left out.
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.