resty v3.0.0-rc.3 版本更新介绍
发布日期: 2026-07-09
版本号: v3.0.0-rc.3
v3 Release Candidate 3 已发布,提供了升级指南,并包含多项更新:修复了上下文取消泄漏问题,以及重试解析中整数和时间持续时间溢出的保护;增强了字符串请求体解析以减少内存分配;添加了单元测试以覆盖在空响应体上的取消情况;同时欢迎两位新贡献者:vadimi 和 HarshalPatel1972。完整的变更日志可在项目仓库中查看。
更新内容 (中文)
v3 候选版本 3
v3 升级指南
- 升级指南:https://resty.dev/docs/upgrading-to-v3/
错误修复
- 修复:由 @vadimi 在 https://github.com/go-resty/resty/pull/1177 中解决的上下文取消泄漏问题
- 修复(重试):由 @HarshalPatel1972 在 https://github.com/go-resty/resty/pull/1178 中保护 parseRetryAfterHeader 免受整数和时间持续时间溢出影响
增强功能
- 特性(增强):由 @vadimi 在 https://github.com/go-resty/resty/pull/1180 中改进字符串请求体解析的内存分配
测试
- 测试:由 @vadimi 在 https://github.com/go-resty/resty/pull/1179 中添加单元测试以覆盖空响应体时的取消操作
新贡献者
- @vadimi 在 https://github.com/go-resty/resty/pull/1177 中进行了首次贡献
- @HarshalPatel1972 在 https://github.com/go-resty/resty/pull/1178 中进行了首次贡献
完整变更日志:https://github.com/go-resty/resty/compare/v3.0.0-rc.2…v3.0.0-rc.3
更新内容 (原始)
v3 Release Candidate 3
v3 Guide
- Upgrade Guide: https://resty.dev/docs/upgrading-to-v3/
Bug Fixes
- fix: context cancellation leak by @vadimi in https://github.com/go-resty/resty/pull/1177
- fix(retry): protect parseRetryAfterHeader from integer and time duration overflow by @HarshalPatel1972 in https://github.com/go-resty/resty/pull/1178
Enhancements
- feat(enhancement): improve string request body parsing memory allocs by @vadimi in https://github.com/go-resty/resty/pull/1180
Tests
- test: add unit test to cover cancellation on nil resp body by @vadimi in https://github.com/go-resty/resty/pull/1179
New Contributors
- @vadimi made their first contribution in https://github.com/go-resty/resty/pull/1177
- @HarshalPatel1972 made their first contribution in https://github.com/go-resty/resty/pull/1178
Full Changelog: https://github.com/go-resty/resty/compare/v3.0.0-rc.2...v3.0.0-rc.3