Releases: CodingAleCR/http_interceptor
Releases · CodingAleCR/http_interceptor
2.0.0
What's Changed
- Fix type 'Response' is not a subtype of type 'StreamedResponse' in type cast by @wilinz in #132
- feat: Simplify configuration of delay between retries by @jonasschaude in #122
- refactor!: use FutureOr to allow synchronous interceptors by @Leptopoda in #144
- docs: add ayyysh04 as a contributor for ideas by @allcontributors in #146
- fix: ci actions, docs and issues with requestTimeout configs by @CodingAleCR in #147
New Contributors
- @wilinz made their first contribution in #132
- @jonasschaude made their first contribution in #122
- @Leptopoda made their first contribution in #144
Beta Changelog: 2.0.0-beta.7...2.0.0
Full Changelog: 1.0.2...2.0.0
2.0.0-beta.8
2.0.0-beta.7
What's Changed
- docs: add ntimesc as a contributor for ideas by @allcontributors in #116
- updated packages by @mauryagaurav947 in #129
New Contributors
- @mauryagaurav947 made their first contribution in #129
Full Changelog: 2.0.0-beta.6...2.0.0-beta.7
2.0.0-beta.6
What's Changed
- ✨ Added:
Future<bool> shouldInterceptRequest()andFuture<bool> shouldInterceptResponse(). This enables individual interceptor checks and conditional intercepting configurations. - ✨ Added:
bodyBytestoRequest.copyWith. This adds support to set and modify the body as a stream of bytes. - ❗️🛠 Changed:
RetryPolicyto beFuture<bool>instead ofboolso that you can support different exception retrying scenarios (See #115). - 📖 Changed: example project to showcase updated Flutter 3.0, new library APIs and
MultipartRequesthandling.
Full Changelog: 2.0.0-beta.5...2.0.0-beta.6
2.0.0-beta.5
What's Changed
- ✨ Added: request timeout handler by @javiermrz in #108
- 📖 Changed: add javiermrz as a contributor for code by @allcontributors in #111
New Contributors
- @javiermrz made their first contribution in #108
Full Changelog: 2.0.0-beta.4...2.0.0-beta.5
2.0.0-beta.4
What's Changed
- ❗️🛠 Changed:
shouldAttemptRetryOnExceptionwill now also pass theBaseRequest. - 🚦 Tests: Updated tests.
- 🐞 Fixed:
MultipartRequestdoes not get intercepted correctly (has missing fields). - 🐞 Fixed:
MultipartRequestignores retry policy. - 🐞 Fixed: Changing
bodycauses the headers to change and ignore previous interceptions (i.e. content-type headers are overridden). - 🐞 Fixed:
copyWithwas missing fields - 🚦 Tests: Updated tests.
New Contributors
Full Changelog: 2.0.0-beta.2...2.0.0-beta.4
2.0.0-beta.2
What's Changed
- fix: intercepting body causes headers to be reset
Full Changelog: 2.0.0-beta.1...2.0.0-beta.2
2.0.0-beta.1
What's Changed
- ❗️🛠 Changed: Renamed
Methodto useHttpMethodand refactored helper functions into extensions (StringToMethod, andMethodToString). - ❗️🛠 Changed:
InterceptorContractto useBaseRequestandBaseResponseinstead of custom models. - ❗️🛠 Removed:
RequestDataandResponseDatasince the classes are no longer used. - ✨ Added: Support for intercepting
Request,StreamedRequestandMultipartRequest. - ✨ Added: Support for intercepting
Response,StreamedResponseandMultipartRequest. - ✨ Added: Extensions for
BaseRequest,Request,StreamedRequestandMultipartRequestthat allows copying requests through acopyWithmethod. - ✨ Added: Extensions for
BaseResponse,Response,StreamedResponseandIOStreamedResponsethat allows copying responses through acopyWithmethod. - 📖 Changed: example project to showcase updated APIs.
- 🚦 Tests: Improved testing and documentation.
New Contributors
- @lukaskurz made their first contribution in #98
Full Changelog: 1.0.2...2.0.0-beta.1
1.0.2
📖 Changed: example project to showcase RetryPolicy usage.
🐞 Fixed: parameters were missing in requests of type POST, PUT, PATCH, and DELETE.
🐞 Fixed: int or other non-string parameters are not being added to request. Thanks to @ Contributor meysammahfouzi
🐞 Fixed: body is not sent in delete requests despite being accepted as parameter. Thanks to @MaciejZuk
1.0.1
- ✨ Changed:
ResponseDatanow hasrequestto allow checking on the request that triggered the response. Thanks to @II11II - 🐞 Fixed: Use
queryParametersAllwhen creatingRequestData. Thanks to @Mawi137 - 📖 Fixed:
READMEto includerequiredkeywords needed. Thanks to @meysammahfouzi - 🚦 Tests: Improved testing and documentation.