Packages

graphql

17.1.0 · 4 Nov 2026MIT74.5M / weekRepositorynpmAtom feed

Your version

0.4.13

17 Nov 2015Where it was published

0.13.2 is the newest release of 0.4.x.

npm marks 0.4.13 as deprecated: No longer supported; please update to a newer version. Details: github.com/graphql/graphql-js

In short

1 fixed8 changed

Release note

New:

  • import { extendSchema } from 'graphql/utilities allows extending an existing schema with the GraphQL type definition language

  • 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

  • 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

  • Removes the rule which requires overlapping fields to have equivalent directives. This rule change has also been reflected in the GraphQL Spec

  • 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

  • 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

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.