Releases: 99designs/gqlgen
Releases Β· 99designs/gqlgen
v0.17.3
What's Changed
- codegen: allow binding methods with optional variadic arguments by @a8m in #2066
- graphql: add FieldContext.Child field function and enable it in codegen by @a8m in #2062
- Bump Playground version by @qhenkart in #2078
- Add instructions for enabling autobinding by @jpwilliams in #2079
- Add AllowedMethods field to transport.Options by @morikuni in #2080
- Bump minimist from 1.2.5 to 1.2.6 in /integration by @dependabot in #2085
- Fix misprint by @frederikhors in #2102
- Update golangci-lint action by @StevenACoffman in #2103
- Use Github API to update the docs by @frankywahl in #2101
- Fix websocket subscriptions to not double complete by @telemenar in #2095
- Change the error message to be consumer targeted by @telemenar in #2096
- Fix the ability of websockets to get errors by @telemenar in #2097
- Update gqlparser by @StevenACoffman in #2109
New Contributors
- @jpwilliams made their first contribution in #2079
- @morikuni made their first contribution in #2080
- @telemenar made their first contribution in #2095
Full Changelog: v0.17.2...v0.17.3
v0.17.2
What's Changed
- fixed modelgen test schema by @Code-Hex in #2032
- Fix #1961 for Go 1.18 by @StevenACoffman in #2052
Full Changelog: v0.17.1...v0.17.2
v0.17.1
v0.17.0
What's Changed
- Fix #1777 by updating version constant and adding release checklist by @StevenACoffman in #1848
- Update quickstart by @ipfans in #1850
- Remove outdated version reference so example is always for latest by @StevenACoffman in #1851
- fix #1770 minor error in getting-started.md by @fulviodenza in #1771
- Fix #1636 by updating gqlparser by @StevenACoffman in #1857
- Fix #1862 entityResolver directive breaks resolving of required nested fields by @chedom in #1863
- Fix #1776 : Edit and persist headers in GraphiQL by @StevenACoffman in #1856
- Bump node-fetch from 2.6.1 to 2.6.7 in /integration by @dependabot in #1859
- Bump gopkg.in/yaml.v2 from 2.2.4 to 2.2.8 by @dependabot in #1858
- fix: whitelist VERSION and CURRENT_VERSION env vars by @zenyui in #1870
- Comment out autobind in the sample config file by @frederikhors in #1872
- docs: migrate dataloaders sample to graph-gophers/dataloader by @zenyui in #1871
- remove autobind example from init commands by @zachsmith1 in #1949
- fix: typo in dataloader code sample by @plog3050 in #1954
- rename "example" dir to "_examples" by @frederikhors in #1734
- Fix 1955: only print message on @key found on interfaces by @carldunham in #1956
- Upate init CI step by @mtibben in #1957
- Cleanup main by @mtibben in #1958
- Websocket i/o timeout fix by @RobinCPel in #1973
- generate resolvers for input types by @FanFani4 in #1950
- Websocket Error Handling by @RobinCPel in #1975
- Fix broken links in docs by @trenton42 in #1983
- fixed introspection for schema description and specifiedByURL by @Code-Hex in #1986
- Web Socket initialization message timeout by @RobinCPel in #2006
- Bump ajv from 6.10.2 to 6.12.6 in /integration by @dependabot in #2007
- support to generate model for intermediate interface by @Code-Hex in #1982
- fix introspection for description to be nullable by @Code-Hex in #2008
- Clean up docs to clarify how to use a particular version by @mtibben in #2015
- Remove ambient imports by @mtibben in #2016
- Test gqlgen generate in CI by @mtibben in #2017
- Embed templates instead of inlining them by @mtibben in #2019
- Revert "Update quickstart" by @mtibben in #2014
New Contributors
- @fulviodenza made their first contribution in #1771
- @zenyui made their first contribution in #1870
- @zachsmith1 made their first contribution in #1949
- @plog3050 made their first contribution in #1954
- @FanFani4 made their first contribution in #1950
- @trenton42 made their first contribution in #1983
Full Changelog: v0.16.0...v0.17.0
v0.16.0
What's Changed
- Bump gqlgen.com version list by @ipfans in #1778
- Imporve gqlgen test cases by @ipfans in #1773
- Fix #1834: Implement federation correctly by @newerbie in #1835
- Update README.md by @patriotphoenix in #1836
- Fix #1832 @requires directive when @entityResolver is used by @chedom in #1833
- Breaking: Revert "Breaking: Fix plugin addition" by @Code-Hex in #1838
- add PrependPlugin by @Code-Hex in #1839
- Prepare for v0.16.0 release by @StevenACoffman in #1842
New Contributors
- @newerbie made their first contribution in #1835
- @patriotphoenix made their first contribution in #1836
- @chedom made their first contribution in #1833
Full Changelog: v0.15.1...v0.16.0
v0.15.1
v0.15.0
What's Changed
- Resolve requests for federation entities in parallel by @benjaminjkraft in #1285
- serialize ID just like String by @bickyeric in #1340
- Return type loading errors in config.Binder.FindObject by @mathieupost in #1529
- subscriptions: send complete message on resolver panic by @alexsn in #1405
- allow more than 10 different import sources with types by @simborg in #1526
- support input object directive by @Code-Hex in #1525
- Bypass complexity limit on __Schema queries. by @tsh96 in #1581
- fix Options response header by @jjmengze in #1608
- Update to go 1.17 by @mtibben in #1610
- Update errors to use go1.13 semantics by @mtibben in #1606
- [POC/RFC] Split examples into separate go module by @lwc in #1607
- Update golangci linter by @mtibben in #1612
- Clean up non-module deps by @mtibben in #1613
- Also test against 1.16 by @mtibben in #1614
- Update docs for getting started by @mtibben in #1617
- Update disabling Introspection by @flymedllva in #1624
- Fix typo in the getting-started docs by @robertmarsal in #1628
- Appropriately Handle Falsy Default Field Values by @wilhelmeek in #1623
- remove redundant favicon by @ash99d in #1638
- Marshaling & Unmarshaling time return initial value by @frankywahl in #1515
- Forward
go mod tidy
stdout/stderr by @benjaminjkraft in #1619 - Fix example run instructions by @minus7 in #1640
- Update time format for
Time
scalar by @cameronbrill in #1648 - Add QR and KVK to common initialisms by @RichardLindhout in #1419
- Bump tmpl from 1.0.4 to 1.0.5 in /integration by @dependabot in #1627
- Fixes #1653: update docs and wrap error if not *gqlerror.Error by @StevenACoffman in #1654
- Enable lowercase type names in GraphQL schema to properly render by @tkuhlman in #1359
- adding support for sending extension with gqlgen client by @schafle in #1633
- add extraTag directive by @j75689 in #1173
- handling unconventional naming used in type names by @vnj-uber in #1549
- Add graphql schema aware field level hook to modelgen by @tprebs in #1650
- Reload config packages after generating models by @wendorf in #1491
- codegen: ensure Elem present before using by @tmc in #1317
- remove redundant WithOperationContext call by @bickyeric in #1641
- fix double indirect bug by @carldunham in #1604
- Add ReplacePlugin option to replace a specific plugin by @tprebs in #1657
- raise panic when nested @requires are used on federation by @vvakame in #1655
- Update GQLgen test client to work with multipart form data by @Sonna in #1418
- Allow custom websocket upgrader by @foreverest in #1595
- Revert 1595 by @StevenACoffman in #1658
- Revert "Update GQLgen test client to work with multipart form data" by @StevenACoffman in #1659
- Add a config option to skip running "go mod tidy" on code generation by @yar00001 in #1644
- Adds RootFieldInterceptor to extension interfaces by @CoreyWinkelmann in #1647
- Update GQLgen test client to work with multipart form data (take 2) by @Sonna in #1661
- Add follow-schema layout for exec by @kevinmbeaulieu in #1309
- Update directives doc page by @johnmaguire in #1660
- Merge Inline Fragment Nested Interface Fields by @wilhelmeek in #1663
- Add ICMP to common initialisms by @johnmaguire in #1666
- ContextMarshaler by @duckbrain in #1652
- Fix 1138: nested fieldset support by @carldunham in #1669
- feat: generate resolvers for inputs if fields are missing by @danielvladco in #1404
- Update getting-started.md by @wejafoo in #1674
- Fix nil pointer dereference when an invalid import is bound to a model by @johnmaguire in #1676
- Rename
@extraTag
directive to@goTag
and make repeatable by @wilhelmeek in #1680 - Reimplement goTag using FieldMutateHook by @tprebs in #1682
- Support for multiple @key directives in federation by @carldunham in #1684
- DOC: Fixed indention in example code. by @hsblhsn in #1693
- Revert "Support for multiple @key directives in federation" by @StevenACoffman in #1698
- Entity resolver tests by @MiguelCastillo in #1697
- Ignore generated files from test coverage by @StevenACoffman in #1699
- transport: implement
graphql-transport-ws
ws sub-protocol by @jordanabderrachid in #1507 - Replace ! with _ in root.generated file to avoid build conflicts by @yar00001 in #1701
- Adding entity resolver tests for errors, entities with different type⦠by @MiguelCastillo in #1708
- Resolve multiple federated entities in a single entityResolve call by @MiguelCastillo in #1709
- Separate golangci-lint from other jobs by @StevenACoffman in #1712
- Optimize performance for binder, imports and packages (Rebased from sbalabanov/master) by @StevenACoffman in #1711
- Cleaning up extra return in federation generated code by @MiguelCastillo in #1713
- Fix #1704: handle @required nested fields as in @key by @carldunham in #1706
- Fix plugin addition by @Erwin-k in #1717
- add federation tests by @carldunham in #1719
- Add support for graphql-transport-ws with duplex ping-pong by @zdraganov in #1578
- Don't overwrite field arguments when none match by @edigaryev in #1725
- Close Websocket Connection on Context close/cancel by @RobinCPel in #1728
- fix: automatically register built-in directive goTag by @tprebs in #1737
- Fix list coercion when using graphql variables by @tprebs in #1740
- Add CSV and PDF to common initialisms by @s-takehana in #1741
- Support for multiple @key directives in federation (reworked) by @carldunham in #1723
- Downgrade to Go 1.16 by @StevenACoffman in #1743
- Added pointer to a solution for
no Go files
err by @aircliff in #1747 - Avoid problems with
val
being undefined in the federation template. by @csilvers in #1760 - Migrate playgrounds to GraphiQL by @kirkbyo in #1751
- Improve performance of MarshalBoolean by @tsh96 in #1757
- Fix #1762: Reload packages before merging type systems by @ipfans in #1763
New Contributors
- @bickyeric made their first contribution in #1340
- @mathieupost made their first contribution in #1529
- @simborg made their first contribution in #1526
- @Code-Hex made their first contribution in #1525
- @tsh96 made their first contribution in #1581
- @jjmengze made their first contribution in #1608
- @flymedllva made their first contribution in #1624
- @robertmarsal made their first contribution in #1628
- @ash9...
v0.14.0
Added
- Added a changelog :-) Following the same style as Apollo Client because that feels like it gives good thanks to the community contributors.
By @MichaelJCompton in #1512 - Added support for methods returning
(v, ok)
shaped values to support Prisma Go client.
By @steebchen in #1449 - Added a new API to finish an already validated config
By @benjaminjkraft in #1387
Changed
- Updated to gqlparser to v2.2.0.
By @lwc in #1514 - GraphQL playground updated to 1.7.26.
By @ddouglas in #1436
Fixed
- Removed a data race by copying when input fields have default values.
By @skaji in #1456 - v0.12.2 broke the handling of pointers to slices by calling the custom Marshal and Unmarshal functions on the entire slice. It now correctly calls the custom Marshal and Unmarshal methods for each element in the slice.
By @ananyasaxena in #1363 - Changes in go1.16 that mean go.mod and go.sum aren't always up to date. Now
go mod tidy
is run after code generation.
By @lwc in #1501 - Errors in resolving non-nullable arrays were not correctly bubbling up to the next nullable field.
By @wilhelmeek in #1480 - Fixed a potential deadlock in calling error presenters.
By @vektah in #1399 - Fixed
collectFields
not correctly respecting alias fields in fragments.
By @vmrajas in #1341 - Return introspection document in stable order.
- By @nyergler in #1497
v0.13.0
Added
IsResolver
added toFieldContext
- #1316
Updated
- BC break: User errors returned from directives & resolvers are now consistently wrapped in
gqlerror.Errors
internally by the runtime, which has been updated to support go 1.13 unwrapping - #1312- Since #1115 was merged, errors from inputs have been wrapped, but didn't support unwrapping, leading to #1291
- With all errors now wrapped before the error presenter is called, custom error presenters that use type assertions will be broken.
errors.As
must instead be used to assert/convert error types in custom error presenters.- See the updated docs on customising the error presenter and the blog post on go 1.13 errors for more details.
- Typos & tweaks to docs - #1295, #1324
v0.12.2
Fixed
- Fixed error during
gqlgen init
that was making starting a new project via the getting started guide impossible - Fix for selecting fragments on different types with overlapping fields - #1280 thanks @jatindevdg