Skip to content

Releases: graphql/graphql-js

v0.11.2

29 Aug 13:50
Compare
Choose a tag to compare

Fixes

  • Fix Flow errors for people who do not have experimental.const_params=true set in their .flowconfig (#1012).

v0.11.1

26 Aug 01:02
Compare
Choose a tag to compare

Fixes

  • Remove unintended runtime dependency on Regenerator runtime (#1007).

v0.11.0

25 Aug 20:26
Compare
Choose a tag to compare

Breaking

  • The subscribe() function now returns a Promise of either an AsyncIterator or ExecutionResult to better distinguish between initialization errors and publish errors; previously it just returned an AsyncIterator (#918).

Spec compliance

  • Passing an array in place of a String input throws an error instead of silently coercing (#925).

Fixes

  • Directive descriptions are preserved through calls to extendSchema() (#961).

Changes

  • The ExecutionArgs type is now exported (#988).
  • Adding a type to a union or a value to an enum are now reported as "dangerous" changes (#991).

v0.10.5

17 Jul 17:12
Compare
Choose a tag to compare

Fixed:

  • Fix incorrect column numbers in errors introduced in #949 (#951)

v0.10.4

14 Jul 22:35
Compare
Choose a tag to compare

New:

  • Inline invariant transform for faster loading of schemas (#935)
  • Support for directives applied on IDL & Schema (#746)
  • Account for query's offset in file for errors (#949)

v0.10.3

20 Jun 21:01
Compare
Choose a tag to compare

New:

  • Additional detection in findBreakingChanges() (#874)
  • Experimental Schema Language now allows a leading pipe in union definitions (#907, #911)
  • A printIntrospectionSchema() utility is now exported (#905)
  • A getDirectiveValues() utility is now exported (a1f6308)

Fixed:

  • Improvements to error messages
  • Removes trailing commas from source so it can experimentally be used directly (86009a6)

v0.10.1

26 May 22:40
Compare
Choose a tag to compare

New:

  • Spec compliance: Continued progress towards Subscription support, adding Validation rules (#882)

Fixed:

  • Better handling of Errors from execute() function, returning resolved GraphQL responses instead of rejected promises for spec-described errors. (#883)
  • Fixed flow issues when using GraphQL.js with some optional configuration with Flow v47 (#885)

v0.10.0

25 May 21:34
Compare
Choose a tag to compare

New

  • isValidValue() and isValidLiteral() added to Scalar and enum types (#861).
  • You can now set a custom default field resolver (#865).
  • graphql() may now take a Source object, in addition to the existing support for string (#866).
  • graphql() may now take an object with named parameters (#867).
  • Partial support for GraphQL subscriptions (#846, #868) (Not yet ready for production use).

Breaking

  • Spec compliance: forbid duplicate type definitions (#744).
  • Spec compliance: disallow inappropriate coercion of non-Int values to Int (#837).

Fixes

  • Ensure GraphQLError stack trace includes error message (#718).
  • Fix input coercion to allow null-valued Enums as arguments (#848).
  • Fix for fields that are JavaScript keywords (#864).
  • Compatibility with Flow v0.47.0 (#878).

v0.9.6

02 May 00:22
Compare
Choose a tag to compare

New

  • It is now possible to suppress warnings about non-spec compliant names by setting the GRAPHQL_NO_NAME_WARNING environment variable. This may be useful when working with legacy schemas.

v0.9.5

29 Apr 02:49
Compare
Choose a tag to compare

New:

  • Much improved Flow types from the experimental %checks type (#695)
  • Allow passing a custom TypeInfo instance to validate() (#834)
  • Exported getVisitFn for building custom composite visitors. (#807)

Fixes:

  • Allow Enum internal values to be false, null, and undefined (#836)