Releases: DAB0mB/graphql-tag-pluck
v0.8.7
Do you want The Guild to keep your codebase up to date and run your build on each
graphql-tag-pluck
commit so we'll make sure not to break your app?
Contact us here: the-guild.dev/connected-build
- Update dependencies
- Added
@apollo/client#gql
v0.8.6
Do you want The Guild to keep your codebase up to date and run your build on each
graphql-tag-pluck
commit so we'll make sure not to break your app?
Contact us here: the-guild.dev/connected-build
- Update dependencies
- Add
graphql.macro
to modules (#58, thanks @mathieutu)
v0.8.5
Do you want The Guild to keep your codebase up to date and run your build on each
graphql-tag-pluck
commit so we'll make sure not to break your app?
Contact us here: the-guild.dev/connected-build
Release 0.8.4
- Unescape escaped backticks in result #45
Version 0.8.3
- Support expression statements with trailing semicolons #27
- Support tree-shaking
Version 0.8.1
Should pluck graphql-tag template literals from .tsx file with generic jsx elements. (Fix dotansimha/graphql-code-generator#1773)
Version 0.8.0
Updated supported modules by default. Below is a full list:
{
modules: [
{
// import gql from 'graphql-tag'
name: 'graphql-tag',
},
{
name: 'graphql-tag.macro',
},
{
// import { graphql } from 'gatsby'
name: 'gatsby',
identifier: 'graphql',
},
{
name: 'apollo-server-express',
identifier: 'gql'
},
{
name: 'apollo-server',
identifier: 'gql'
},
{
name: 'react-relay',
identifier: 'graphql'
},
{
name: 'apollo-boost',
identifier: 'gql'
},
{
name: 'apollo-server-koa',
identifier: 'gql',
},
{
name: 'apollo-server-hapi',
identifier: 'gql',
},
{
name: 'apollo-server-fastify',
identifier: 'gql',
},
{
name: ' apollo-server-lambda',
identifier: 'gql',
},
{
name: 'apollo-server-micro',
identifier: 'gql',
},
{
name: 'apollo-server-azure-functions',
identifier: 'gql',
},
{
name: 'apollo-server-cloud-functions',
identifier: 'gql',
},
{
name: 'apollo-server-cloudflare',
identifier: 'gql',
}
]
}
Version 0.7.0
Add support for apollo-server-express
by default:
import { gql } from 'apollo-server-express'
Version 0.6.0
Exposed options: gqlMagicComment
, globalGqlIdentifierName
and modules
. See README.md
for more info.
Breaking changes
defaultGqlIdentifierName
renamed toglobalGqlIdentifierName
which I think makes more sense (we can even remove it)gqlPackName
anddefaultGqlIdentifierName
are nowmodules
(each module has aname
property and an optionalidentifier
- no identifier means it's a default export).
Version 0.5.0
Transformation options may also be provided:
-
defaultGqlIdentifierName
- The default GraphQL string parser identifier to look for. Defaults togql
, unless imported as something else from thegraphql-tag
package. This behavior can also be changed, see thegqlPackName
option. -
gqlMagicComment
- The magic comment anchor to look for when parsing GraphQL strings. Defaults tographql
, which may be translated into/* GraphQL */
in code. -
gqlPackName
- The name of the package that is responsible for exporting the GraphQL string parser function. Defaults tographql-tag
.
I recommend you to look at the source code for a clearer understanding of the transformation options.