Skip to content

Commit

Permalink
Release v0.7.0 (#324)
Browse files Browse the repository at this point in the history
It's getting close to a year, we should do a release! As usual I did a
bit of rewording in the changelog, and also changed this and past
changelogs to not treat dropping older Go versions as breaking per our
handy new versioning policy.

Fixes #321.

I have:
- [x] Written a clear PR title and description (above)
- [x] Signed the [Khan Academy CLA](https://www.khanacademy.org/r/cla)
- [x] Added tests covering my changes, if applicable (n/a)
- [x] Included a link to the issue fixed, if applicable
- [x] Included documentation, for new features (n/a)
- [x] Added an entry to the changelog
  • Loading branch information
benjaminjkraft authored Mar 5, 2024
1 parent 9f8e2b2 commit 83d2f25
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,25 @@ When releasing a new version:

<!-- Add new changes in this section! -->

Note that genqlient is now tested from Go 1.20 through Go 1.22.

### Breaking changes:

- genqlient now requires Go 1.20 or higher. It may still work with earlier versions, but we aren't explicitly keeping dependency modules to Go 1.18 and lower.
### New features:

### Bug fixes:

## 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](genqlient.yaml) 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](genqlient.yaml) for `casing` for details.
- Support .graphqls and .gql file extensions
- 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:
- The presence of negative pointer directives, i.e., `# @genqlient(pointer: false)` are now respected even in the when `optional: pointer` is set in the configuration file.
- 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.
Expand All @@ -44,10 +48,6 @@ Note that genqlient is now tested from Go 1.20 through Go 1.22.

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.

### Breaking changes:

- genqlient now requires Go 1.18 or higher.

### New features:

- You can now bind all types from a package in `genqlient.yaml` using the new `package_bindings` option.
Expand All @@ -66,7 +66,6 @@ Version 0.5.0 adds several new configuration options and convenience features. N

### Breaking changes:

- genqlient now requires Go 1.16 or higher.
- The [`graphql.Client`](https://pkg.go.dev/github.com/Khan/genqlient/graphql#Client) interface now accepts two structs for the request and response, to allow future expansion, rather than several individual arguments. Clients implementing the interface themselves will need to change the signature; clients who simply call `graphql.NewClient` are unaffected.

### New features:
Expand Down

0 comments on commit 83d2f25

Please sign in to comment.