Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

graphql-schema-linter

Package Overview
Dependencies
Maintainers
1
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphql-schema-linter - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

6

CHANGELOG.md
# 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 @@

8

lib/validator.js

@@ -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)];

6

package.json
{
"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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc