Releases: Khan/genqlient
Releases · Khan/genqlient
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.
What's Changed
- Add "generic" option to the "optional" configuration for handling nullable types by @DylanRJohnston in #252
- Documentation tweaks relating to releases by @benjaminjkraft in #271
- Add some better tests for use_struct_references by @benjaminjkraft in #273
- Add an option to handle enums with ugly casing by @benjaminjkraft in #270
- Add some more tests for config validation, and fix some gaps by @benjaminjkraft in #274
- Add consideration for pointer false directive when optional: pointer configuration option is used by @spencermurray in #280
- Update gqlparser and gqlgen dependencies by @StevenACoffman in #282
- Update gqlparser to omit comments by @StevenACoffman in #284
- bugfix: local variable 'data' colliding with argument name by @zholti in #291
- Pin lint workflow's Go version by @benjaminjkraft in #311
- Upgrade golangci-lint and which go we run it with by @benjaminjkraft in #314
- fix implementation type generation for fragment on a union by @zzh8829 in #310
- Support more valid graphql file extensions by @zzh8829 in #309
- Add tests on Go 1.22, and upgrade x/tools to make them work by @benjaminjkraft in #315
- Update gqlgen to latest by @StevenACoffman in #317
- move genqlient Go module to 1.20 by @StevenACoffman in #318
- Improve package-sniffing and bind correctly to types in the same package by @benjaminjkraft in #316
- Reorganize and improve documentation by @benjaminjkraft in #322
- Fix non-deterministic generated code involving interfaces and fragments. by @csilvers in #323
- Release v0.7.0 by @benjaminjkraft in #324
New Contributors
- @DylanRJohnston made their first contribution in #252
- @spencermurray made their first contribution in #280
- @zholti made their first contribution in #291
- @zzh8829 made their first contribution in #310
Full Changelog: v0.6.0...v0.7.0
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.
What's Changed
- Add configuration AutoBindings method by @NuVivo314 in #169
- Mention how to update the snapshot tests by @benjaminjkraft in #210
- make output deterministic for graphql interfaces by @vikstrous2 in #209
- Add more information about updating snapshots by @benjaminjkraft in #211
- Fix incorrectly formatted error string by @breml in #213
- Bump golangci-lint and (max) Go versions by @benjaminjkraft in #219
- Give a better error if package_bindings is a file by @benjaminjkraft in #221
- Move changelog entry to the right version by @benjaminjkraft in #217
- Fix documentation for
optional: value
by @benjaminjkraft in #229 - Support package-names with dashes in them by @benjaminjkraft in #232
- fixed "for" directive documentation by @bafko in #235
- Expose the graphql operation as a constant in the generated genqlient file by @csilvers in #238
- Rename the query constant to have an underscore in it. by @csilvers in #241
- Automatically update generated files if UPDATE_SNAPSHOTS=1 by @benjaminjkraft in #243
- PR 239 update: Adding more logging for the initial generate setup by @StevenACoffman in #246
- Fix minor mistake in code sample in README by @omarkohl in #253
- Bump golang.org/x/sys from 0.0.0-20220319134239-a9b59b0215f8 to 0.1.0 by @dependabot in #259
- Bump minimum Go version to 1.18 by @benjaminjkraft in #262
- Update gqlgen to latest by @StevenACoffman in #268
- fix: premarshal structs get generated with omitempty tag by @kevinmichaelchen in #267
- Release v0.6.0 by @benjaminjkraft in #269
New Contributors
- @NuVivo314 made their first contribution in #169
- @vikstrous2 made their first contribution in #209
- @breml made their first contribution in #213
- @bafko made their first contribution in #235
- @omarkohl made their first contribution in #253
- @dependabot made their first contribution in #259
- @kevinmichaelchen made their first contribution in #267
Full Changelog: v0.5.0...v0.6.0
v0.5.0
What's Changed
- Update tested Go versions (and deps) by @benjaminjkraft in #179
- Embed data files in the binary by @benjaminjkraft in #180
- Remove ioutil by @benjaminjkraft in #181
- Upgrade golangci-lint by @benjaminjkraft in #182
- Adding GraphQL Extensions by @janboll in #184
- Add support for client that uses GET as transport mechanism by @salman-rb in #186
- Add mention of tools.go to FAQ by @benjaminjkraft in #189
- Allow absolute paths in schema files. by @csilvers in #192
- Reject operation or argument names that are Go keywords by @benjaminjkraft in #195
- Simplify errors tests a bit so they don't all have to write a schema by @benjaminjkraft in #196
- Validate against a case gqlparser doesn't catch by @benjaminjkraft in #197
- Add support for mapping all nullable types as pointers by @connec in #198
- Add tests to check that genqlient handles covariance by @benjaminjkraft in #203
- Be more precise in deciding whether to add the schema prelude by @benjaminjkraft in #205
- Release v0.5.0 by @benjaminjkraft in #208
New Contributors
- @janboll made their first contribution in #184
- @salman-rb made their first contribution in #186
- @connec made their first contribution in #198
Full Changelog: v0.4.0...v0.5.0
v0.4.0
What's Changed
- Add getter methods to all fields, not just where needed by @benjaminjkraft in #126
- Add CODEOWNERS so community PR reviews are auto-assigned by @StevenACoffman in #135
- ⚡️ Accept array of string as valid input schema path. by @hsblhsn in #134
- Allow creating aliases for builtin types, using
typename
. by @csilvers in #133 - Align support for multiple operation-files and multiple schema-files by @benjaminjkraft in #137
- Fix link to genqlient.yaml from FAQ.md by @johnmaguire in #140
- Fix error handling during config init by @johnmaguire in #142
- Walk parent directories to find config file by @johnmaguire in #141
- docs: fix go generate directive by @tarrencev in #143
- Update dependencies to latest by @StevenACoffman in #144
- Allow compatibility when using introspection derived client schema's by @suessflorian in #145
- TYPO: Fixed variable name and position in interface definition. by @hsblhsn in #154
- Add "struct_references" configuration by @nathanstitt in #155
- Sort operations to guarantee a stable order by @edigaryev in #156
- Move 'Code generated by' disclaimer up by @adambabik in #161
- Avoid capitalized error strings in generated code by @adambabik in #162
- gqlparser v2.3.1 by @StevenACoffman in #166
- Add a PR template by @benjaminjkraft in #171
- Reject the use of both typename and bind by @benjaminjkraft in #172
- Reject a glob that matches no files by @benjaminjkraft in #173
- Release v0.4.0 by @benjaminjkraft in #174
New Contributors
- @hsblhsn made their first contribution in #134
- @johnmaguire made their first contribution in #140
- @tarrencev made their first contribution in #143
- @suessflorian made their first contribution in #145
- @nathanstitt made their first contribution in #155
- @edigaryev made their first contribution in #156
- @adambabik made their first contribution in #161
Full Changelog: v0.3.0...v0.4.0
v0.3.0
What's Changed
- Allow genqlient types to be marshaled safely by @benjaminjkraft in #120
- Add support for "flattening" fragment-spreads by @benjaminjkraft in #121
- [🔥AUDIT🔥] Add white background for social preview image by @benjaminjkraft in #122
- Add a mechanism to specify options on input-type fields by @benjaminjkraft in #124
- [🔥AUDIT🔥] Release v0.3.0 by @benjaminjkraft in #125
Full Changelog: v0.2.0...v0.3.0
v0.2.0
What's Changed
- Actually mark genqlient as ready to use! by @benjaminjkraft in #102
- Refactor import-loading to simplify the type-generation code by @benjaminjkraft in #101
- Fix a bug in type-name collapsing introduced by #71 by @benjaminjkraft in #110
- Refactor argument-handling to use a struct by @benjaminjkraft in #103
- Add support for binding with a custom marshal/unmarshal function by @benjaminjkraft in #104
- Fix broken behavior for several options on the same node by @benjaminjkraft in #105
- [🔥AUDIT🔥] Fix tests after merge by @benjaminjkraft in #112
- [🔥AUDIT🔥] Remove security issue template by @benjaminjkraft in #114
- Let the Doer Do it by @StevenACoffman in #115
- Fix bugs relating to optional fields with custom (un)marshalers by @benjaminjkraft in #116
- Add clearer error text a few places by @benjaminjkraft in #117
- [🔥AUDIT🔥] Release v0.2.0 by @benjaminjkraft in #119
Full Changelog: v0.1.0...v0.2.0
v0.1.0
What's Changed
- Correct string zero value in design doc by @dnerdy in #53
- Enable golangci-lint by @benjaminjkraft in #49
- Add integration tests against a gqlgen server by @benjaminjkraft in #50
- Use yaml.UnmarshalStrict by @benjaminjkraft in #55
- Fix typo in README by @benjaminjkraft in #58
- Big refactor to separate operation-traversal from code-generation by @benjaminjkraft in #51
- Add support for interfaces, part 1: the simplest cases by @benjaminjkraft in #52
- Add support for interfaces, part 2: list-of-interface by @benjaminjkraft in #54
- Add support for interfaces, part 3: automatically add __typename by @benjaminjkraft in #56
- Add support for interfaces, part 4: getter methods by @benjaminjkraft in #57
- [🔥AUDIT🔥] Mark interfaces as enabled! by @benjaminjkraft in #67
- Document and improve support for binding non-scalars to a specific type by @benjaminjkraft in #69
- Add support for fragments, part 0: design sketch by @benjaminjkraft in #59
- Add support for inline fragments by @benjaminjkraft in #65
- Return clearer errors when __typename is missing by @benjaminjkraft in #68
- [🔥AUDIT🔥] Fix snapshots from changes to __typename error by @benjaminjkraft in #72
- If requested, validate binding-types get the right fields by @benjaminjkraft in #70
- Fix type-naming in the presence of interfaces, and refactor it a lot by @benjaminjkraft in #71
- Add IDEs to gitignore and add default config file name by @StevenACoffman in #74
- Clean up, test, and document ContextType and ClientGetter options by @benjaminjkraft in #77
- Create a separate module for our golangci-lint version by @benjaminjkraft in #80
- Add support for concrete-typed named fragments by @benjaminjkraft in #75
- Add support for abstract-typed named fragments by @benjaminjkraft in #79
- Add tests for behavior on error by @benjaminjkraft in #83
- Add a flag --init to write a default config by @benjaminjkraft in #81
- Clean up godoc by @benjaminjkraft in #82
- Reorganize documentation to make room to grow by @benjaminjkraft in #84
- Make README logo work in dark mode by @benjaminjkraft in #87
- Avoid putting incorrect extensions on error snapshot files by @benjaminjkraft in #92
- Picking some nits that my IDE complained about by @StevenACoffman in #91
- Add a bunch more documentation (and rewrite README) by @benjaminjkraft in #86
- Clean up example a little by @benjaminjkraft in #89
- Lint against fmt.Println except in main.go by @benjaminjkraft in #98
- Add a new option to treat an interface like an object by @benjaminjkraft in #97
- Add support for specifying type-names, and conflict-detection by @benjaminjkraft in #94
- Autofix lint when we can by @benjaminjkraft in #99
- [🔥AUDIT🔥] Typo fix by @benjaminjkraft in #100
- Add open-source boilerplate by @benjaminjkraft in #96
New Contributors
Full Changelog: https://github.com/Khan/genqlient/commits/v0.1.0