graphql-tag
Advanced tools
Comparing version 2.6.1 to 2.7.0
# Change log | ||
### v2.7.0 | ||
* Export DocumentNode in TypeScript via `graphql-js` [felixfbecker](https://github.com/felixfbecker) in [PR #141](https://github.com/apollographql/graphql-tag/pull/141) | ||
### v2.6.0 | ||
@@ -4,0 +8,0 @@ |
@@ -1,3 +0,5 @@ | ||
export default function gql(literals: any, ...placeholders: any[]): any; | ||
import { DocumentNode } from 'graphql'; | ||
export default function gql(template: TemplateStringsArray, ...substitutions: any[]): DocumentNode; | ||
export function resetCaches(): void; | ||
export function disableFragmentWarnings(): void; |
{ | ||
"name": "graphql-tag", | ||
"version": "2.6.1", | ||
"version": "2.7.0", | ||
"description": "A JavaScript template literal tag that parses GraphQL queries", | ||
@@ -23,3 +23,5 @@ "main": "./lib/graphql-tag.umd.js", | ||
"homepage": "https://github.com/apollostack/graphql-tag#readme", | ||
"dependencies": {}, | ||
"dependencies": { | ||
"@types/graphql": ">=0.8.6 <=0.11.7" | ||
}, | ||
"devDependencies": { | ||
@@ -26,0 +28,0 @@ "babel-preset-es2015": "^6.9.0", |
@@ -6,3 +6,3 @@ # graphql-tag | ||
GraphQL printing and parsing with bundled dependencies. Includes: | ||
Helpful utilities for parsing GraphQL queries. Includes: | ||
@@ -12,2 +12,4 @@ - `gql` A JavaScript template literal tag that parses GraphQL query strings into the standard GraphQL AST. | ||
`graphql-tag` uses [the reference `graphql` library](https://github.com/graphql/graphql-js) under the hood as a peer dependency, so in addition to installing this module, you'll also have to install `graphql-js`. | ||
### gql | ||
@@ -83,3 +85,3 @@ | ||
### Webpack preprocessing | ||
### Webpack preprocessing with `graphql-tag/loader` | ||
@@ -86,0 +88,0 @@ This package also includes a [webpack loader](https://webpack.js.org/concepts/loaders). There are many benefits over this approach, which saves GraphQL ASTs processing time on client-side and enable queries to be separated from script over `.graphql` files. |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
77249
422
139
2
+ Added@types/graphql@0.11.7(transitive)