Skip to content

v0.6.2

Compare
Choose a tag to compare
@leebyron leebyron released this 21 Jul 20:53
· 2540 commits to 16.x.x since this release

Thanks to the excellent contributions from community members both in the form
of code, careful review, and thoughtful discussion. This version of GraphQL
fixes a handful of issues

New:

  • Union type definitions may now accept list of possible Types as a "thunk". (#436 @ekosz)
  • List fields can now return any iterable collection, not limited to Array, including Backbone.Collection, or Immutable.js Lists. (#449, #300 @mwschall)

Fixed:

  • Ensure source code is only ASCII. (#429 @kassens)
  • astFromValue() now requires a Type as a second parameter and properly serializes Enums with different internal values. (#435 @nodkz)
  • GraphQLError.stack is now a writable property, fixing issues in Bluebird and other libraries which use a brand-check for Error. (#439 @alexturek)
  • GraphQLError.message, GraphQLError.locations, and GraphQLError.path are now enumerable properties, which means JSON.stringify() will now produce a value which is compliant with the GraphQL spec. (#426 @bnewtonius)
  • Field errors are now thrown when values are resolved for fields typed Int or Float which are not representable by those types, improving debugability and spec compliance. (#391 @stubailo)
  • Errors during field value completion (e.g. a value returned of an incorrect type) now include location information. (#445)