eslint-plugin-graphql
Advanced tools
Comparing version 2.1.0-0 to 2.1.0
# Change log | ||
### vNEXT | ||
### v2.1.0 | ||
- Retrieves `.graphqlconfig` relative to the file being linted, which re-enables support for `vscode-eslint` using `.graphqlconfig` in [#108](https://github.com/apollographql/eslint-plugin-graphql/pull/108) by [Jon Wong][https://github.com/jnwng/] | ||
- Cache schema reading/parsing results each time a rule is created in [#137](https://github.com/apollographql/eslint-plugin-graphql/pull/137) by [Kristján Oddsson](https://github.com/koddsson) | ||
@@ -5,0 +8,0 @@ ### v2.0.0 |
@@ -286,3 +286,9 @@ 'use strict'; | ||
var schemaCache = {}; | ||
function parseOptions(optionGroup, context) { | ||
var cacheHit = schemaCache[JSON.stringify(optionGroup)]; | ||
if (cacheHit) { | ||
return cacheHit; | ||
} | ||
var schemaJson = optionGroup.schemaJson, | ||
@@ -363,3 +369,5 @@ schemaJsonFilepath = optionGroup.schemaJsonFilepath, | ||
}); | ||
return { schema: schema, env: env, tagName: tagName, validators: validators }; | ||
var results = { schema: schema, env: env, tagName: tagName, validators: validators }; | ||
schemaCache[JSON.stringify(optionGroup)] = results; | ||
return results; | ||
} | ||
@@ -366,0 +374,0 @@ |
{ | ||
"name": "eslint-plugin-graphql", | ||
"version": "2.1.0-0", | ||
"version": "2.1.0", | ||
"description": "GraphQL ESLint plugin.", | ||
@@ -25,6 +25,6 @@ "author": "Sashko Stubailo", | ||
"babel-preset-stage-0": "6.24.1", | ||
"eslint": "4.2.0", | ||
"mocha": "3.4.2", | ||
"eslint": "4.19.1", | ||
"mocha": "5.1.0", | ||
"graphql": "0.13.2", | ||
"graphql-tools": "2.23.1", | ||
"graphql-tools": "2.24.0", | ||
"test-all-versions": "3.3.2" | ||
@@ -31,0 +31,0 @@ }, |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
92997
595
0