graphql-tag
Advanced tools
Comparing version 2.12.5 to 2.12.6
# Change log | ||
### v2.12.6 | ||
* Update peer dependencies to allow `graphql` ^16.0.0. <br/> | ||
[@brainkim](https://github.com/brainkim) in [#530](https://github.com/apollographql/graphql-tag/pull/530) | ||
### v2.12.5 | ||
@@ -4,0 +9,0 @@ |
@@ -70,3 +70,4 @@ (function (global, factory) { | ||
var parsed = graphql.parse(source, { | ||
experimentalFragmentVariables: experimentalFragmentVariables | ||
experimentalFragmentVariables: experimentalFragmentVariables, | ||
allowLegacyFragmentVariables: experimentalFragmentVariables | ||
}); | ||
@@ -73,0 +74,0 @@ if (!parsed || parsed.kind !== 'Document') { |
@@ -66,3 +66,4 @@ import { __assign } from "tslib"; | ||
var parsed = parse(source, { | ||
experimentalFragmentVariables: experimentalFragmentVariables | ||
experimentalFragmentVariables: experimentalFragmentVariables, | ||
allowLegacyFragmentVariables: experimentalFragmentVariables | ||
}); | ||
@@ -69,0 +70,0 @@ if (!parsed || parsed.kind !== 'Document') { |
@@ -71,3 +71,4 @@ 'use strict'; | ||
var parsed = graphql.parse(source, { | ||
experimentalFragmentVariables: experimentalFragmentVariables | ||
experimentalFragmentVariables: experimentalFragmentVariables, | ||
allowLegacyFragmentVariables: experimentalFragmentVariables | ||
}); | ||
@@ -74,0 +75,0 @@ if (!parsed || parsed.kind !== 'Document') { |
@@ -172,3 +172,3 @@ "use strict"; | ||
if (operationCount > 1) { | ||
throw "Query/mutation names are required for a document with multiple definitions"; | ||
throw new Error("Query/mutation names are required for a document with multiple definitions"); | ||
} else { | ||
@@ -175,0 +175,0 @@ continue; |
{ | ||
"name": "graphql-tag", | ||
"version": "2.12.5", | ||
"version": "2.12.6", | ||
"description": "A JavaScript template literal tag that parses GraphQL queries", | ||
@@ -15,4 +15,4 @@ "main": "./main.js", | ||
"test": "npm run test:ts3 && npm run test:ts4", | ||
"test:ts3": "npm i typescript@3.7.x && npm run test:mocha", | ||
"test:ts4": "npm i typescript@4.x && npm run test:mocha", | ||
"test:ts3": "npm i typescript@3.7.x graphql@15.x.x && npm run test:mocha", | ||
"test:ts4": "npm i typescript@4.x.x graphql@16.x.x && npm run test:mocha", | ||
"test:mocha": "npm run build && mocha lib/tests.cjs.js", | ||
@@ -45,3 +45,3 @@ "prepublish": "npm run build" | ||
"chai": "^4.2.0", | ||
"graphql": "^15.4.0", | ||
"graphql": "^16.0.1", | ||
"mocha": "^9.0.1", | ||
@@ -53,6 +53,6 @@ "rimraf": "^3.0.2", | ||
"test-all-versions": "^5.0.1", | ||
"typescript": "^4.3.4" | ||
"typescript": "^4.4.4" | ||
}, | ||
"peerDependencies": { | ||
"graphql": "^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0" | ||
"graphql": "^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0" | ||
}, | ||
@@ -59,0 +59,0 @@ "engines": { |
@@ -116,3 +116,3 @@ # graphql-tag | ||
```graphql | ||
```js | ||
import MyQuery from 'query.graphql' | ||
@@ -119,0 +119,0 @@ ``` |
@@ -98,3 +98,4 @@ import { parse } from 'graphql'; | ||
experimentalFragmentVariables, | ||
}); | ||
allowLegacyFragmentVariables: experimentalFragmentVariables, | ||
} as any); | ||
if (!parsed || parsed.kind !== 'Document') { | ||
@@ -101,0 +102,0 @@ throw new Error('Not a valid GraphQL document.'); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
172138
1703