codemirror-graphql
Advanced tools
Comparing version 2.0.13 to 2.1.0
{ | ||
"name": "codemirror-graphql", | ||
"version": "2.0.13", | ||
"version": "2.1.0", | ||
"description": "GraphQL mode and helpers for CodeMirror.", | ||
@@ -43,3 +43,3 @@ "contributors": [ | ||
"codemirror": "^5.65.3", | ||
"graphql": "^15.5.0 || ^16.0.0" | ||
"graphql": "^15.5.0 || ^16.0.0 || ^17.0.0-alpha.2" | ||
}, | ||
@@ -49,3 +49,3 @@ "// TEMPORARILY PINNED until we fix graphql 15 support": "", | ||
"@types/codemirror": "^0.0.90", | ||
"graphql-language-service": "5.2.2" | ||
"graphql-language-service": "5.3.0" | ||
}, | ||
@@ -56,3 +56,3 @@ "devDependencies": { | ||
"cross-env": "^7.0.2", | ||
"graphql": "^16.8.1", | ||
"graphql": "^17.0.0-alpha.5", | ||
"rimraf": "^3.0.2", | ||
@@ -59,0 +59,0 @@ "sane": "2.0.0" |
@@ -14,3 +14,3 @@ /** | ||
import { join } from 'node:path'; | ||
import { GraphQLError, OperationDefinitionNode } from 'graphql'; | ||
import { GraphQLError, OperationDefinitionNode, version } from 'graphql'; | ||
import '../lint'; | ||
@@ -65,3 +65,9 @@ import '../mode'; | ||
if (node.operation === 'mutation') { | ||
context.reportError(new GraphQLError('I like turtles.', node)); | ||
context.reportError( | ||
new GraphQLError( | ||
'I like turtles.', | ||
// @ts-expect-error | ||
parseInt(version, 10) > 16 ? { nodes: node } : node, | ||
), | ||
); | ||
} | ||
@@ -68,0 +74,0 @@ return false; |
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
449460
9275
+ Addedgraphql@17.0.0-alpha.7(transitive)
+ Addedgraphql-language-service@5.3.0(transitive)
- Removedgraphql@16.9.0(transitive)
- Removedgraphql-language-service@5.2.2(transitive)