This release introduces the highly requested "simple" flag for code generation, making Connect significantly more ergonomic for everyday RPC development.
The new simple flag in protoc-gen-connect-go generates cleaner, more intuitive client and handler interfaces that eliminate request/response wrappers for most use cases. This addresses community feedback about verbosity and provides a more straightforward API. When enabled, metadata (headers/trailers) can be passed through context instead of explicit wrapper objects, optimizing for the common case where developers don't need direct access to HTTP headers.
What's Changed
Enhancements
- Add simple flag for more ergonomic generated code by @bufdev and @smaye81 in #851
- Update Go to v1.24 and document http.Protocol use removing the dependency on
golang.org/x/net/http2
by @maxbrunet in #873, #877 - Add support for Edition 2024 by @emcfarlane in #878
Bugfixes
Other changes
- Go version support updated to latest two instead of three by @jhump in #837
- CI testing improvements by @pkwarren and @jhump in #838, #839
- Code quality improvements by @mattrobenolt and @bufdev in #841, #867
- Documentation improvements by @adlion and @stefanvanburen in #821,
#880
New Contributors
- @adlion made their first contribution in #821
- @maxbrunet made their first contribution in #873
- @stefanvanburen made their first contribution in #880
Full Changelog: v1.18.1...v1.19.0