resty v2.15.0 版本更新介绍
发布日期: 2024-09-14
版本号: v2.15.0
本次更新主要包含以下内容:新增功能包括添加最大响应体限制及支持客户端根证书设置的SetClientRootCertificate方法;功能增强部分引入了自定义多部分边界值配置能力,并对相关代码进行重构优化。Bug修复方面解决了启用不解析响应选项时的日志记录问题,同时完善了调试模式下生成curl命令的选项控制。构建系统更新了Bazel配置,将Go最低版本要求调整为1.20并优化编译设置。文档部分改进了Godoc注释说明,在README中补充了生成curl命令的注意事项,并同步了版本号至v2.15.0。此外,本次更新迎来了5位新贡献者的首次代码提交。
更新内容 (中文)
发布说明
新功能
- feat: 通过 @trim21 在 https://github.com/go-resty/resty/pull/830 添加最大响应体限制
- feat: 通过 @MagHErmit 在 https://github.com/go-resty/resty/pull/826 添加支持 clientCAs 用法的 SetClientRootCertificate 方法
改进
- feat: 通过 @PokeGuys 在 https://github.com/go-resty/resty/pull/820 支持设置自定义 multipart 边界值
- feat(refactor): 针对 PR #826 的优化 by @jeevatkm 在 https://github.com/go-resty/resty/pull/848
错误修复
- 修复启用 SetDoNotParseResponse(true) 时的请求/响应日志记录 by @kon3gor 在 https://github.com/go-resty/resty/pull/836
- fix(enhancement): 通过 @jeevatkm 在 https://github.com/go-resty/resty/pull/842 添加显式选项以在调试模式下生成 curl 命令,并进行部分清理 #828
构建
- feat(enhancement): 通过 @frank30941 在 https://github.com/go-resty/resty/pull/833 更新 Bazel 配置
- build: 通过 @jeevatkm 在 https://github.com/go-resty/resty/pull/837 更新 Go 最低版本和构建配置 #835
- 将 Go 版本升级至 1.20 by @kon3gor 在 https://github.com/go-resty/resty/pull/841
文档
- doc: 通过 @jeevatkm 在 https://github.com/go-resty/resty/pull/849, https://github.com/go-resty/resty/pull/851 改进和修正 GoDoc
- doc(readme): 通过 @ahuigo 在 https://github.com/go-resty/resty/pull/817 添加关于 GenerateCurlCommand 的说明
- release: 通过 @jeevatkm 在 https://github.com/go-resty/resty/pull/852 更新版本号至 v2.15.0 并修改 README
新贡献者
- @PokeGuys 在 https://github.com/go-resty/resty/pull/820 完成首次贡献
- @trim21 在 https://github.com/go-resty/resty/pull/830 完成首次贡献
- @frank30941 在 https://github.com/go-resty/resty/pull/833 完成首次贡献
- @kon3gor 在 https://github.com/go-resty/resty/pull/841 完成首次贡献
- @MagHErmit 在 https://github.com/go-resty/resty/pull/826 完成首次贡献
完整更新日志: https://github.com/go-resty/resty/compare/v2.14.0...v2.15.0
更新内容 (原始)
Release Notes
New Features
- feat: add max reponse body limit by @trim21 in https://github.com/go-resty/resty/pull/830
- feat: add SetClientRootCertificate method support clientCAs usage by @MagHErmit in https://github.com/go-resty/resty/pull/826
Enhancements
- feat: add ability to set custom multipart boundary value by @PokeGuys in https://github.com/go-resty/resty/pull/820
- feat(refactor): for pr #826 by @jeevatkm in https://github.com/go-resty/resty/pull/848
Bug Fixes
- Fix request/response logging for SetDoNotParseResponse(true) by @kon3gor in https://github.com/go-resty/resty/pull/836
- fix(enhancement): add explicit option to enable generate curl command in conjunction with debug mode and few clean ups #828 by @jeevatkm in https://github.com/go-resty/resty/pull/842
Build
- feat(enhancement): update bazel config by @frank30941 in https://github.com/go-resty/resty/pull/833
- build: go min version and build config update #835 by @jeevatkm in https://github.com/go-resty/resty/pull/837
- Update go vesion to 1.20 by @kon3gor in https://github.com/go-resty/resty/pull/841
Documentation
- doc: godoc improvements and corrections by @jeevatkm in https://github.com/go-resty/resty/pull/849, https://github.com/go-resty/resty/pull/851
- doc(readme): Add a note, GenerateCurlCommand by @ahuigo in https://github.com/go-resty/resty/pull/817
- release: version bump and readme update for v2.15.0 by @jeevatkm in https://github.com/go-resty/resty/pull/852
New Contributors
- @PokeGuys made their first contribution in https://github.com/go-resty/resty/pull/820
- @trim21 made their first contribution in https://github.com/go-resty/resty/pull/830
- @frank30941 made their first contribution in https://github.com/go-resty/resty/pull/833
- @kon3gor made their first contribution in https://github.com/go-resty/resty/pull/841
- @MagHErmit made their first contribution in https://github.com/go-resty/resty/pull/826
Full Changelog: https://github.com/go-resty/resty/compare/v2.14.0...v2.15.0