v0.5.0
This version is the first reference implementation fully compatible with GraphQL — April 2016. In addition to any relevant breaking changes from the spec, it also has made some breaking changes to its API.
This also brings graphql-go
on par with graphql-js v0.5.0
.
Special thanks to all that have contributed to this release.
Breaking:
- Rounding off support…
This version is the first reference implementation fully compatible with GraphQL — April 2016. In addition to any relevant breaking changes from the spec, it also has made some breaking changes to its API.
This also brings graphql-go
on par with graphql-js v0.5.0
.
Special thanks to all that have contributed to this release.
Breaking:
- Rounding off support for
context
. It is now available for resolving types inIsTypeOfFn
andResolveTypeFn
, similar toFieldResolveFn
. (1e33c35) - Directives in schema language: Breaking change to
NewDirective()
API. (2322d25) - Directive location introspection: This deprecates
onField
,onFragment
, andonOperation
in favor oflocations
which is a list of__DirectiveLocation
. (58f2928) - Types can now be explicitly provided to
NewSchema(SchemaConfig{Types: [...] })
. Types which implement an interface but are otherwise not referenced as a field return type are no longer automatically added to theSchema
. UseSchemaConfig{Type: [..]}
to ensure they are included to theSchema
. (79f48da)
New:
- Spec compliance: Overlapping fields must have compatible response shapes. (a241e1c)
- More support for the experimental schema IDL. (e23ac77)
Fixes:
- Spec compliance: @Skip and @include are now commutative. (95bc032)
- Spec compliance: Allow
graphql.Float
to be represented byfloat64
. (#133, #130) - Fixed invalid
lexer
tests for parsingTokenString
. (#138)
Enhancements:
- Improve
lexer
performance by using byte array as source. (#137) - Improved coverage for
lexer
package. (#138) - Additional tests for covering unicode text support. (#138, #135)
API Changes
Previous | New | Risk |
---|---|---|
NewDirective(*Directive) |
NewDirective(DirectiveConfig) |
Low-Medium |
Abstract.ObjectType(interface{}, ResolveInfo) *Object |
removed |
Low-Medium |
Union.ObjectType(interface{}, ResolveInfo) *Object |
removed |
Low-Medium |
Interface.ObjectType(interface{}, ResolveInfo) *Object |
removed |
Low-Medium |
IsTypeOfFn(interface{}, ResolveInfo) |
IsTypeOfFn(IsTypeOfParams) |
High |
ResolveTypeFn(interface{}, ResolveInfo) |
ResolveTypeFn(ResolveTypeParams) |
High |
ResolveParams.Schema |
removed , already available in ResolveInfo |
Low-Medium |
There are no open issues in this milestone.
Add issues to milestones to help organize your work for a particular release or project.
Create new issueOr find and add issues with no milestone in this repo.