NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm · #2390 most downloaded on npm
A JavaScript template literal tag that parses GraphQL queries
Last release 3 months ago
17 Jun 2026
Ships unpredictably
gaps range from 2 weeks to 4.6 years
Most releases are documented
notes for 41 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
10 years old
66 releases · first in 2016
Patch Changes #823 bc285e5 Thanks @phryneas ! - add support for graphql 17 #458 fd82f1c Thanks @kidroca ! - loader: allow a space between # and import
Upgrade to GraphQL 16 by @brainkim in https://github.com/apollographql/graphql-tag/pull/530
One column per quarter.
# and import word in gql files by @kidroca in https://github.com/apollographql/graphql-tag/pull/458Full Changelog: https://github.com/apollographql/graphql-tag/compare/v2.12.4...v2.12.6
# and import word in gql files by @kidroca in #458Full Changelog: v2.12.4...v2.12.6
Also publish src/ directory to npm, enabling source maps. @maclockard in #403
src/ directory to npm, enabling source maps. <br/>
@maclockard in #403Allow fragments to be imported by name when using the webpack loader. @dobesv in #257
Bump npm version to 2.12.3.
Bump npm version to 2.12.3.
Bump npm version to 2.12.2.
Bump npm version to 2.12.1.
Bump npm version to 2.12.0.
Bump npm version to 2.12.0.
graphql-tag repository has been converted to TypeScript, adding type safety and enabling both ECMAScript and CommonJS module exports. While these changes are intended to be as backwards-compatible as possible, we decided to bump the minor version to reflect the significant refactoring. <br/>
@PowerKiKi and @benjamn in #325package.json sideEffects changes to clearly identify that graphql-tag doesn't have side effects. @hwillson in #313
Bump dev/peer deps to accommodate graphql 15. @adriencohen in #299
graphql 15. <br/>
@adriencohen in #299Further adjustments to the TS index.d.ts declaration file. @Guillaumez in #289
index.d.ts declaration file.
@Guillaumez in #289Update/fix the existing TS index.d.ts declaration file. @hwillson in #285
Nothing published for this version
Fix failures in IE11 by avoiding unsupported (by IE11) constructor arguments to Set by rocwang in #190
Add support for graphql@14 by timsuchanek in #210, #211
graphql@14 by timsuchanek in #210, #211Nothing published for this version
Fix IE11 support by using a regular for-loop by vitorbal in #176
Remove duplicate exports in named exports by wacii in #170
experimentalFragmentVariables compatibility by lucasconstantino in #167Update graphql to ^0.13, support testing all compatible versions jnwng in PR #156
Nothing published for this version
Nothing published for this version
Nothing published for this version
Accept graphql@^0.12.0 as peerDependency jnwng addressing #134
Support multiple query definitions when using Webpack loader jfaust in PR #122
Update graphql to ^0.11.0, add graphql@^0.11.0 to peerDependencies pleunv in PR #124
Nothing published for this version
Nothing published for this version
Add support for descriptors jamiter in PR #99
Add flow support michalkvasnicak in PR #98
Make parsing line endings kind agnostic vlasenko in PR #95
Fix #61: split('/n') does not work on Windows dnalborczyk in PR #89
Bumping graphql peer dependency to ^0.10.0 dotansimha in PR #85
graphql peer dependency to ^0.10.0 dotansimha in
PR #85Add support for calling gql as a function matthewerwin in PR #66
Restore dependence on graphql module abhiaiyer91 in PR #46 addressing #6
Restore dependence on graphql module abhiaiyer91 in
PR #46 addressing
#6
graphql as a
peerDependencyNothing published for this version
Add typescript definitions for the bundledPrinter PR #63
Making sure not to log deprecation warnings for internal use of deprecated module jnwng addressing #54
Deprecate the graphql/language/parser and graphql/language/printer exports jnwng in PR #55
Restore Node < 6 compatibility. DragosRotaru in PR #41 addressing #39
Restore Node < 6 compatibility. DragosRotaru in PR #41 addressing #39
Nothing published for this version
Nothing published for this version
Fixed an issue with fragment imports. PR #35.
Fixed an issue with fragment imports. PR #35.
Added ability to import other GraphQL documents with fragments using #import comments. PR #33
Added ability to import other GraphQL documents with fragments using #import comments.
PR #33
Nothing published for this version
Fix issue with interpolating undefined values Issue #19
Fix issue with interpolating undefined values Issue #19
Added typescript definitions for the below.
Added typescript definitions for the below.
We now emit warnings if you use the same name for two different fragments.
We now emit warnings if you use the same name for two different fragments.
You can disable this with:
import { disableFragmentWarnings } from "graphql-tag";
disableFragmentWarnings();
Releasing 0.1.17 as 1.0.0 in order to be explicit about Semantic Versioning.
Releasing 0.1.17 as 1.0.0 in order to be explicit about Semantic Versioning.
Allow embedding fragments inside document strings, as in
import gql from "graphql-tag";
const fragment = gql`
fragment Foo on Bar {
field
}
`;
const query = gql`
{
...Foo
}
${Foo}
`;
See also http://dev.apollodata.com/react/fragments.html
Add caching to Webpack loader. PR #16
Add Webpack loader to graphql-tag/loader.
graphql-tag/loader.Changes were not tracked before this version.
Changes were not tracked before 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
Your coding agent can read these notes before it upgrades. Set up the MCP server →