Skip to content

v0.4.18

Compare
Choose a tag to compare
@sogko sogko released this 31 May 01:10
· 566 commits to master since this release

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.
  • [RFC] Make operation name optional.
  • Spec compliant Int sizing
    • graphql.Int now enforces strict compliance to the spec.
    • int and uint that exceeds 2^32 will be considered as invalid graphql.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

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