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:
bodyBytes
toRequest.copyWith
. This adds support to set and modify the body as a stream of bytes. - ❗️🛠 Changed:
RetryPolicy
to beFuture<bool>
instead ofbool
so that you can support different exception retrying scenarios (See #115). - 📖 Changed: example project to showcase updated Flutter 3.0, new library APIs and
MultipartRequest
handling.
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:
shouldAttemptRetryOnException
will now also pass theBaseRequest
. - 🚦 Tests: Updated tests.
- 🐞 Fixed:
MultipartRequest
does not get intercepted correctly (has missing fields). - 🐞 Fixed:
MultipartRequest
ignores retry policy. - 🐞 Fixed: Changing
body
causes the headers to change and ignore previous interceptions (i.e. content-type headers are overridden). - 🐞 Fixed:
copyWith
was 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
Method
to useHttpMethod
and refactored helper functions into extensions (StringToMethod
, andMethodToString
). - ❗️🛠 Changed:
InterceptorContract
to useBaseRequest
andBaseResponse
instead of custom models. - ❗️🛠 Removed:
RequestData
andResponseData
since the classes are no longer used. - ✨ Added: Support for intercepting
Request
,StreamedRequest
andMultipartRequest
. - ✨ Added: Support for intercepting
Response
,StreamedResponse
andMultipartRequest
. - ✨ Added: Extensions for
BaseRequest
,Request
,StreamedRequest
andMultipartRequest
that allows copying requests through acopyWith
method. - ✨ Added: Extensions for
BaseResponse
,Response
,StreamedResponse
andIOStreamedResponse
that allows copying responses through acopyWith
method. - 📖 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:
ResponseData
now hasrequest
to allow checking on the request that triggered the response. Thanks to @II11II - 🐞 Fixed: Use
queryParametersAll
when creatingRequestData
. Thanks to @Mawi137 - 📖 Fixed:
README
to includerequired
keywords needed. Thanks to @meysammahfouzi - 🚦 Tests: Improved testing and documentation.