resty v3.0.0-beta.6 版本更新介绍
发布日期: 2025-12-29
版本号: v3.0.0-beta.6
Resty v3.0.0-beta.6版本已发布。此版本修复了暂时禁用sync.Pool与gzip.Reader的使用,并新增了内存中的序列化与反序列化功能、基于比率的断路器及状态变更钩子。同时修订了请求内容长度的实现,重构了断路器中的原子计数器为滑动窗口。此外,测试用例中增加了Digest认证的请求体内容检查,并有新贡献者参与。完整变更记录可在项目仓库中查看。
更新内容 (中文)
v3 Beta 6 发布
v3 升级指南
https://resty.dev/docs/upgrading-to-v3/
新功能与增强
https://resty.dev/docs/new-features-and-enhancements/
问题修复
- 修复:暂时禁用 gzip.Reader 的 sync.Pool 用法,由 @jeevatkm 在 https://github.com/go-resty/resty/pull/1091 提交,由 @khatibomar 在 https://github.com/go-resty/resty/pull/1087 提交
功能与增强
- 功能:添加内存中的序列化和反序列化功能,以补充现有的编解码器 #1021,由 @jeevatkm 在 https://github.com/go-resty/resty/pull/1082 提交
- 功能!:修订请求内容长度实现 #971,由 @jeevatkm 在 https://github.com/go-resty/resty/pull/1084 提交
- 功能!:添加基于比率的熔断器并简化方法 #1026,由 @jeevatkm 在 https://github.com/go-resty/resty/pull/1086 提交
- 功能:为熔断器添加触发和状态变更钩子 #1024,由 @jeevatkm 在 https://github.com/go-resty/resty/pull/1089 提交
- 重构:在熔断器中用滑动窗口替代原子计数器,由 @aviyam181199 和 @liuzengh 在 https://github.com/go-resty/resty/pull/1088 提交
- 发布:版本号更新至 v3.0.0-beta.6,由 @jeevatkm 在 https://github.com/go-resty/resty/pull/1092 提交
测试
- 测试:在测试用例中添加摘要认证请求体内容检查 #1009,由 @jeevatkm 在 https://github.com/go-resty/resty/pull/1083 提交
新贡献者
- @khatibomar 在 https://github.com/go-resty/resty/pull/1087 首次贡献
- @aviyam181199 在 https://github.com/go-resty/resty/pull/1088 首次贡献
完整更新日志:https://github.com/go-resty/resty/compare/v3.0.0-beta.5…v3.0.0-beta.6
更新内容 (原始)
v3 Beta 6 Release
v3 Upgrade Guide
https://resty.dev/docs/upgrading-to-v3/
New Features and Enhancements
https://resty.dev/docs/new-features-and-enhancements/
Bug Fixes
- fix: disable sync.Pool usage with gzip.Reader temporarily by @jeevatkm in https://github.com/go-resty/resty/pull/1091, @khatibomar https://github.com/go-resty/resty/pull/1087
Features & Enhancements
- feat: add in-memory marshal and unmarshal to complement existing encoder and decoder #1021 by @jeevatkm in https://github.com/go-resty/resty/pull/1082
- feat!: revise request content length implementation #971 by @jeevatkm in https://github.com/go-resty/resty/pull/1084
- feat!: add ratio-based circuit breaker and streamline methods #1026 by @jeevatkm in https://github.com/go-resty/resty/pull/1086
- feat: add circuit breaker on trigger and on state change hooks #1024 by @jeevatkm in https://github.com/go-resty/resty/pull/1089
- refactor: replace atomic counters with sliding window in circuit breaker by @aviyam181199 @liuzengh in https://github.com/go-resty/resty/pull/1088
- release: version bump to v3.0.0-beta.6 by @jeevatkm in https://github.com/go-resty/resty/pull/1092
Tests
- test: add digest auth post body content check in the test case #1009 by @jeevatkm in https://github.com/go-resty/resty/pull/1083
New Contributors
- @khatibomar made their first contribution in https://github.com/go-resty/resty/pull/1087
- @aviyam181199 made their first contribution in https://github.com/go-resty/resty/pull/1088
Full Changelog: https://github.com/go-resty/resty/compare/v3.0.0-beta.5...v3.0.0-beta.6