Skip to content

v0.4.13

Compare
Choose a tag to compare
@leebyron leebyron released this 17 Nov 20:10
· 2757 commits to 16.x.x since this release

New:

  • import { extendSchema } from 'graphql/utilities allows extending an existing schema with the GraphQL type definition language (#227)
  • When an Object type implements an Interface type, a field on the Object type can return a more specific type than the same field defined on the Interface type. This "covariant return types" is now also defined in the GraphQL Spec (#239)
  • Loosens the rule which requires overlapping fields to be unambiguously merged in the case that two same-named fields are statically known to not overlap due to being conditional to different types. This rule change has also been reflected in the GraphQL Spec (#229)
  • Removes the rule which requires overlapping fields to have equivalent directives. This rule change has also been reflected in the GraphQL Spec (#230)
  • Validation now ~25-30x faster due to a number of improvements including simplifications, algorithm improvements, memoization, and running validation rules in parallel.
    • Parallelizing rules will change the order in which validation errors are reported within a file.

Fixes:

  • Fixes issues when used in a Babel 6 environment (#228)
  • Validation error of incorrect variable placement now includes a reference to the variable definition for easier debugging.
  • Validation errors of ambiguous overlapping fields now includes clearer non-interleaved references to the overlapping fields.
  • Input object validation errors now include more accurate error messages documenting which input object field contains the error (#204)