grpc-gateway v2.23.0 版本更新介绍
发布日期: 2024-11-01
版本号: v2.23.0
此次更新包含多项修复与功能改进:移除了多余符号以避免复制运行失败的问题,修复了响应示例文档与路径参数处理逻辑,修正了多处拼写错误,升级了buf的gRPC Protobuf依赖版本,并将示例从v1迁移至v2。新增功能包括暴露双向流中的无效参数错误给客户端、添加expand_slashed_path_patterns标志以支持斜杠路径扩展,以及通过StreamErrorHandler改进双向流错误处理。此外,@pkusunjy、@renatocribeiro、@NathanBaulch等9位开发者首次为项目贡献了代码。
更新内容 (中文)
主要变更
- 移除多余的 $ 符号以避免复制运行失败,由 @pkusunjy 在 https://github.com/grpc-ecosystem/grpc-gateway/pull/4639 提交
- 修复 responseEnvelope 示例文档,由 @renatocribeiro 在 https://github.com/grpc-ecosystem/grpc-gateway/pull/4750 提交
- 修正拼写错误,由 @NathanBaulch 在 https://github.com/grpc-ecosystem/grpc-gateway/pull/4762 提交
- 升级 buf grpc protobuf,由 @johanbrandhorst 在 https://github.com/grpc-ecosystem/grpc-gateway/pull/4818 提交
- 将 buf 示例从 v1 更新至 v2,由 @iFurySt 在 https://github.com/grpc-ecosystem/grpc-gateway/pull/4347 提交
- 修复当部分 proto 消息作为路径参数时必填的 body 参数问题,由 @MahikaJaguste 在 https://github.com/grpc-ecosystem/grpc-gateway/pull/4850 提交
- 功能:在双向流中向客户端暴露无效参数错误 (#4795),由 @ianbbqzy 在 https://github.com/grpc-ecosystem/grpc-gateway/pull/4819 提交
- 功能:新增 expand_slashed_path_patterns 标志,由 @czabaj 在 https://github.com/grpc-ecosystem/grpc-gateway/pull/4813 提交
- 功能:使用 StreamErrorHandler 在双向流中返回无效参数错误,由 @ianbbqzy 在 https://github.com/grpc-ecosystem/grpc-gateway/pull/4864 提交
- 修复:数字类型的路径参数问题,由 @czabaj 在 https://github.com/grpc-ecosystem/grpc-gateway/pull/4866 提交
新贡献者
- @pkusunjy 在 https://github.com/grpc-ecosystem/grpc-gateway/pull/4639 完成首次贡献
- @renatocribeiro 在 https://github.com/grpc-ecosystem/grpc-gateway/pull/4750 完成首次贡献
- @NathanBaulch 在 https://github.com/grpc-ecosystem/grpc-gateway/pull/4762 完成首次贡献
- @iFurySt 在 https://github.com/grpc-ecosystem/grpc-gateway/pull/4347 完成首次贡献
- @MahikaJaguste 在 https://github.com/grpc-ecosystem/grpc-gateway/pull/4850 完成首次贡献
- @ianbbqzy 在 https://github.com/grpc-ecosystem/grpc-gateway/pull/4819 完成首次贡献
- @czabaj 在 https://github.com/grpc-ecosystem/grpc-gateway/pull/4813 完成首次贡献
完整变更日志: https://github.com/grpc-ecosystem/grpc-gateway/compare/v2.22.0...v2.23.0
更新内容 (原始)
What’s Changed
- Remove extra $ to avoid copy-and-run failure. by @pkusunjy in https://github.com/grpc-ecosystem/grpc-gateway/pull/4639
- Fix doc for responseEnvelope example by @renatocribeiro in https://github.com/grpc-ecosystem/grpc-gateway/pull/4750
- Fix typos by @NathanBaulch in https://github.com/grpc-ecosystem/grpc-gateway/pull/4762
- Upgrade buf grpc protobuf by @johanbrandhorst in https://github.com/grpc-ecosystem/grpc-gateway/pull/4818
- Updates buf example from v1 to v2. by @iFurySt in https://github.com/grpc-ecosystem/grpc-gateway/pull/4347
- Fixed required body parameter when part of the proto message is path param by @MahikaJaguste in https://github.com/grpc-ecosystem/grpc-gateway/pull/4850
- feat: expose invalid argument error to clients in bidirectional streaming (#4795) by @ianbbqzy in https://github.com/grpc-ecosystem/grpc-gateway/pull/4819
- feat: add expand_slashed_path_patterns flag by @czabaj in https://github.com/grpc-ecosystem/grpc-gateway/pull/4813
- feat: use StreamErrorHandler to send back invalid argument error in bidirectional streaming by @ianbbqzy in https://github.com/grpc-ecosystem/grpc-gateway/pull/4864
- fix: path parametrs of type number by @czabaj in https://github.com/grpc-ecosystem/grpc-gateway/pull/4866
New Contributors
- @pkusunjy made their first contribution in https://github.com/grpc-ecosystem/grpc-gateway/pull/4639
- @renatocribeiro made their first contribution in https://github.com/grpc-ecosystem/grpc-gateway/pull/4750
- @NathanBaulch made their first contribution in https://github.com/grpc-ecosystem/grpc-gateway/pull/4762
- @iFurySt made their first contribution in https://github.com/grpc-ecosystem/grpc-gateway/pull/4347
- @MahikaJaguste made their first contribution in https://github.com/grpc-ecosystem/grpc-gateway/pull/4850
- @ianbbqzy made their first contribution in https://github.com/grpc-ecosystem/grpc-gateway/pull/4819
- @czabaj made their first contribution in https://github.com/grpc-ecosystem/grpc-gateway/pull/4813
Full Changelog: https://github.com/grpc-ecosystem/grpc-gateway/compare/v2.22.0...v2.23.0
下载链接
- grpc-gateway_2.23.0_checksums.txt
- multiple.intoto.jsonl
- protoc-gen-grpc-gateway-v2.23.0-darwin-arm64
- protoc-gen-grpc-gateway-v2.23.0-darwin-x86_64
- protoc-gen-grpc-gateway-v2.23.0-linux-arm64
- protoc-gen-grpc-gateway-v2.23.0-linux-x86_64
- protoc-gen-grpc-gateway-v2.23.0-windows-arm64.exe
- protoc-gen-grpc-gateway-v2.23.0-windows-x86_64.exe
- protoc-gen-openapiv2-v2.23.0-darwin-arm64
- protoc-gen-openapiv2-v2.23.0-darwin-x86_64
- protoc-gen-openapiv2-v2.23.0-linux-arm64
- protoc-gen-openapiv2-v2.23.0-linux-x86_64
- protoc-gen-openapiv2-v2.23.0-windows-arm64.exe
- protoc-gen-openapiv2-v2.23.0-windows-x86_64.exe