v0.4.18
版本发布时间: 2016-05-31 09:10:41
graphql-go/graphql最新发布版本:v0.8.1(2023-04-11 02:20:23)
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 https://github.com/facebook/graphql/pull/100
- [RFC] Make operation name optional.
- Implements https://github.com/facebook/graphql/pull/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 |