resty v2.12.0 版本更新介绍
发布日期: 2024-03-17
版本号: v2.12.0
本次更新包含功能改进、问题修复及文档调整。新增Client.Clone函数以支持客户端克隆;修复了JSON请求日志的数据竞争问题、检测内容类型时缓冲区末尾NULL字节异常,以及路径参数在使用BaseURL与首个参数索引为零时的编码错误。文档部分修正了拼写错误,并将部分术语从SetHostURL更新为SetBaseURL。此外,五位新贡献者(@victoraugustolls、@purofle、@buglloc、@fabiante、@sakateka)首次参与了项目代码与文档的优化工作。
更新内容 (中文)
发布说明
功能改进
- 新增 Client.Clone 函数 by @fabiante in https://github.com/go-resty/resty/pull/774
错误修复
- 修复 JSON 请求日志的数据竞争问题 by @buglloc in https://github.com/go-resty/resty/pull/775
- 修复检测内容类型时缓冲区尾部 NULL 字节问题 by @jeevatkm in https://github.com/go-resty/resty/pull/779
- 修复带 BaseURL 时路径参数编码及索引零的首个参数问题 (#781) by @sakateka in https://github.com/go-resty/resty/pull/782
文档相关
- 修复文档拼写错误 by @victoraugustolls in https://github.com/go-resty/resty/pull/769
- 文档中将
SetHostURL
替换为SetBaseURL
by @purofle in https://github.com/go-resty/resty/pull/772 - v2.12.0 版本发布说明 by @jeevatkm in https://github.com/go-resty/resty/pull/783
新贡献者
- @victoraugustolls 在 https://github.com/go-resty/resty/pull/769 完成首次贡献
- @purofle 在 https://github.com/go-resty/resty/pull/772 完成首次贡献
- @buglloc 在 https://github.com/go-resty/resty/pull/775 完成首次贡献
- @fabiante 在 https://github.com/go-resty/resty/pull/774 完成首次贡献
- @sakateka 在 https://github.com/go-resty/resty/pull/782 完成首次贡献
完整变更日志: https://github.com/go-resty/resty/compare/v2.11.0...v2.12.0
更新内容 (原始)
Release Notes
Enhancements
- Add Client.Clone function by @fabiante in https://github.com/go-resty/resty/pull/774
Bug Fixes
- Fixed JSON request logging data race. by @buglloc in https://github.com/go-resty/resty/pull/775
- fix: trailing NULL bytes in buffer while detecting a content type by @jeevatkm in https://github.com/go-resty/resty/pull/779
- fix: encode path params with BaseURL and the first param at index zero (#781) by @sakateka in https://github.com/go-resty/resty/pull/782
Documentation
- fix: doc typo by @victoraugustolls in https://github.com/go-resty/resty/pull/769
- docs: replace
SetHostURL
toSetBaseURL
by @purofle in https://github.com/go-resty/resty/pull/772 - for v2.12.0 release by @jeevatkm in https://github.com/go-resty/resty/pull/783
New Contributors
- @victoraugustolls made their first contribution in https://github.com/go-resty/resty/pull/769
- @purofle made their first contribution in https://github.com/go-resty/resty/pull/772
- @buglloc made their first contribution in https://github.com/go-resty/resty/pull/775
- @fabiante made their first contribution in https://github.com/go-resty/resty/pull/774
- @sakateka made their first contribution in https://github.com/go-resty/resty/pull/782
Full Changelog: https://github.com/go-resty/resty/compare/v2.11.0...v2.12.0