@graphql-tools/merge
10.0.9 · 10 Nov 2026MIT26.8M / weekRepositoryHomepagenpmAtom feed
10.0.9 is the newest release of 10.x.
In short
1 breaking6 changed2 internal
- Breaking
Drop GraphQL v14/v15 support and require Node.js >= 22.18.
Release note
The section about @graphql-tools/merge of a note shared by several packages.
Major Changes
- Breaking
Drop GraphQL v14/v15 support and require Node.js >= 22.18.
graphqlpeer range is now^16.0.0 || ^17.0.0.engines.nodeis now>=22.18.0(Nodefs.glob+ Babel 8).Dev tooling and
@graphql-tools/graphql-tag-pluckmove to Babel 8 (@babel/core/ parser / traverse / types).The standalone
cross-inspectpackage is discontinued. Useinspectfrom@graphql-tools/utilsinstead (Nodeutil.inspectviaprocess.getBuiltinModule, with a smallJSON.stringify/Stringfallback).
Removed @graphql-tools/utils exports
| Removed | Use instead |
|---|---|
getArgumentValues | import { getArgumentValues } from 'graphql' |
coerceInputs / graphqlJSCompat | graphql@16+ APIs (getArgumentValues, etc.) |
createDeferred / createDeferredPromise | const { promise, resolve, reject } = Promise.withResolvers() |
createGraphQLError | new GraphQLError(message, options) from graphql |
mapMaybePromise | handleMaybePromise from @whatwg-node/promise-helpers |
isPromise / fakePromise / mapAsyncIterator / MaybePromise | @whatwg-node/promise-helpers |
registerAbortSignalListener / getAbortPromise | AbortSignal APIs (throwIfAborted, addEventListener('abort', …, { once: true }), AbortSignal.any, …) |
withCancel / getAsyncIterableWithCancel / getAsyncIteratorWithCancel | Handle cancellation on the async iterator’s return() (or your transport abort path) |
debugTimerStart / debugTimerEnd | Your own timing / console.time if needed |
PromiseWithResolvers (type) | Built-in PromiseWithResolvers<T> / return type of Promise.withResolvers() |
inspect and the WeakMap memoize1…memoize2of5 helpers remain on @graphql-tools/utils (inspect is no longer re-exported from cross-inspect).
File matching (globby → fs.glob)
Loaders and @graphql-tools/load-files now use Node’s fs.glob through:
import { matchFiles, matchFilesSync } from '@graphql-tools/load-files'; Directory symlinks are followed for recursive (**) patterns:
On Node.js ≥26.1 (and ≥24.16 where backported),
fs.globfollowSymlinksis used.On older engines, symlink directories are discovered only under each pattern’s literal prefix (not the whole
cwd) and patterns are re-rooted.Non-recursive / literal patterns skip the symlink walk entirely.
@graphql-tools/executor hot-path caches (collectSubfields, argument coercion, @stream detection) use memoize2 / memoize3 from utils. collectSubFields in utils stays unmemoized so the executor can own a single memoize3 layer.
Errors and other cleanup
Prefer
new GraphQLError(message, options)fromgraphql. Experimental schemacoordinatesupport remains onlocatedError/relocatedError/getSchemaCoordinate.Removed GraphQL versions older than 16 compatibility branches (error construction, validation rule name suffixes,
URL.canParsefallback).Promise helpers should be imported from
@whatwg-node/promise-helpers(handleMaybePromise,isPromise,fakePromise,mapAsyncIterator,MaybePromise) rather than re-exported from utils.
Patch Changes
Dependencies updates:
Updated dependency
graphql@^16.0.0 || ^17.0.0↗︎ (from^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0, inpeerDependencies)
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.