Skip to content

Releases: DAB0mB/graphql-tag-pluck

v0.8.7

03 Nov 06:23
1ed62d3
Compare
Choose a tag to compare

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

15 Oct 05:19
Compare
Choose a tag to compare

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

22 Sep 15:38
Compare
Choose a tag to compare

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

  • Make parser more resilient to undeclared exports (#55)
  • Ensure consistent module case checking (#51)
  • Update dependencies

Release 0.8.4

06 Aug 10:37
Compare
Choose a tag to compare
  • Unescape escaped backticks in result #45

Version 0.8.3

02 Jul 22:09
Compare
Choose a tag to compare
  • Support expression statements with trailing semicolons #27
  • Support tree-shaking

Version 0.8.1

30 Apr 09:04
Compare
Choose a tag to compare

Should pluck graphql-tag template literals from .tsx file with generic jsx elements. (Fix dotansimha/graphql-code-generator#1773)

Version 0.8.0

25 Mar 16:54
Compare
Choose a tag to compare

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

07 Mar 04:31
5391803
Compare
Choose a tag to compare

Add support for apollo-server-express by default:

import { gql } from 'apollo-server-express'

Version 0.6.0

27 Feb 02:21
Compare
Choose a tag to compare

Exposed options: gqlMagicComment, globalGqlIdentifierName and modules. See README.md for more info.

Breaking changes

  • defaultGqlIdentifierName renamed to globalGqlIdentifierName which I think makes more sense (we can even remove it)
  • gqlPackName and defaultGqlIdentifierName are now modules (each module has a name property and an optional identifier - no identifier means it's a default export).

Version 0.5.0

12 Jan 06:18
Compare
Choose a tag to compare

Transformation options may also be provided:

  • defaultGqlIdentifierName - The default GraphQL string parser identifier to look for. Defaults to gql, unless imported as something else from the graphql-tag package. This behavior can also be changed, see the gqlPackName option.

  • gqlMagicComment - The magic comment anchor to look for when parsing GraphQL strings. Defaults to graphql, 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 to graphql-tag.

I recommend you to look at the source code for a clearer understanding of the transformation options.