NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm, #2982 most downloaded on npm
Pluck graphql-tag template literals
Latest stable
9.0.10
Last release 12 days ago
10 Nov 2026
Ships fairly regularly
a new release about every 9 days
Nearly every release is documented
notes for 60 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
7 years old
1984 releases · first in 2020
Drag across the ruler to compare, or tap a release to open it.
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Nothing published for this version
Updated dependencies [`f87bdf4`]:
f87bdf4]:
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
@graphql-tools/module-loader@9.0.4
@graphql-tools/module-loader@9.0.4
4db5750]:
Updated dependencies [`34b740b`]:
34b740b]:
Nothing published for this version
Nothing published for this version
Nothing published for this version
Updated dependencies [`15efe55`]:
15efe55]:
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
### Patch Changes - #8537 `d4268db` Thanks @ardatan! - Deduplicate dual-marker template plucks and convert Babel's 0-based columns to GraphQL Source 1
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
graphql peer range is now ^16.0.0 || ^17.0.0.
#8515 1d70c62 Thanks @ardatan! - Drop GraphQL v14/v15 support and require Node.js >= 22.18.
graphql peer range is now ^16.0.0 || ^17.0.0.engines.node is now >=22.18.0 (Node fs.glob + Babel 8).@graphql-tools/graphql-tag-pluck move to Babel 8 (@babel/core / parser / traverse / types).cross-inspect package is discontinued. Use inspect from @graphql-tools/utils instead (Node util.inspect via process.getBuiltinModule, with a small JSON.stringify / String fallback).@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).
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:
fs.glob followSymlinks is used.cwd) and patterns are re-rooted.@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.
new GraphQLError(message, options) from graphql. Experimental schema coordinate support remains on locatedError / relocatedError / getSchemaCoordinate.URL.canParse fallback).@whatwg-node/promise-helpers (handleMaybePromise, isPromise, fakePromise, mapAsyncIterator, MaybePromise) rather than re-exported from utils.#8532 a2ef423 Thanks @ardatan! - Recognize #graphql at the start of template literals by default.
Until now, untagged template literals were only plucked when they had a leading block comment such as /* GraphQL */ (gqlMagicComment). Many setups instead use a #graphql marker inside the string:
export const typeDefs = `#graphql
type Query {
hello: String
}
`
That marker is GraphQL source text, not a JavaScript leading comment, so gqlMagicComment could never see it. Without extraction, loaders fall back to importing the module, which stays cached under GraphQL Codegen --watch and leaves generated types stale.
This release adds gqlHashComment (default: 'graphql'):
#graphql is recognized out of the boxgqlHashComment: 'gql' (or any other value) for markers like #gqlgqlHashComment: '' to disable hash-comment detection/* GraphQL */ via gqlMagicComment and the isGqlTemplateLiteral / pluckStringFromFile hooks keep working as before.
1d70c62 Thanks @ardatan! - dependencies updates:
@babel/core@^8.0.7 ↗︎ (from ^7.29.7, in dependencies)@babel/parser@^8.0.7 ↗︎ (from ^7.29.3, in dependencies)@babel/traverse@^8.0.7 ↗︎ (from ^7.26.10, in dependencies)@babel/types@^8.0.6 ↗︎ (from ^7.26.10, in dependencies)graphql@^16.0.0 || ^17.0.0 ↗︎ (from ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0, in peerDependencies)1d70c62, 1d70c62]:
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.