grpc-gateway v2.21.0 版本更新介绍
发布日期: 2024-07-25
版本号: v2.21.0
此次更新主要包含以下内容:新增多项功能,包括通过go build或go install安装时使用runtime/debug:BuildInfo中的版本信息、添加mux中间件并注入HTTP路由模式、支持方法弃用选项、新增gRPC网关生成脚本;修复了开放API包命名策略、生成脚本URL问题及32位系统构建问题;升级CI至goreleaser v2并更新相关文档。此外,有五位新贡献者(@nikitaksv、@vajexal、@akoserwal、@DanielLiu1123、@gibmat)完成了首次代码提交。
更新内容 (中文)
更新内容
- feat: 当通过
go build
安装时,使用 runtime/debug:BuildInfo 中的版本信息 by @MakDon in https://github.com/grpc-ecosystem/grpc-gateway/pull/4359 - feat: 添加多路复用中间件并注入 HTTP 路由模式 by @nikitaksv in https://github.com/grpc-ecosystem/grpc-gateway/pull/4290
- 修复 #3917: 新增 OpenAPI 包命名策略 by @jgiles in https://github.com/grpc-ecosystem/grpc-gateway/pull/4372
- feat: 当通过
go install
安装时,使用 buildInfo.Main.Version 作为版本号 by @MakDon in https://github.com/grpc-ecosystem/grpc-gateway/pull/4390 - 新增对方法弃用选项的支持 by @vajexal in https://github.com/grpc-ecosystem/grpc-gateway/pull/4373
- 添加 gRPC 网关生成脚本 by @akoserwal in https://github.com/grpc-ecosystem/grpc-gateway/pull/4426
- 修复 gen-grpc-gateway-api 的 URL 生成 by @akoserwal in https://github.com/grpc-ecosystem/grpc-gateway/pull/4434
- ci: 升级至 goreleaser v2 by @johanbrandhorst in https://github.com/grpc-ecosystem/grpc-gateway/pull/4437
- docs: 在相关项目中添加 grpc-starter 转码 by @DanielLiu1123 in https://github.com/grpc-ecosystem/grpc-gateway/pull/4456
- 修复 32 位系统上的构建问题 by @gibmat in https://github.com/grpc-ecosystem/grpc-gateway/pull/4557
新贡献者
- @nikitaksv 在 https://github.com/grpc-ecosystem/grpc-gateway/pull/4290 完成首次贡献
- @vajexal 在 https://github.com/grpc-ecosystem/grpc-gateway/pull/4373 完成首次贡献
- @akoserwal 在 https://github.com/grpc-ecosystem/grpc-gateway/pull/4426 完成首次贡献
- @DanielLiu1123 在 https://github.com/grpc-ecosystem/grpc-gateway/pull/4456 完成首次贡献
- @gibmat 在 https://github.com/grpc-ecosystem/grpc-gateway/pull/4557 完成首次贡献
完整变更日志: https://github.com/grpc-ecosystem/grpc-gateway/compare/v2.20.0...v2.21.0
更新内容 (原始)
What’s Changed
- feat: Use version info from runtime/debug:BuildInfo when installed by go build by @MakDon in https://github.com/grpc-ecosystem/grpc-gateway/pull/4359
- feat: add mux middlewares and inject http pattern by @nikitaksv in https://github.com/grpc-ecosystem/grpc-gateway/pull/4290
- Fixes #3917: Add package openapi naming strategy. by @jgiles in https://github.com/grpc-ecosystem/grpc-gateway/pull/4372
- feat: use buildInfo.Main.Version as version when installed by go install by @MakDon in https://github.com/grpc-ecosystem/grpc-gateway/pull/4390
- Add support for method’s deprecated option by @vajexal in https://github.com/grpc-ecosystem/grpc-gateway/pull/4373
- adding gRPC gateway generator script by @akoserwal in https://github.com/grpc-ecosystem/grpc-gateway/pull/4426
- fix url gen-grpc-gateway-api by @akoserwal in https://github.com/grpc-ecosystem/grpc-gateway/pull/4434
- ci: upgrade to goreleaser v2 by @johanbrandhorst in https://github.com/grpc-ecosystem/grpc-gateway/pull/4437
- docs: add grpc-starter transcoding to related projects by @DanielLiu1123 in https://github.com/grpc-ecosystem/grpc-gateway/pull/4456
- Fix build on 32bit systems by @gibmat in https://github.com/grpc-ecosystem/grpc-gateway/pull/4557
New Contributors
- @nikitaksv made their first contribution in https://github.com/grpc-ecosystem/grpc-gateway/pull/4290
- @vajexal made their first contribution in https://github.com/grpc-ecosystem/grpc-gateway/pull/4373
- @akoserwal made their first contribution in https://github.com/grpc-ecosystem/grpc-gateway/pull/4426
- @DanielLiu1123 made their first contribution in https://github.com/grpc-ecosystem/grpc-gateway/pull/4456
- @gibmat made their first contribution in https://github.com/grpc-ecosystem/grpc-gateway/pull/4557
Full Changelog: https://github.com/grpc-ecosystem/grpc-gateway/compare/v2.20.0...v2.21.0
下载链接
- grpc-gateway_2.21.0_checksums.txt
- multiple.intoto.jsonl
- protoc-gen-grpc-gateway-v2.21.0-darwin-arm64
- protoc-gen-grpc-gateway-v2.21.0-darwin-x86_64
- protoc-gen-grpc-gateway-v2.21.0-linux-arm64
- protoc-gen-grpc-gateway-v2.21.0-linux-x86_64
- protoc-gen-grpc-gateway-v2.21.0-windows-arm64.exe
- protoc-gen-grpc-gateway-v2.21.0-windows-x86_64.exe
- protoc-gen-openapiv2-v2.21.0-darwin-arm64
- protoc-gen-openapiv2-v2.21.0-darwin-x86_64
- protoc-gen-openapiv2-v2.21.0-linux-arm64
- protoc-gen-openapiv2-v2.21.0-linux-x86_64
- protoc-gen-openapiv2-v2.21.0-windows-arm64.exe
- protoc-gen-openapiv2-v2.21.0-windows-x86_64.exe