v3.0.0-rc.2
- Upgrade Guide: https://resty.dev/docs/upgrading-to-v3/
- fix: content decoder not found error when do not parse response is enabled and unsupported content-encoding header present by @jeevatkm in https://github.com/go-resty/resty/pull/1169
- fix: panics and state corruption in Request.Clone, Client.Close, SSE default logger, and invalid HTTP method handling by @g3m0sis in https://github.com/go-resty/resty/pull/1172
- @g3m0sis made their first contribution in https://github.com/go-resty/resty/pull/1172
Full Changelog: https://github.com/go-resty/resty/compare/v3.0.0-rc.1...v3.0.0-rc.2
v3.0.0-rc.1
- Upgrade Guide: https://resty.dev/docs/upgrading-to-v3/
- fix: request-level retry delay strategy and execution order of retry hooks and conditions #1033 by @jeevatkm in https://github.com/go-resty/resty/pull/1096
- fix: improve error handling in the multipart request failure #1030 by @jeevatkm in https://github.com/go-resty/resty/pull/1101
- fix: hedging cover rate limit by @ahmet2mir in https://github.com/go-resty/resty/pull/1103
- fix: Deepcopy header in createRawRequest by @Kodecable in https://github.com/go-resty/resty/pull/1105
- fix: case sensitive issue in decompresser, encoder, and decoder #1111 by @jeevatkm in https://github.com/go-resty/resty/pull/1113
- fix: hedging double wrap by @jeevatkm in https://github.com/go-resty/resty/pull/1118
- fix: gzip reader pool usage panic with corrupt data response body and similar approach for deflate reader by @jeevatkm in
- fix: sse request body issue on retry by @jeevatkm in https://github.com/go-resty/resty/pull/1126
- security: strip sensitive headers on cross-domain redirects by default by @Den-Sec in https://github.com/go-resty/resty/pull/1136
- fix: return error for non-seekable readers on request retry by @mcanevet in https://github.com/go-resty/resty/pull/1133
- fix: new circuit breaker method return type by @jeevatkm in https://github.com/go-resty/resty/pull/1139
- fix: sending digest auth sending invalid userhash field by @issuj in https://github.com/go-resty/resty/pull/1140
- fix: unwrap restyError to an error slice by @pior in https://github.com/go-resty/resty/pull/1155
- fix: content-disposition values are sanitized and absolute path, parent-directory travesal segments are rejected by @jeevatkm in https://github.com/go-resty/resty/pull/1157
- fix: separate URL from -F/-d in buildCurlCmd output by @c-tonneslan in https://github.com/go-resty/resty/pull/1165
- feat: Add support for
SetXXXAnymethods for headers, query parameters, and path parameters. by @pscheid92 in https://github.com/go-resty/resty/pull/1098 - feat(hedging): support hedging in order to reduce latency when quering endpoints by @ahmet2mir in https://github.com/go-resty/resty/pull/1081
- feat(enhancement)!: lb next method with context usage by @jeevatkm in https://github.com/go-resty/resty/pull/1117
- feat(ehancement): make fair context deadline for all hedged requests by @jeevatkm in https://github.com/go-resty/resty/pull/1119 https://github.com/go-resty/resty/pull/1120
- feat(enhancement): add resetter interface, call reset appropriately, improve code, and test by @jeevatkm in https://github.com/go-resty/resty/pull/1124
- feat(enhancement): optimize code flow, improve and test cases by @jeevatkm in https://github.com/go-resty/resty/pull/1129
- feat(enhancement)!: remove HTTP status code check and add new exported retry condition for status codes #1080 by @jeevatkm
- feat(enhancement): add redirect header strip sensitive policy #1128 by @jeevatkm in https://github.com/go-resty/resty/pull/1134
- feat: Add SetLabel() to be discoverable to metrics by @xxtanisxx in https://github.com/go-resty/resty/pull/1123
- feat(enhancement): add interface(s) into circuit breaker implementation to make it extensible by @jeevatkm in https://github.com/go-resty/resty/pull/1138
- feat: use go's ootb function and package by @jeevatkm in https://github.com/go-resty/resty/pull/1145
- feat(enhancement): make hedging implementation to use an interface by @jeevatkm in https://github.com/go-resty/resty/pull/1147
- feat: add built-in rate limiter implementations by @jeevatkm in https://github.com/go-resty/resty/pull/1151
- feat: support SetTransport for SSE by @invzhi in https://github.com/go-resty/resty/pull/1150
- feat: support SetContext for SSE by @invzhi in https://github.com/go-resty/resty/pull/1154
- feat(enhancement)!: Return ErrReaderNotSeekable instead of sending empty bodies on retry by @pior in https://github.com/go-resty/resty/pull/1156
- feat(enhancement)!: do not strip the port from the request URL host for redirect host comparison by @jeevatkm in https://github.com/go-resty/resty/pull/1159
- feat(enhancement): honor explicit zeros in min and max retry wait time by @leno23 in https://github.com/go-resty/resty/pull/1162
- test: improve test cases by @jeevatkm in https://github.com/go-resty/resty/pull/1099
- test: fix flaky test TestClient_SetRootCertificateWatcher by @pior in https://github.com/go-resty/resty/pull/1158
- refactor: make client hook functions arg as variadic by @jeevatkm in https://github.com/go-resty/resty/pull/1093
- refactor: optimize decode json flow by @jeevatkm in https://github.com/go-resty/resty/pull/1094
- refactor: naming from retry strategy to retry delay strategy by @jeevatkm in https://github.com/go-resty/resty/pull/1095
- refactor(enhancement): streamline error function names and fields #1062 by @jeevatkm in https://github.com/go-resty/resty/pull/1097
- refactor: streamline naming conventions to enable and ensure consistent and easy discovery by @jeevatkm in https://github.com/go-resty/resty/pull/1106
- refactor: hedging implementation by @jeevatkm in https://github.com/go-resty/resty/pull/1114 in https://github.com/go-resty/resty/pull/1130
- docs: godoc update and improvements by @jeevatkm in https://github.com/go-resty/resty/pull/1131
- chore: version bump to 3.0.0-rc.1 by @jeevatkm in https://github.com/go-resty/resty/pull/1170
- @pscheid92 made their first contribution in https://github.com/go-resty/resty/pull/1098
- @ahmet2mir made their first contribution in https://github.com/go-resty/resty/pull/1081
- @Kodecable made their first contribution in https://github.com/go-resty/resty/pull/1105
- @xxtanisxx made their first contribution in https://github.com/go-resty/resty/pull/1123
- @Den-Sec made their first contribution in https://github.com/go-resty/resty/pull/1136
- @mcanevet made their first contribution in https://github.com/go-resty/resty/pull/1133
- @issuj made their first contribution in https://github.com/go-resty/resty/pull/1140
- @c-tonneslan made their first contribution in https://github.com/go-resty/resty/pull/1165
- @leno23 made their first contribution in https://github.com/go-resty/resty/pull/1162
Full Changelog: https://github.com/go-resty/resty/compare/v3.0.0-beta.6...v3.0.0-rc.1
v2.17.2
- backport: header deepcopy fix by @jeevatkm in https://github.com/go-resty/resty/pull/1110
- release: version bump to v2.17.2 and readme update by @jeevatkm in https://github.com/go-resty/resty/pull/1112
Full Changelog: https://github.com/go-resty/resty/compare/v2.17.1...v2.17.2
v3.0.0-beta.6
https://resty.dev/docs/upgrading-to-v3/
https://resty.dev/docs/new-features-and-enhancements/
- 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
- 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
- test: add digest auth post body content check in the test case #1009 by @jeevatkm in https://github.com/go-resty/resty/pull/1083
- @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
v2.17.1
- fix: content type request header on http.NoBody type #1074 by @jeevatkm in https://github.com/go-resty/resty/pull/1079
Full Changelog: https://github.com/go-resty/resty/compare/v2.17.0...v2.17.1
v3.0.0-beta.5
https://resty.dev/docs/upgrading-to-v3/
https://resty.dev/docs/new-features-and-enhancements/
- fix: remove only one whitespace from data prefix #1044 by @jeevatkm in https://github.com/go-resty/resty/pull/1075
- feat: add TLSClientConfiger interface support into EventSource #1032 by @jeevatkm in https://github.com/go-resty/resty/pull/1072
- feat: add response header argument in EventOpenFunc #1060 by @yoogoc in https://github.com/go-resty/resty/pull/1073
- feat: SSE add request failure event callback function #1041 by @jeevatkm in https://github.com/go-resty/resty/pull/1076
- release: version bump to v3.0.0-beta.5 by @jeevatkm in https://github.com/go-resty/resty/pull/1077
- @yoogoc made their first contribution in https://github.com/go-resty/resty/pull/1073
Full Changelog: https://github.com/go-resty/resty/compare/v3.0.0-beta.4...v3.0.0-beta.5
v3.0.0-beta.4
https://resty.dev/docs/upgrading-to-v3/
https://resty.dev/docs/new-features-and-enhancements/
- fix: potential wrong total time in trace info when the request is invalid (#1016) by @git-hulk in https://github.com/go-resty/resty/pull/1017
- fix: Fixed functions of decodeJson do not return. by @Khachi-at in https://github.com/go-resty/resty/pull/1002
- fix(circuit breaker): protect access to lastFailureAt by atomic operations to avoid race conditions by @liuzengh in https://github.com/go-resty/resty/pull/1019
- fix: Cookie Clone Issue in Client.Clone() by @jackcipher in https://github.com/go-resty/resty/pull/1036
- fix: be able to invoke Close in SSE callback by @invzhi in https://github.com/go-resty/resty/pull/1048
- fix: negative trace substraction when using SetTimeout by @nicolasbeauvais in https://github.com/go-resty/resty/pull/1038
- fix: add missing flow and check for do not parse response #1051 by @jeevatkm in https://github.com/go-resty/resty/pull/1068
- feat: Add close hooks by @pior in https://github.com/go-resty/resty/pull/1054
- feat(enhancement): Use crypto/sha256 instead of crypto/md5 for FIPS compliance. by @BillBuilt in https://github.com/go-resty/resty/pull/1056
- feat(enhancement): add MaxConnsPerHost setting into TransportSettings #1058 by @jeevatkm in https://github.com/go-resty/resty/pull/1069
- docs: correct code grammar in comments by @invzhi in https://github.com/go-resty/resty/pull/1049
- ci: update go.mod package and build config by @jeevatkm in https://github.com/go-resty/resty/pull/1067
- release: version bump and readme update by @jeevatkm in https://github.com/go-resty/resty/pull/1070
- test: Add HTTPS request with trace test for coverage by @nicolasbeauvais in https://github.com/go-resty/resty/pull/1064
- chore: fix typos in tests by @alexandear in https://github.com/go-resty/resty/pull/1063
- @Khachi-at made their first contribution in https://github.com/go-resty/resty/pull/1002
- @jackcipher made their first contribution in https://github.com/go-resty/resty/pull/1036
- @invzhi made their first contribution in https://github.com/go-resty/resty/pull/1049
- @pior made their first contribution in https://github.com/go-resty/resty/pull/1054
- @BillBuilt made their first contribution in https://github.com/go-resty/resty/pull/1056
- @alexandear made their first contribution in https://github.com/go-resty/resty/pull/1063
Full Changelog: https://github.com/go-resty/resty/compare/v3.0.0-beta.3...v3.0.0-beta.4
v2.17.0
- Fix off-by-one error in key/value resolution by @mbsulliv in https://github.com/go-resty/resty/pull/975
- Fix/missing content length header on empty post req by @Libero-Dev in https://github.com/go-resty/resty/pull/1003
- backport: potential wrong total time in trace info from PR #1017 by @git-hulk in https://github.com/go-resty/resty/pull/1018
- backport: negative trace substraction when using SetTimeout by @nicolasbeauvais in https://github.com/go-resty/resty/pull/1065
- For v2.17.0 release by @jeevatkm in https://github.com/go-resty/resty/pull/1066
- @mbsulliv made their first contribution in https://github.com/go-resty/resty/pull/975
- @Libero-Dev made their first contribution in https://github.com/go-resty/resty/pull/1003
Full Changelog: https://github.com/go-resty/resty/compare/v2.16.5...v2.17.0