Releases: go-resty/resty
Releases · go-resty/resty
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
v2.6.0 Release
Release Notes
Features
Enhancements
- Added AddRetryAfterErrorCondition() option PR #384 @gtpaulose
- Refactor(retry.sleepDuration): ♻️ extract jitterBackoff function PR #406 @ninedraft
- Added a way set a Non-Canonical Header PR #413 @Lao-Tuo
- Test case update When SetRetryCount -1, both resp and error are nil PR #392 @yjhmelody
General
- Addressing checksum issue on v2.5.0 with this release
v2.5.0 Release
v2.4.0 Release
Release Notes
Features
- Added a new
OnError
hook that is called when a Resty request returns an error PR #398 @justenwalker
Enhancements
- Preserve marshal errors in middleware request body handler #361, PR #362 @moorereason
- Added go.sum to the project PR #375 @moorereason
- Added Request Attempt and Remote IP Address in TraceInfo #352, #370, PR #374 @jeevatkm
- Added
HeaderAuthorizationKey
in theClient
struct, it can be configured #387 PR #403 @jeevatkm - Added
SetPathParam
method inClient
sndRequest
for setting single path param #402 PR #403 @jeevatkm - Added option of
http.NoBody
when content length is settrue
and request body is nil #395 PR #403 @moorereason @jeevatkm
Bug Fixes
- Fixed - Trace timing issue when reused connections #346 PR #347 @moorereason
- Fixed - Request, execute user defined middlewares after resty's internal middlewares PR #355 @lggomez
- Fixed - Incorrect response time when saving the response file PR #357 @iwaltgen
- Fixed - Set supplied argument value to the field PR #368 @lewisay
- Fixed - Body size 0 when HTTP status code is 307, 308 #300 PR #380 @shiguangyin
- Fixed - Travis Build issue, many PRs are waiting PR #366 @jeevatkm
- Fixed - Retry sleep computation for 32bit arch PR #388 @creekorful
Documentation
- Added clarification on Request.RawRequest PR #354 @lggomez
- Godoc update - typo correction PR #363 @Alex1996a
- Corrected typo in AddRetryCondition function, readme example #365 PR #364 @ervitis
- Added ForceContentType example PR #371 @mattfenwick
- Added Resty package for Client and Response PR #378 @cxjava
- Godoc update on Readme for retry condition func PR #390 @lambdalisue
v2.3.0 Release
Release Notes
New Features
Enhancements
- Improving retry total value PR #322 @golemiso
- Added force content type option for automatic unmarshalling #240, #276, PR #323 @jeevatkm
- Make default retry not on middlewares errors PR #333 @lrita
- Add SetMultipartFormData func to Request PR #337 @ArcticSnowman
- Add types for middleware PR #341 @mloberg
Bug Fixes
- Addressing the issue of traceinfo totaltime #304, PR #321 @jeevatkm
- Changes to show the right amount of time in Trace inf PR #331 @JoaquinJimenezGarcia
- Fixed Debugf call in Request/Response logger PR #335 @phsym and @pierresy
- Addressing nil pointer error while accessing cookie jar on user provided http client #330, PR #340 @jeevatkm
- Addressing HTTP2 issue on go1.13 above #339, PR #340 @jeevatkm
- Fix TraceInfo on failed connections #338, PR #342 @moorereason
v2.3.0-rc.2
Next release candidate 😄
v2.3.0-rc.1
First release candidate for v2.3.0.
v2.2.0 Release
Release Notes
Enhancements
- Added
Request.Send()
method to execute Request as-is PR #286 @dan-rising - Applied
debugBodySizeLimit
to Request debug logger PR #297 @viennadd - Added
SetRootCertificateFromString
method to read cert from string PR #313 @dzaytsev91
Bug Fixes
- Fixed - Trace context overrides request context if
EnableTrace
#285, PR #284 @xixinjie - Fixed - Failing first request and successfully retrying carries error from first #289, PR #290 @phillc
- Fixed - Panic When Calling TraceInfo But Tracing Has Not Been Enabled #293, PR #296 @JonnyPillar
Documentation
- Added awesome go badge PR #280 @kishaningithub
- Godoc and readme typo correction PR #310 @creekorful
v2.1.0 Release
Release Notes
Enhancements
- Added support for func
http.Request.GetBody
, so request body manipalation can be done viaPreRequestHook
(such as adding Content-MD5 entity-header, etc) #242 @jeevatkm - Added
SetCookie
andSetCookies
method added intoRequest
object #257 @jeevatkm - Updated default JSON request content-type value without charset per RFC e.g.,
application/json
#258 @jeevatkm - Reducing memory allocation during debug log processing PR #277 @vivekv96
- Code improvements @jeevatkm