grpc-gateway v2.16.0 版本更新介绍
发布日期: 2023-06-01
版本号: v2.16.0
本次更新主要包含依赖项升级、功能改进及问题修复。升级了部分依赖库,修复了测试用例及流式响应问题,新增了忽略Proto注释的选项以优化OpenAPI输出,并支持查询参数中的映射类型。文档方面补充了远程插件兼容性说明及OpenTelemetry追踪示例,同时调整了部分工作流程和代码规范。另有14位开发者首次贡献代码,包括功能实现、文档修正和测试优化等。
更新内容 (中文)
更新内容
- 由 @johanbrandhorst 在 https://github.com/grpc-ecosystem/grpc-gateway/pull/3214 中升级了部分依赖项
- 由 @DGuhr 在 https://github.com/grpc-ecosystem/grpc-gateway/pull/3220 中添加关于远程插件与外部配置不兼容的说明
- 由 @johanbrandhorst 在 https://github.com/grpc-ecosystem/grpc-gateway/pull/3234 中修复测试用例
- 由 @igor-tsiglyar 在 https://github.com/grpc-ecosystem/grpc-gateway/pull/3240 中将
use_allof_for_refs
功能扩展至示例字段 - 由 @keyz 在 https://github.com/grpc-ecosystem/grpc-gateway/pull/3252 中新增用于排除 proto 注释的
ignore_comments
OpenAPI 输出选项 - 由 @nacx 在 https://github.com/grpc-ecosystem/grpc-gateway/pull/3272 中限制 POST -> GET 路径回退仅允许固定长度
- 由 @unmultimedio 在 https://github.com/grpc-ecosystem/grpc-gateway/pull/3279 中移除推送至 BSR 的 GitHub Actions 工作流
- 由 @hnlq715 在 https://github.com/grpc-ecosystem/grpc-gateway/pull/3167 中修复当
enums_as_int=true
时枚举应为整型的错误 - 由 @iamrajiv 在 https://github.com/grpc-ecosystem/grpc-gateway/pull/3309 中添加 OpenTelemetry Go 链路追踪示例文档
- 由 @liggitt 在 https://github.com/grpc-ecosystem/grpc-gateway/pull/3317 中将别名包
field_mask
切换为标准包 - 由 @jongwooo 在 https://github.com/grpc-ecosystem/grpc-gateway/pull/3319 中用环境文件替换已弃用的命令
- 由 @shashaneRanasinghe 在 https://github.com/grpc-ecosystem/grpc-gateway/pull/3330 中将代码块改为段落格式
- 由 @li31727 在 https://github.com/grpc-ecosystem/grpc-gateway/pull/3323 中支持查询参数包含映射类型
- 由 @johanbrandhorst 在 https://github.com/grpc-ecosystem/grpc-gateway/pull/3335 中修复流式响应的若干问题
新贡献者
- @DGuhr 在 https://github.com/grpc-ecosystem/grpc-gateway/pull/3220 完成首次贡献
- @xieyuschen 在 https://github.com/grpc-ecosystem/grpc-gateway/pull/3231 完成首次贡献
- @igor-tsiglyar 在 https://github.com/grpc-ecosystem/grpc-gateway/pull/3240 完成首次贡献
- @KiK0S 在 https://github.com/grpc-ecosystem/grpc-gateway/pull/3247 完成首次贡献
- @keyz 在 https://github.com/grpc-ecosystem/grpc-gateway/pull/3252 完成首次贡献
- @nacx 在 https://github.com/grpc-ecosystem/grpc-gateway/pull/3272 完成首次贡献
- @unmultimedio 在 https://github.com/grpc-ecosystem/grpc-gateway/pull/3279 完成首次贡献
- @hnlq715 在 https://github.com/grpc-ecosystem/grpc-gateway/pull/3167 完成首次贡献
- @liggitt 在 https://github.com/grpc-ecosystem/grpc-gateway/pull/3317 完成首次贡献
- @jongwooo 在 https://github.com/grpc-ecosystem/grpc-gateway/pull/3319 完成首次贡献
- @shashaneRanasinghe 在 https://github.com/grpc-ecosystem/grpc-gateway/pull/3330 完成首次贡献
完整变更日志: https://github.com/grpc-ecosystem/grpc-gateway/compare/v2.15.2...v2.15.3
更新内容 (原始)
What’s Changed
- Upgrade some deps by @johanbrandhorst in https://github.com/grpc-ecosystem/grpc-gateway/pull/3214
- add note about incompatibility of remote plugins and external configu… by @DGuhr in https://github.com/grpc-ecosystem/grpc-gateway/pull/3220
- Fix tests by @johanbrandhorst in https://github.com/grpc-ecosystem/grpc-gateway/pull/3234
- use_allof_for_refs: extend to example field by @igor-tsiglyar in https://github.com/grpc-ecosystem/grpc-gateway/pull/3240
- New
ignore_comments
option for excluding proto comments from OpenAPI output by @keyz in https://github.com/grpc-ecosystem/grpc-gateway/pull/3252 - Only allow POST -> GET path length fallback by @nacx in https://github.com/grpc-ecosystem/grpc-gateway/pull/3272
- Remove GHA workflow that pushes to BSR by @unmultimedio in https://github.com/grpc-ecosystem/grpc-gateway/pull/3279
- fix: enum should be int when enums_as_int = true by @hnlq715 in https://github.com/grpc-ecosystem/grpc-gateway/pull/3167
- doc: Add OpenTelemetry go tracing example by @iamrajiv in https://github.com/grpc-ecosystem/grpc-gateway/pull/3309
- Switch from aliased field_mask package to canonical package by @liggitt in https://github.com/grpc-ecosystem/grpc-gateway/pull/3317
- Replace deprecated command with environment file by @jongwooo in https://github.com/grpc-ecosystem/grpc-gateway/pull/3319
- changed block from code to paragraph by @shashaneRanasinghe in https://github.com/grpc-ecosystem/grpc-gateway/pull/3330
- feat(#3238):Support map in query parameters by @li31727 in https://github.com/grpc-ecosystem/grpc-gateway/pull/3323
- A few fixes for streaming responses by @johanbrandhorst in https://github.com/grpc-ecosystem/grpc-gateway/pull/3335
New Contributors
- @DGuhr made their first contribution in https://github.com/grpc-ecosystem/grpc-gateway/pull/3220
- @xieyuschen made their first contribution in https://github.com/grpc-ecosystem/grpc-gateway/pull/3231
- @igor-tsiglyar made their first contribution in https://github.com/grpc-ecosystem/grpc-gateway/pull/3240
- @KiK0S made their first contribution in https://github.com/grpc-ecosystem/grpc-gateway/pull/3247
- @keyz made their first contribution in https://github.com/grpc-ecosystem/grpc-gateway/pull/3252
- @nacx made their first contribution in https://github.com/grpc-ecosystem/grpc-gateway/pull/3272
- @unmultimedio made their first contribution in https://github.com/grpc-ecosystem/grpc-gateway/pull/3279
- @hnlq715 made their first contribution in https://github.com/grpc-ecosystem/grpc-gateway/pull/3167
- @liggitt made their first contribution in https://github.com/grpc-ecosystem/grpc-gateway/pull/3317
- @jongwooo made their first contribution in https://github.com/grpc-ecosystem/grpc-gateway/pull/3319
- @shashaneRanasinghe made their first contribution in https://github.com/grpc-ecosystem/grpc-gateway/pull/3330
Full Changelog: https://github.com/grpc-ecosystem/grpc-gateway/compare/v2.15.2...v2.15.3
下载链接
- grpc-gateway_2.16.0_checksums.txt
- multiple.intoto.jsonl
- protoc-gen-grpc-gateway-v2.16.0-darwin-arm64
- protoc-gen-grpc-gateway-v2.16.0-darwin-x86_64
- protoc-gen-grpc-gateway-v2.16.0-linux-arm64
- protoc-gen-grpc-gateway-v2.16.0-linux-x86_64
- protoc-gen-grpc-gateway-v2.16.0-windows-arm64.exe
- protoc-gen-grpc-gateway-v2.16.0-windows-x86_64.exe
- protoc-gen-openapiv2-v2.16.0-darwin-arm64
- protoc-gen-openapiv2-v2.16.0-darwin-x86_64
- protoc-gen-openapiv2-v2.16.0-linux-arm64
- protoc-gen-openapiv2-v2.16.0-linux-x86_64
- protoc-gen-openapiv2-v2.16.0-windows-arm64.exe
- protoc-gen-openapiv2-v2.16.0-windows-x86_64.exe