eslint-plugin-graphql
Advanced tools
Comparing version 3.0.0 to 3.0.1
# Change log | ||
### vNEXT | ||
### v3.0.1 | ||
- Fix support for multi-schema workspaces [#179](https://github.com/apollographql/eslint-plugin-graphql/pull/179) by [Pat Sissons](https://github.com/patsissons) | ||
### v3.0.0 | ||
@@ -5,0 +10,0 @@ |
@@ -210,8 +210,5 @@ 'use strict'; | ||
var schemaCache = {}; | ||
var projectCache = {}; | ||
function parseOptions(optionGroup, context) { | ||
var cacheHit = schemaCache[JSON.stringify(optionGroup)]; | ||
if (cacheHit) { | ||
return cacheHit; | ||
} | ||
var schemaJson = optionGroup.schemaJson, | ||
@@ -225,4 +222,9 @@ schemaJsonFilepath = optionGroup.schemaJsonFilepath, | ||
var cacheHit = schemaCache[JSON.stringify(optionGroup)]; | ||
if (cacheHit && env !== 'literal') { | ||
return cacheHit; | ||
} | ||
// Validate and unpack schema | ||
var schema = void 0; | ||
@@ -247,3 +249,13 @@ if (schemaJson) { | ||
} | ||
schema = projectConfig.getSchema(); | ||
if (projectConfig) { | ||
var key = config.configPath + '[' + projectConfig.projectName + ']'; | ||
schema = projectCache[key]; | ||
if (!schema) { | ||
schema = projectConfig.getSchema(); | ||
projectCache[key] = schema; | ||
} | ||
} | ||
if (cacheHit) { | ||
return _extends({}, cacheHit, { schema: schema }); | ||
} | ||
} catch (e) { | ||
@@ -250,0 +262,0 @@ if (e instanceof _graphqlConfig.ConfigNotFoundError) { |
{ | ||
"name": "eslint-plugin-graphql", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "GraphQL ESLint plugin.", | ||
@@ -5,0 +5,0 @@ "author": "Sashko Stubailo", |
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
104144
776