Packages

graphql

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

Upgrading graphql From 0.4.18 to 0.5.0

1 release in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 0.4.18Newest 0.x0.13.2Latest17.1.0
  1. 0.4.18yours
  2. 0.5.0target
2
changes to make
0
advisories fixed
0
new
0
fixes

Before you upgrade

Tick each one off as you go
  • Breaking0.5.0
  • Breaking0.5.0
9 other lines we could not sort, mostly version bumps
  • The graphql and execute functions now accept a context parameter which is distinct from rootValue and available as the third argument to all resolve functions. The additional information is now the fourth argument to resolve functions. Any resolve function which currently uses the third argument will need to be updated in order to use this version of graphql-js.

    0.5.0
  • 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 to new GraphQLSchema to 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.

    0.5.0
  • Spec compliance: Directives are now defined and introspected with an array of locations they can be legally placed, rather than a set of booleans.

    0.5.0
  • Spec compliance: Overlapping fields must have compatible response shapes (c034de9)

    0.5.0
  • More support for the experimental schema IDL: (#325) (#323) (fdafe32)

    0.5.0
  • Spec compliance: @skip and @include are now commutative. (#335) (47f87fa)

    0.5.0
  • No longer sends incorrect error messages when a response name is not provided

    0.5.0
  • Visitor now correctly encounters both enter and leave when editing the root node in an AST

    0.5.0
  • Visitor helpers are now directly exported (5ea2ff1)

    0.5.0

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.