Releases: graphql/graphql-js
Releases · graphql/graphql-js
v0.4.10
New:
buildClientSchema()
now supports deprecated fields #216- Custom directives now supported by GraphQLSchema #215
concatAST()
utility added, which helps support validation of graphql fragments spread across multiple sources (3a6b4d1)
Fixes:
- Nested input objects with similarly named keys could falsely fail validation #206
v0.4.9
New
- Broadened legal use of interfaces to allow for additional arguments on implementing fields (see graphql/graphql-spec#110)
v0.4.8
v0.4.7
v0.4.6
Follows GraphQL October
New:
- Operations without names are accepted
- Inline fragments without type conditions are accepted
Fixes:
- Properly export getOperationAST utility from
graphql/utilities
v0.4.5
New:
- Resolvers can now return a JavaScript
Error
object to indicate resolution failure. They can also return Arrays where only certain indices containError
objects. (#178) - Unicode support clarified and restricted (#186)
getOperationAST()
utility added (f66ddf5)- Early error if deprecation API is misused. (#185)
- Clearer lex errors when encountering a non-printable character (#183)
Fixes:
- Built-in Scalars and Introspection types now have descriptions
- Input object duplicate values now parse correctly and are reported as validation errors (#184)
v0.4.4
v0.4.3
New:
- [Experimental] GraphQL parser/visitor now supports experimental type definition language.
- [Experimental] GraphQL parser now accepts
subscription
as an operation kind keyword.
Fixes:
v0.4.2
v0.4.1
New/Breaking:
- Asserts that the GraphQLSchema and GraphQLType types are properly
constructed, following the "validation" rules defined in the GraphQL Spec- Asserts that Objects which claim to implement an Interface actually do.
- Schema asserts that all included types have unique names.
- Clearer error messages when incorrect type used in GraphQLType constructors, including List and NonNull type constructors.
- Asserts that Scalar definitions include serialization functions.
- Removal of the
graphql/type/validation
submodule.
- Asserts that the runtime Object type result of an Interface or Union typed
field is a type is a possible type of that Interface or Union. - EnumType.getValues() now returns an Array.
Fixes:
- Correctly parse Enum values from variables. #123