grpc-gateway v2.29.0 版本更新介绍
发布日期: 2026-04-15
版本号: v2.29.0
grpc-gateway v2.29.0版本发布多项更新:修复了在使用不透明API时可能出现的复制锁问题,允许在路径参数中使用proto3可选字段,新增了禁用HTTP方法覆盖的选项,并添加了Go文档徽章至README。此外,修复了错误处理路径中缺少的返回语句,支持在文件被标记为弃用时自动弃用相关字段和方法,并增加了对2024版protobuf规范的支持。本次更新还迎来了多位新的贡献者。
更新内容 (中文)
变更内容
- 修复:使用 proto.Merge 以避免在 use_opaque_api=true 时出现复制锁问题,由 @emahiro 在 https://github.com/grpc-ecosystem/grpc-gateway/pull/6383 中提交
- 修复:允许路径参数中的 proto3 可选字段,由 @susanachl 在 https://github.com/grpc-ecosystem/grpc-gateway/pull/6416 中提交
- 新增禁用 HTTP 方法覆盖的选项,由 @achew22 在 https://github.com/grpc-ecosystem/grpc-gateway/pull/6447 中提交
- 在 README 中添加 Go 文档徽章,由 @achew22 在 https://github.com/grpc-ecosystem/grpc-gateway/pull/6448 中提交
- 修复:在错误处理路径中添加缺失的返回语句,由 @jet-go 在 https://github.com/grpc-ecosystem/grpc-gateway/pull/6561 中提交
- 当文件被弃用时弃用字段和方法,由 @aidandj 在 https://github.com/grpc-ecosystem/grpc-gateway/pull/6613 中提交
- 添加 2024 版本支持,由 @printfn 在 https://github.com/grpc-ecosystem/grpc-gateway/pull/6622 中提交
新贡献者
- @emahiro 在 https://github.com/grpc-ecosystem/grpc-gateway/pull/6383 中首次贡献
- @susanachl 在 https://github.com/grpc-ecosystem/grpc-gateway/pull/6416 中首次贡献
- @jet-go 在 https://github.com/grpc-ecosystem/grpc-gateway/pull/6561 中首次贡献
- @aidandj 在 https://github.com/grpc-ecosystem/grpc-gateway/pull/6613 中首次贡献
- @printfn 在 https://github.com/grpc-ecosystem/grpc-gateway/pull/6622 中首次贡献
完整变更日志: https://github.com/grpc-ecosystem/grpc-gateway/compare/v2.28.0...v2.29.0
更新内容 (原始)
What’s Changed
- fix: use proto.Merge to avoid copylocks with use_opaque_api=true by @emahiro in https://github.com/grpc-ecosystem/grpc-gateway/pull/6383
- fix: allow proto3 optional fields in path parameters by @susanachl in https://github.com/grpc-ecosystem/grpc-gateway/pull/6416
- Add option to disable HTTP method override by @achew22 in https://github.com/grpc-ecosystem/grpc-gateway/pull/6447
- Add Go documentation badge to README by @achew22 in https://github.com/grpc-ecosystem/grpc-gateway/pull/6448
- fix: add missing return statements in error handler paths by @jet-go in https://github.com/grpc-ecosystem/grpc-gateway/pull/6561
- Deprecate fields and methods if file is deprecated by @aidandj in https://github.com/grpc-ecosystem/grpc-gateway/pull/6613
- Add edition 2024 support by @printfn in https://github.com/grpc-ecosystem/grpc-gateway/pull/6622
New Contributors
- @emahiro made their first contribution in https://github.com/grpc-ecosystem/grpc-gateway/pull/6383
- @susanachl made their first contribution in https://github.com/grpc-ecosystem/grpc-gateway/pull/6416
- @jet-go made their first contribution in https://github.com/grpc-ecosystem/grpc-gateway/pull/6561
- @aidandj made their first contribution in https://github.com/grpc-ecosystem/grpc-gateway/pull/6613
- @printfn made their first contribution in https://github.com/grpc-ecosystem/grpc-gateway/pull/6622
Full Changelog: https://github.com/grpc-ecosystem/grpc-gateway/compare/v2.28.0...v2.29.0
下载链接
- grpc-gateway-v2.29.0.tar.gz
- grpc-gateway_2.29.0_checksums.txt
- protoc-gen-grpc-gateway-v2.29.0-darwin-arm64
- protoc-gen-grpc-gateway-v2.29.0-darwin-x86_64
- protoc-gen-grpc-gateway-v2.29.0-linux-arm64
- protoc-gen-grpc-gateway-v2.29.0-linux-x86_64
- protoc-gen-grpc-gateway-v2.29.0-windows-arm64.exe
- protoc-gen-grpc-gateway-v2.29.0-windows-x86_64.exe
- protoc-gen-openapiv2-v2.29.0-darwin-arm64
- protoc-gen-openapiv2-v2.29.0-darwin-x86_64
- protoc-gen-openapiv2-v2.29.0-linux-arm64
- protoc-gen-openapiv2-v2.29.0-linux-x86_64
- protoc-gen-openapiv2-v2.29.0-windows-arm64.exe
- protoc-gen-openapiv2-v2.29.0-windows-x86_64.exe