Skip to content

Releases: 99designs/gqlgen

v0.12.1

14 Aug 03:28
@lwc lwc
Compare
Choose a tag to compare

Fixed

  • Regenerated runtime for test server

v0.12.0

14 Aug 02:41
@lwc lwc
Compare
Choose a tag to compare

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

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

13 Mar 00:06
Compare
Choose a tag to compare

Fixed

  • Reverted a generate time performance regression from v0.11.2

v0.11.2

05 Mar 01:11
Compare
Choose a tag to compare

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

18 Feb 21:57
Compare
Choose a tag to compare

Fixed

  • Panic handlers were not being called consistently, and were falling back to defaults - #1043
  • Show a sane error message when specifying a follow-schema layout dir that does not exist - #1038

v0.11.0

17 Feb 05:00
Compare
Choose a tag to compare

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 and middleware. Docs.
  • Updated gqlparser to v2.0.1 - #1027

Fixed

  • Bad code generated with nilable self marshalers - #970
  • Several codegen bugs around interface generation - #1009 #1020
  • Better error messages - #1007
  • Added inlcudeDeprecated for enums in introspection - #1028

v0.10.2

28 Nov 06:09
Compare
Choose a tag to compare

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

  • There is a new performance optimization in go modules mode that should speed up generate time by ~20% - #941
  • Users can now opt out of post-validation of generate go code to further speed up builds - #942
  • Model generation can be completly disabled if you are not using it, speeding up builds - #940

v0.10.1

25 Sep 04:05
Compare
Choose a tag to compare

Fixed

  • small bug in test client when establishing websockets with ports - #877

v0.10.0

24 Sep 11:14
Compare
Choose a tag to compare

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 and interface{} can now be used in more places - #854
  • Short package names (eg models.User) will now be looked up on the autobind path - #872

Fixed

  • Better error handling for nil directives - #839
  • Better error handling for returning nil from directives - #838 && #819
  • The share button in the graphql playground is back - #862

v0.9.3

16 Aug 06:21
Compare
Choose a tag to compare

Fixed

  • Multiple directives on the same field no longer generate errors - #829