Releases: 99designs/gqlgen
Releases · 99designs/gqlgen
v0.12.1
v0.12.0
Added
- Support for the OBJECT directive - #1117 thanks @s-ichikawa
- "PGP" added to list of common initialisms - #1198 thanks @ddevault
- Add input path in unmarshaling errors - #1115 thanks @bowd
- Support for pointers in custom un/marshal functions - #1277
Updated
- Websocket dependency version bumped to v1.4.2 to resolve vulnerability - #1207 thanks @k-yomo
- Updated to go 1.14 in CI - #1264
- A heap of documentation improvements - #1104, #1119 #1124, #1131, #1147, #1161, #1181, #1202, #1188, #1189, #1218, #1221, #1224, #1276
Fixed
- gqlgen now works in paths containing a
~
- #1137 thanks @ddevault - Redundant type warning in generated code - #1163 thanks @fwojciec
- POST transport now correctly has
OperationContext
- #1154 thanks @gsgalloway - Fix panic when tracing subscriptions - #1170 thanks @alexsn
- [Federation] Do not require a resolver for "empty" extended types - #1121 thanks @csilvers
- Don't point to named maps & slices - #1242
- GET transport now correctly sets a content type - #1215 thanks @ddouglas
- Removed a bunch of unneeded nil checks from codegen - #1243
- Fixed potential memory leak when processing uploads - #1246 thanks @arkhvoid
- Fixed leaking file descriptors when subscription clients hangup - #1248 thanks @sotoslammer
- Fixed incorrect gqlparser import path - #1262 thanks @sateeshpnv
- Load source based on default config in
gqlgen gen
- #1134 thanks @seriousben - Fixed OBJECT directive to fire when there are no field directives - #1255 thanks @s-ichikawa
Thanks to everyone who contributed to this massive release!
v0.11.3
v0.11.2
Added
- Executor is now public, so if you want to build your own handler package, or skip it in tests you can - #1050
- Uploads now make the content type available to the resolver - #1074
- Generated resolvers now pass golint again - #1054
- Can now check if a function is executing within an operation context - #1051
Updated
- Now on the latest urfav cli - #1057
Fixed
- GenerateCode is now only called once during generation - #1079
v0.11.1
v0.11.0
As we start to approach 1.0 we are going to be breaking a few interfaces to make sure things are right. There are a number of breaking changes in this release so please read https://gqlgen.com/recipes/migration-0.11/
Added
- We now have basic Apollo Federation support. Thanks @marwan-at-work for the implementation and everyone thats been helping to test this. Docs - #851 - #885.
- Resolver can now be regenerated as schema changes - Docs #993
Changed
- The original handler plackage has been replaced by one that has been broken down into pluggable
transports
andmiddleware
. Docs. - Updated gqlparser to v2.0.1 - #1027
- Paths now have an interface over them to let the caller know what values are possible vektah/gqlparser#117
- Swap some NotNulls in the introspection types - vektah/gqlparser#120
- Fix interface & union calculation when extending non existent types - vektah/gqlparser#118
- non existing types can be extended now - vektah/gqlparser#116
- generated syntax when using multiple interfaces is now valid - vektah/gqlparser#115
Fixed
v0.10.2
Added
- Better errors when parsing invalid go code - #883
- Better support for int64 - #902
- Modelgen can now be hooked to provide custom tags - #897
Fixed
- gqlgen init uses --schema option correctly now - #889
- directive args are now escaped correctly - #907
- scalar slices containing nils are now supported correctly - vektah/gqlparser#104
- enum validation in variables now fires when it should - #894
- a bug with non deterministic code order - #900
- nils returned by interface resolvers will no longer panic - #929
Performance
v0.10.1
v0.10.0
Changed
- The test client is now much easier to extend, eg to add custom auth - #861
- Directives are now supported on subscription fields. If you already have directives on the fields of Subscription this PR may cause runtime breaks, be sure to test your code. - #871
- the WebsocketInitFunc now returns context.Context in addition to error, this allows ws authentication to be passed via context to resolvers the same way http header auth is - #870
Added
- Added config option to
omit_slice_element_pointers
which if set to true will generate[]Thing
instead of[]*Thing
- #874 map[string]interface
andinterface{}
can now be used in more places - #854- Short package names (eg
models.User
) will now be looked up on the autobind path - #872