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
Configuration
📅Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever MR is behind base branch, or you tick the rebase/retry checkbox.
🔕Ignore: Close this MR and you won't be reminded about this update again.
If you want to rebase/retry this MR, check this box
This MR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [github.com/Khan/genqlient](https://github.com/Khan/genqlient) | require | minor | `v0.7.0` -> `v0.8.0` |
---
### Release Notes
<details>
<summary>Khan/genqlient (github.com/Khan/genqlient)</summary>
### [`v0.8.0`](https://github.com/Khan/genqlient/releases/tag/v0.8.0)
[Compare Source](https://github.com/Khan/genqlient/compare/v0.7.0...v0.8.0)
This release adds support for genqlient subscriptions; see the [documentation](subscriptions.md) for more, and thanks to [@​matthieu4294967296moineau](https://github.com/matthieu4294967296moineau) for the original implementation and [@​HaraldNordgren](https://github.com/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`](client_config.md#handling-errors).
##### 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](subscriptions.md) for more details on how to use subscriptions.
- genqlient now supports double-star globs for schema and query files; see [`genqlient.yaml` docs](genqlient.yaml) 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
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
♻ **Rebasing**: Whenever MR is behind base branch, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this MR and you won't be reminded about this update again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this MR, check this box
---
This MR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xNTYuMSIsInVwZGF0ZWRJblZlciI6IjM5LjE1Ni4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
This MR contains the following updates:
v0.7.0->v0.8.0Release Notes
Khan/genqlient (github.com/Khan/genqlient)
v0.8.0Compare Source
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:
omitempty: false(including implicit behaviour) when using pointer on non-null input field.As-ing tographql.HTTPError.New features:
graphql-transport-wsbut can be set to another value.See the documentation for more details on how to use subscriptions.
genqlient.yamldocs for more.Is/As-able errors when the HTTP request returns a non-200 status.Bug fixes:
omitemptyon non-nullable input field, if the field has a defaultomitempty: falseon an input field, even when it is non-nullableomitemptyandpointerinput types validation whenuse_struct_referenceis used, as the generated type is often not compatible with validation logic.allow_broken_featuresoption, which no longer did anything, has been removedConfiguration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever MR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this MR and you won't be reminded about this update again.
This MR has been generated by Renovate Bot.
mentioned in issue #4