@graphql-tools/merge
10.0.6 · 22 Oct 2026MIT10.7M / weekRepositoryHomepagenpmAtom feed
137 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.
- 10.x · latest line
10.0.1 – 10.0.66 releases that only update dependencies@graphql-tools/utils 13.1.3Show each
- 10.0.622 Oct 2026@graphql-tools/utils 13.1.3
- 10.0.522 Oct 2026@graphql-tools/utils 13.1.2
- 10.0.420 Oct 2026@graphql-tools/utils 13.1.1
- 10.0.320 Oct 2026@graphql-tools/utils 13.1.0
- 10.0.219 Oct 2026@graphql-tools/utils 13.0.2
- 10.0.119 Oct 2026@graphql-tools/utils 13.0.1
10.0.0
19 Oct 2026- breaking
Drop GraphQL v14/v15 support and require Node.js >= 22.18.
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.
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/utilsexportsRemoved Use instead getArgumentValuesimport { getArgumentValues } from 'graphql'coerceInputs/graphqlJSCompatgraphql@16+ APIs ( getArgumentValues, etc.)createDeferred/createDeferredPromiseconst { promise, resolve, reject } = Promise.withResolvers()createGraphQLErrornew GraphQLError(message, options)fromgraphqlmapMaybePromisehandleMaybePromisefrom@whatwg-node/promise-helpersisPromise/fakePromise/mapAsyncIterator/MaybePromise@whatwg-node/promise-helpersregisterAbortSignalListener/getAbortPromiseAbortSignalAPIs (throwIfAborted,addEventListener('abort', …, { once: true }),AbortSignal.any, …)withCancel/getAsyncIterableWithCancel/getAsyncIteratorWithCancelHandle cancellation on the async iterator’s return()(or your transport abort path)debugTimerStart/debugTimerEndYour own timing / console.timeif neededPromiseWithResolvers(type)Built-in PromiseWithResolvers<T>/ return type ofPromise.withResolvers()inspectand the WeakMapmemoize1…memoize2of5helpers remain on@graphql-tools/utils(inspect is no longer re-exported fromcross-inspect).File matching (
globby→fs.glob)Loaders and
@graphql-tools/load-filesnow use Node’sfs.globthrough: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/executorhot-path caches (collectSubfields, argument coercion,@streamdetection) usememoize2/memoize3from utils.collectSubFieldsin 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)
- 9.x
9.2.8
15 Oct 2026dependencies updates:
Fix: Preserve symbol-keyed GraphQL extensions when building, merging, or extracting schemas.
GraphQL.js v17 allows
string | symbolkeys on schema/type/fieldextensions(viatoObjMapWithSymbols).@graphql-toolswas dropping those symbol keys in two places:
Patch Changes
dependencies updates:
Updated dependency
@graphql-tools/utils@^12.0.4↗︎ (from^12.0.3, independencies)
Fix: Preserve symbol-keyed GraphQL extensions when building, merging, or extracting schemas.
GraphQL.js v17 allows
string | symbolkeys on schema/type/fieldextensions(viatoObjMapWithSymbols).@graphql-toolswas dropping those symbol keys in two places:mergeDeeponly walked enumerable string keys (for...in), so symbol extensions were lost when applyingschemaExtensions.extractExtensionsFromSchemadid not copy non-enumerable own symbol keys (enumerable symbols already survive object rest/spread; the explicit loop covers the non-enumerable case).
Example (bug)
import { makeExecutableSchema } from '@graphql-tools/schema' const META = Symbol('META') const schema = makeExecutableSchema({ typeDefs: /* GraphQL */ ` type Query { hello: String } `, schemaExtensions: { schemaExtensions: { [META]: { source: 'app' }, tagged: true, }, types: {}, }, }) // Before: only string keys survived // schema.extensions === { tagged: true } // After: symbol keys are preserved // schema.extensions[META] === { source: 'app' } // schema.extensions.tagged === trueSchema extension merge/extract and resolver merging always enable
{ enumerable: true, nonEnumerable: true }so symbol keys survive in tools' own merge/extract paths on every supported GraphQL.js major. (GraphQL.js itself may still drop symbol keys from field configs below v17 when rebuilding types.)mergeDeepAPImergeDeepnow accepts an options object. The old positional boolean arguments still work but are deprecated.import { mergeDeep } from '@graphql-tools/utils' // Deprecated (still supported) mergeDeep([a, b], false, true, false, true) // ^proto ^arrays ^len ^non-enumerable symbols only // Preferred mergeDeep([a, b], { respectPrototype: false, respectArrays: true, respectArrayLength: false, respectSymbols: { enumerable: true, // merge `obj[sym] = value` keys nonEnumerable: true, // copy defineProperty(..., { enumerable: false }) symbols }, })respectSymbolsdefaults to{ enumerable: false, nonEnumerable: false }(symbols dropped), matching the historical default. The legacy 5th positional flag still maps to{ nonEnumerable: true }only.Resolver map types (
IResolvers/ field resolverextensionsand type__extensions) now useExtensionsObject(Record<string | symbol, any>), so symbol-keyed resolver extensions type-check under GraphQL.js v17+.9.2.6 – 9.2.72 releases that only update dependencies@graphql-tools/utils 12.0.4Show each
- 9.2.712 Oct 2026@graphql-tools/utils 12.0.4
- 9.2.630 Sep 2026@graphql-tools/utils 12.0.3
9.2.5
30 Sep 2026- security
Fix prototype pollution in
mergeIncrementalResultPath segments are now rejected unless they are primitive strings or numbers, and keys named
__proto__,constructororprototypeare still blocked. Previously a non-primitive segment such as["__proto__"]bypassed the string equality guard and was coerced into a write onObject.prototype.Also exports shared
isSafeObjectKey/isDangerousObjectKeyhelpers used by this path walker and other package call sites.@graphql-tools/mergeand@graphql-tools/mockare patched so they ship with the new imports;updateInternalDependenciesraises their utils floor when12.0.2is versioned.
Patch Changes
- security
Fix prototype pollution in
mergeIncrementalResultPath segments are now rejected unless they are primitive strings or numbers, and keys named
__proto__,constructororprototypeare still blocked. Previously a non-primitive segment such as["__proto__"]bypassed the string equality guard and was coerced into a write onObject.prototype.Also exports shared
isSafeObjectKey/isDangerousObjectKeyhelpers used by this path walker and other package call sites.@graphql-tools/mergeand@graphql-tools/mockare patched so they ship with the new imports;updateInternalDependenciesraises their utils floor when12.0.2is versioned.
9.2.4
7 Sep 2026Preserve multiple applications of the same directive when extending a type even if the repeatable directive definition is not present in the merge inputs.
Write the synthesized default operation types back onto the schema definition node, so merging a
schemaextension that has no operation block (federation SDL, for example) still produces a query root ongraphql@17.
Patch Changes
Preserve multiple applications of the same directive when extending a type even if the repeatable directive definition is not present in the merge inputs.
Write the synthesized default operation types back onto the schema definition node, so merging a
schemaextension that has no operation block (federation SDL, for example) still produces a query root ongraphql@17.
9.2.3
12 Aug 20269.2.2
17 Jul 2026Reading the note…
9.2.1
17 Jul 2026Reading the note…
9.2.0
8 Jul 2026Reading the note…
9.1.11
6 Jul 2026Reading the note…
9.1.10
28 Jun 2026Reading the note…
9.1.9
23 Apr 2026Reading the note…
9.1.8
9 Apr 2026Reading the note…
9.1.7
7 Jan 2026Reading the note…
9.1.6
28 Nov 2025Reading the note…
9.1.5
12 Nov 2025Reading the note…
9.1.4
11 Nov 2025Reading the note…
9.1.3
4 Nov 2025Reading the note…
9.1.2
30 Oct 2025Reading the note…
9.1.1
21 Jul 2025Reading the note…
9.1.0
17 Jul 2025Reading the note…
9.0.24
13 Mar 2025Reading the note…
9.0.23
13 Mar 2025Reading the note…
9.0.22
3 Mar 2025Reading the note…
9.0.21
25 Feb 2025Reading the note…
9.0.20
21 Feb 2025Reading the note…
9.0.19
10 Feb 2025Reading the note…
9.0.18
10 Feb 2025Reading the note…
9.0.17
6 Jan 2025Reading the note…
9.0.16
2 Jan 2025Reading the note…
9.0.15
24 Dec 2024Reading the note…
9.0.14
14 Dec 2024Reading the note…
9.0.13
13 Dec 2024Reading the note…
9.0.12
4 Dec 2024Reading the note…
9.0.11
27 Nov 2024Reading the note…
9.0.10
22 Nov 2024Reading the note…
9.0.9
13 Nov 2024Reading the note…
9.0.8
15 Oct 2024Reading the note…
9.0.7
29 Aug 2024Reading the note…
9.0.6
16 Aug 2024Reading the note…
9.0.5
11 Aug 2024Reading the note…
9.0.4
30 Apr 2024Reading the note…
9.0.3
23 Feb 2024Reading the note…