graphql
17.1.0 · 4 Nov 2026MIT74.5M / weekRepositorynpmAtom feed
0.13.2 is the newest release of 0.5.x.
In short
2 breaking9 changed
- Breaking
In addition to any relevant breaking changes from the spec, it also has made some breaking changes to its API.
- Breaking
Experimental schema IDL no longer allows duplicate query types. (ffe76c5)
Release note
This version is the first reference implementation fully compatible with GraphQL — April 2016. In addition to any relevant breaking changes from the spec, it also has made some breaking changes to its API.
Thanks so much to those who contributed issues and pull requests for your help in improving GraphQL!
Breaking:
The
graphqlandexecutefunctions now accept acontextparameter which is distinct fromrootValueand available as the third argument to allresolvefunctions. The additional information is now the fourth argument toresolvefunctions. Anyresolvefunction which currently uses the third argument will need to be updated in order to use this version of graphql-js.Types can now be explicitly provided to
new GraphQLSchema({ types: [...] }). Types which implement an interface but are otherwise not referenced as a field return type are no longer automatically added to the Schema! Provide types like this directly tonew GraphQLSchemato ensure they are included in order to use this version of graphql-js. This fixes a long-standing bug which made it difficult to build multiple related Schema with the same type instances.Spec compliance: Directives are now defined and introspected with an array of locations they can be legally placed, rather than a set of booleans.
New:
Spec compliance: Overlapping fields must have compatible response shapes (c034de9)
More support for the experimental schema IDL: (#325) (#323) (fdafe32)
Fixes:
Spec compliance:
@skipand@includeare now commutative. (#335) (47f87fa)- Breaking
Experimental schema IDL no longer allows duplicate query types. (ffe76c5)
No longer sends incorrect error messages when a response name is not provided
Visitor now correctly encounters both
enterandleavewhen editing the root node in an ASTVisitor helpers are now directly exported (5ea2ff1)
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.