Releases: go-resty/resty
Releases · go-resty/resty
v2.12.0
Release Notes
Enhancements
Bug Fixes
- Fixed JSON request logging data race. by @buglloc in #775
- fix: trailing NULL bytes in buffer while detecting a content type by @jeevatkm in #779
- fix: encode path params with BaseURL and the first param at index zero (#781) by @sakateka in #782
Documentation
- fix: doc typo by @victoraugustolls in #769
- docs: replace
SetHostURL
toSetBaseURL
by @purofle in #772 - for v2.12.0 release by @jeevatkm in #783
New Contributors
- @victoraugustolls made their first contribution in #769
- @purofle made their first contribution in #772
- @buglloc made their first contribution in #775
- @fabiante made their first contribution in #774
- @sakateka made their first contribution in #782
Full Changelog: v2.11.0...v2.12.0
v2.11.0 Release
v2.10.0 Release
Release Notes
Optimizations
- Add Benchmarks and Unit tests for parseRequestBody and improve it by @SVilgelm in #714
- Benchmarks and Improvements for parseRequestURL function by @SVilgelm in #711
Enhancements
- feat(enhancement): add SetBody method in Response struct #721 by @jeevatkm in #724
- chore: update go mod dependency by @jeevatkm in #731
- chore: version number bump by @jeevatkm in #719, release updates #732
Bug Fixes
- fix: request debug log loss cookie header when cookiejar in use #424 by @jeevatkm in #727
- Fix digest auth http: ContentLength=xxx with Body length 0 by @icepie in #730
New Contributors
Full Changelog: v2.9.1...v2.10.0
v2.10.0-rc.3
v2.10.0-rc.2
v2.10.0-rc.1
First RC for v2.10.0
Enhancements
- optimization: Add Benchmarks and Unit tests for parseRequestBody and improve it by @SVilgelm in #714
- optimization: Benchmarks and Improvements for parseRequestURL function by @SVilgelm in #711
- chore: version number bump by @jeevatkm in #719
Full Changelog: v2.9.1...v2.10.0-rc.1
v2.9.1 Release
Release Notes
Full Changelog: v2.9.0...v2.9.1
v2.9.0 Release
Release Notes
New Features
Enhancements
- refactor: inherit value from client enables clean request overrides #516 by @jeevatkm in #706
- optimization: Improve parseRequestHeader function and add the unit tests and benchmarks by @SVilgelm in #712
Bug Fixes
- fix: parseResponseBody overrides original error code in case of unmar… by @dmartinol in #674
- Set ContentLength to 0 when Body is nil by @praem90 in #698
- fix: improve regex expression for json and xml content type validation by @jeevatkm in #702
- fix: add missing source files in the bazel build config #700 by @jeevatkm in #707
Test Cases
- test: add test example for unix socket client and update readme #589 by @jeevatkm in #703
- test: added validation test case, unable to reproduce #524 by @jeevatkm in #704
- unit tests for parseRequestURL function by @SVilgelm in #709
- fix TestClientOnResponseError parallel tests by @SVilgelm in #710
Documentation
New Contributors
- @dmartinol made their first contribution in #674
- @praem90 made their first contribution in #698
- @leejuyuu made their first contribution in #701
Full Changelog: v2.8.0...v2.9.0
v2.8.0 Release
Release Notes
New Features
- Add digest authentication by @segevda in #583
- feat: add SetLogger() method on Request by @muir in #584
- add OnSuccess, OnPanic, and OnInvalid hooks by @muir in #586
- Support RawPathParams without escaping by @SVilgelm in #664
- feat: add SetDebug() method on Request by @jeevatkm in #693
Enhancements
- Allow multipart/form-data in PATCH request by @sabandi in #536
- feat: add nil check to SetResult (#503) by @tkrop in #582
- Update log level to warning for errors within retry block by @sandyydk in #587
- feat: do not escape HTML in the debug log when jsonEscapeHTML set to false, inspired by pr #544 by @jeevatkm in #636
- feat: Export transport method to return current transport from the client by @MicBun in #605
- client: setters for JSON and XML Marshal/Unmarshal by @GRbit in #621
- feat: export NoRedirectPolicy error by @jeevatkm in #637
- CVE-2021-43565 CVE-2022-27191 fix by @testwill in #662
- Improve 204 no content handling by @haivp3010 in #654
- improve: support js,wasm by @shynome in #683
- config: update golang.org/x/net dependency to latest version v0.15.0 by @jeevatkm in #627, #694
Bug Fixes
- Fix multipart file readers not being reset when doing a retry by @nikplx in #549
- Fix redirect request body mismatch with origin request body caused by buffer reused by mistake by @liguangbo in #568
- Fix race condition during request: Protect pre/post request hooks with RWMutex by @jameshoulahan in #597
- fix: jitter maxWaitTime must be >= 1ns by @segevda in #629
- fix: client panic on missing digest value by @segevda in #633
- fix sync pool data race: deep copy by @zhongdalu-trechina in #635
- Fix SetAllowGetMethodPayload option ignored for io.Reader payload by @picollomartin, @jeevatkm in #541, #692
Documentation
- Fix Send() documentation code by @lordzsolt in #528
- Reformat doc comments by @segevda in #620
- update README.md about Proxy Settings, no Request level setting by @maguowei in #645
- docs: through typo by @testwill in #685
- Enhance retry behavior documentation in README.md by @utsushiiro in #691
Build
- Add label based github actions #562 and go version update by @jeevatkm in #563
- Add go fmt to github actions by @segevda in #628
Deprecated Removal
New Contributors
- @sabandi made their first contribution in #536
- @lordzsolt made their first contribution in #528
- @picollomartin made their first contribution in #541
- @tkrop made their first contribution in #582
- @muir made their first contribution in #584
- @segevda made their first contribution in #620
- @nikplx made their first contribution in #549
- @liguangbo made their first contribution in #568
- @jameshoulahan made their first contribution in #597
- @GRbit made their first contribution in #621
- @zhongdalu-trechina made their first contribution in #635
- @MicBun made their first contribution in #605
- @utsushiiro made their first contribution in #691
- @testwill made their first contribution in #685
- @SVilgelm made their first contribution in #664
- @maguowei made their first contribution in #645
- @sandyydk made their first contribution in #587
- @haivp3010 made their first contribution in #654
- @shynome made their first contribution in #683
Full Changelog: v2.7.0...v2.8.0
v2.7.0 Release
Release Notes
Enhancements
- Added method
SetHeaderMultiValues
for easier adding of multi-value http headers #432 PR #452 @mhdiiilham - Updated Bazel build to work with 4.0.0 PR #428 @tanyabouman
- Optimzed and improved the sync.Pool & Body Closure for json.NewEncoder buffers PR #421 @pborzenkov
- Added
RetryConditions
toresty.Request
#315, #324, #433, PR #436 @rohitkg98 - Update go mod for dependencies PR #459 @jeevatkm
- Added
SetBaseURL
and deprecatedSetHostURL
#441 PR #480 @jeevatkm - Made exported field on
client.PathParams
andrequest.PathParams
PR #476 @lavoiesl - Adding ability to customize the XML marshal/unmarshal functions #481, PR #484 @jeevatkm
Bug Fixes
- Fixed: Empty file upload on multipart form, handling EOF from file readers #431 PR #438 @NathanBaulch
- Fixed: SetScheme option side effects on schemeless Host URL #407 PR #460 @jeevatkm
Tests
- Add 1.16.x and remove 1.14.x from the Travis build PR #434 @kishaningithub
- Migrated from Travis CI to Github Actions #479 PR #480 @jeevatkm
- Thank you Travis CI for these many years of CI service to Resty project
Documentation
- Addressing broken members link in readme PR #435 @kishaningithub
- Version update 2.6.0 on readme for go.mod PR #453 @cnmade