Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump github.com/Khan/genqlient from 0.7.1-0.20240819060157-4466fc10e4f3 to 0.8.0 #4202

Merged

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Feb 3, 2025

Bumps github.com/Khan/genqlient from 0.7.1-0.20240819060157-4466fc10e4f3 to 0.8.0.

Release notes

Sourced from github.com/Khan/genqlient's releases.

v0.8.0

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 https://github.com/Khan/genqlient/blob/HEAD/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
Changelog

Sourced from github.com/Khan/genqlient's changelog.

v0.8.0

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 https://github.com/Khan/genqlient/blob/main/docs/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

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.

New features:

  • The new optional: generic allows using a generic type to represent optionality. See the documentation for details.
  • For schemas with enum values that differ only in casing, it's now possible to disable smart-casing in genqlient.yaml; see the documentation for casing for details.
  • genqlient now supports .graphqls and .gql file extensions for schemas and queries.
  • More accurately guess the package name for generated code (and warn if the config option -- now almost never needed -- looks wrong).

Bug fixes:

  • Negative pointer directives, i.e., # @genqlient(pointer: false) are now respected even in the when optional: pointer is set in the configuration file.
  • Made name collisions between query/mutation arguments and local function variables less likely.
  • Fix generation issue related to golang type implementation of complex graphql union fragments.
  • Bind correctly to types in the same package as the generated code.
  • Fix non-deterministic generated code when querying graphql interfaces via named fragments.

v0.6.0

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.

New features:

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [github.com/Khan/genqlient](https://github.com/Khan/genqlient) from 0.7.1-0.20240819060157-4466fc10e4f3 to 0.8.0.
- [Release notes](https://github.com/Khan/genqlient/releases)
- [Changelog](https://github.com/Khan/genqlient/blob/main/docs/CHANGELOG.md)
- [Commits](https://github.com/Khan/genqlient/commits/v0.8.0)

---
updated-dependencies:
- dependency-name: github.com/Khan/genqlient
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file go Pull requests that update Go code labels Feb 3, 2025
@dangra dangra merged commit 9634890 into master Feb 3, 2025
30 checks passed
@dangra dangra deleted the dependabot/go_modules/github.com/Khan/genqlient-0.8.0 branch February 3, 2025 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file go Pull requests that update Go code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant