v0.4.18
This release brings up graphql-go
on par with graphql-js v0.4.18
Notable changes:
- Move the extension definition out of type definition
- [RFC] Type condition optional on inline fragments.
- Implements graphql/graphql-spec#100
- [RFC] Make operation name optional.
- Implements graphql/graphql-spec#99
- Spec compliant Int sizing
graphql.Int
now enforces strict compliance to the spec.int
anduint
that exceeds 2^32 will be considered as invalidgraphql.Int
- Added/updated
scalars_serialization_test.go
to reflect the changes
- Experimental: customisable validation
- Changed function signature for
graphql.NewTypeInfo()
to accept a struct. - Allows the possibility to remove the experimental
FieldDefFn
params
- Changed function signature for
Changes to public/exported vars / func
Previous | New | Risk |
---|---|---|
graphql.NAME_REGEXP |
graphql.NameRegExp |
Low |
graphql.CollectFieldsParam.OperationType |
graphql.CollectFieldsParam.RuntimeType |
Low |
graphql.GetVisitFn(*visitorOptions, bool, string) |
graphql.GetVisitFn(*visitorOptions, string, bool) |
Low |
graphql.NewTypeInfo(*Schema) |
graphql.NewTypeInfo(*TypeInfoConfig) |
Low |