graphql-schema-linter
Advanced tools
Comparing version 3.0.0 to 3.0.1
# Changelog | ||
## 3.0.1 (May 21st, 2022) | ||
### Bug fixes | ||
- Fixed an issue that caused the linter to crash when using GraphQL v16 on a schema that had too many errors. [#309](https://github.com/cjoudrey/graphql-schema-linter/pull/309) (Thanks @vojtech-dobes) | ||
## 3.0.0 (May 6th, 2022) | ||
@@ -4,0 +10,0 @@ |
@@ -70,3 +70,9 @@ "use strict"; | ||
}); | ||
const errors = (0, _validation.validate)(schema, ast, rulesWithConfiguration); | ||
const isGraphQLVersion15 = _graphql.version.startsWith('15'); | ||
const validateOptions = { | ||
maxErrors: Number.MAX_SAFE_INTEGER | ||
}; | ||
const errors = (0, _validation.validate)(schema, ast, rulesWithConfiguration, isGraphQLVersion15 ? undefined : validateOptions, isGraphQLVersion15 ? validateOptions : undefined); | ||
const sortedErrors = sortErrors(errors); | ||
@@ -73,0 +79,0 @@ const errorFilters = [inlineConfigErrorFilter(ast, inputSchema), ignoreListErrorFilter(schema, configuration)]; |
{ | ||
"name": "graphql-schema-linter", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "Command line tool and package to validate GraphQL schemas against a set of rules.", | ||
@@ -34,4 +34,4 @@ "author": "Christian Joudrey", | ||
"lint-staged": "10.5.4", | ||
"mocha": "8.2.1", | ||
"prettier": "2.2.1" | ||
"mocha": "8.4.0", | ||
"prettier": "2.6.2" | ||
}, | ||
@@ -38,0 +38,0 @@ "babel": { |
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
368360
1406