Releases: graphql/graphql-js
Releases · graphql/graphql-js
v0.9.4
v0.9.3
v0.9.2
Breaking
- Remove ambiguity in
isLeafType
check: it no longer performs named type unwrapping and is consistent with the otherisCompositeType
/isAbstractType
checks (#697).
New
- Make wording in error messages more consistent (#767).
- Allow deprecated fields/values to be extended (#755).
- Validation messages about names starting with double underscores are now use
console.warn
rather thanconsole.error
(#717). - Improved the error message for undefined field config (#702).
- The
findBreakingChanges
validation now reports breaking changes made to arguments (#701).
Internal
v0.9.1
v0.9.0
New:
- Added isNamedType() and assertNamedType() #589
- Default field resolvers now get full execution info as a third argument #615
- ObjectType.isTypeOf() and InterfaceType.resolveType() may now return Promises #631
- Support and fixes for flow type v0.38 #671
- Added TypeInfo.getEnumValue() and EnumType.getValue(name) #674
- Added findDeprecatedUsages() #676
Fixes:
- Enforce spec that no non-meta field may start with "__" #600 (Potentially breaking for existing non-compliant uses).
- isValidJSValue() reports if coercion results in error #602
- Executor throws friendlier error if no document is provided #614
- Fixed import circular dependency, improving compressed builds #644
v0.8.2
v0.8.1
v0.8.0
GraphQL.js v0.8.0 is now compliant with the most recent version of the GraphQL specification! This release is also the first to include flow types in the NPM package, which should make it easier to use GraphQL in a well typed way. It also includes many new utilities and small improvements. Thanks to everyone who helped with this release!
Breaking & Spec Changes:
- A resolve function's
info.path
value is now a Linked List instead of an Array (#562) - A resolve function's
info.fieldASTs
value has been renamed toinfo.fieldNodes
(#554) formatError
now includes the path of field errors (#561)- The most recent version of the GraphQL specification is more strict about field argument validation. (#553)
- The most recent version of the GraphQL specification does not allow multiple directives of the same name in the same location (#552)
New:
- GraphQL now supports a literal
null
value as a field argument. (#544) - Flow type definitions are now included in the NPM package! The names of many types were changed to be more descriptive. (#554, #526, #412)
printType
lets you print a single GraphQL type using the experimental schema language (#558)defaultResolver
, the field resolver used when one is not provided, is now available (#527)
v0.7.2
v0.7.1
New:
- Adds
parseType
method, which allows for parsing type references independently of whole GraphQL documents (#506) - Adds
isDeprecated
field to type definition API, making it easier to use within tools (#496 @asiandrummer)
Fixes:
- Allows GraphQL Errors to be configurable, fixing compatibility issues with Bluebird Promises (#505 @darthtrevino)
- Fix bug where locations go missing when the error comes from something at the beginning of the file (#487 @martijnwalraven)
- Supports Promises-A (in addition to Promises-A+) which improves support with older libraries (#481)
- No longer accept empty string as a valid Int/Float value. (#477 @robzhu)
- Provide clearer error message when variables are provided as an unparsed string. (f2f3db5)