@apollo/core-schema
Advanced tools
Comparing version 0.1.1 to 0.2.0
@@ -5,4 +5,6 @@ # CHANGELOG | ||
- _Nothing yet! Stay tuned!_ | ||
## v0.2.0 | ||
- __BREAKING__: Update graphql dev and peerDependency and fix `GraphQLError` usage. Update name assignment and remove name getter method [#20](https://github.com/apollographql/core-schema-js/pull/20) | ||
## v0.1.1 | ||
@@ -9,0 +11,0 @@ |
@@ -18,4 +18,4 @@ import { ASTNode, GraphQLError, Source } from 'graphql'; | ||
static readonly BASE_PROPS: Set<string>; | ||
readonly name: string; | ||
constructor(code: C, message: string, props?: Props); | ||
get name(): C; | ||
throw(): never; | ||
@@ -22,0 +22,0 @@ toString(): string; |
@@ -15,4 +15,4 @@ "use strict"; | ||
} | ||
this.name = code; | ||
} | ||
get name() { return this.code; } | ||
throw() { throw this; } | ||
@@ -19,0 +19,0 @@ toString() { |
{ | ||
"name": "@apollo/core-schema", | ||
"version": "0.1.1", | ||
"version": "0.2.0", | ||
"description": "Apollo Core Schema processing library", | ||
@@ -33,7 +33,7 @@ "main": "dist/index.js", | ||
"peerDependencies": { | ||
"graphql": "^14.5.0 || ^15.0.0" | ||
"graphql": "^15.7.2" | ||
}, | ||
"devDependencies": { | ||
"@types/jest": "27.0.2", | ||
"graphql": "15.6.1", | ||
"graphql": "15.7.2", | ||
"jest": "27.3.1", | ||
@@ -40,0 +40,0 @@ "prettier": "2.4.1", |
@@ -18,2 +18,4 @@ import { ASTNode, GraphQLError, printError, Source } from 'graphql' | ||
readonly name: string; | ||
constructor(public readonly code: C, message: string, props?: Props) { | ||
@@ -33,4 +35,5 @@ super(message, | ||
} | ||
this.name = code; | ||
} | ||
get name() { return this.code } | ||
@@ -37,0 +40,0 @@ throw(): never { throw this } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
139039
69
2688