Skip to content

Releases: Khan/genqlient

v0.8.1

18 May 19:09
6309a6e
Compare
Choose a tag to compare

This release fixes a bug introduced in v0.8.0 breaking path resolution on Windows, along with some other small features and bugs.

New features:

  • Added @genqlient(alias) directive to customize field names without requiring GraphQL aliases (fixes #367)
  • Added auto_camel_case config option to automatically convert snake_case to camelCase in both field names and type names

Bug fixes:

  • fixed path resolution on Windows
  • fixed documentation link in introduction.md
  • upgraded version of alexflint/go-arg from 1.4.2 to 1.5.1
  • fixed a typo in the struct + fragment error message

v0.8.0

03 Feb 00:21
78a03a6
Compare
Choose a tag to compare

This release adds support for genqlient subscriptions; see the documentation for more, and thanks to @matthieu4294967296moineau for the original implementation and @HaraldNordgren for additional testing and improvements.

Note that genqlient now requires Go 1.22.5 or higher, and is tested through Go 1.23.3.

Breaking changes:

  • genqlient now forbids omitempty: false (including implicit behaviour) when using pointer on non-null input field.
  • The error text for HTTP errors has changed slightly. If you were parsing it, switch to As-ing to graphql.HTTPError.

New features:

  • genqlient now supports subscriptions; the websocket protocol is by default graphql-transport-ws but can be set to another value.
    See the documentation for more details on how to use subscriptions.
  • genqlient now supports double-star globs for schema and query files; see genqlient.yaml docs for more.
  • genqlient now generates slices containing all enum values for each enum type.
  • genqlient now returns Is/As-able errors when the HTTP request returns a non-200 status.

Bug fixes:

  • omitempty validation:
    • allow omitempty on non-nullable input field, if the field has a default
    • allow omitempty: false on an input field, even when it is non-nullable
  • don't do omitempty and pointer input types validation when use_struct_reference is used, as the generated type is often not compatible with validation logic.
  • the allow_broken_features option, which no longer did anything, has been removed

v0.7.0

05 Mar 07:00
83d2f25
Compare
Choose a tag to compare

In addition to several new features and bugfixes, along with this release comes reorganized documentation for genqlient. Note that genqlient now requires Go 1.20 or higher, and is tested through Go 1.22.

What's Changed

New Contributors

Full Changelog: v0.6.0...v0.7.0

v0.6.0

06 May 18:25
94b6a71
Compare
Choose a tag to compare

Version 0.6.0 includes some small features and bugfixes. Note that genqlient now requires Go 1.18 or higher, and is tested through Go 1.20.

What's Changed

New Contributors

Full Changelog: v0.5.0...v0.6.0

v0.5.0

06 May 18:24
1f44dc6
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.4.0...v0.5.0

v0.4.0

06 May 18:24
8e8a632
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.3.0...v0.4.0

v0.3.0

06 May 18:24
9906a7b
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.2.0...v0.3.0

v0.2.0

06 May 18:23
1f65445
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.1.0...v0.2.0

v0.1.0

06 May 18:23
1d6e728
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: https://github.com/Khan/genqlient/commits/v0.1.0