Skip to content

Releases: CodingAleCR/http_interceptor

2.0.0

07 Jul 18:48
25ab8b6
Compare
Choose a tag to compare

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

Beta Changelog: 2.0.0-beta.7...2.0.0
Full Changelog: 1.0.2...2.0.0

2.0.0-beta.8

02 Feb 21:11
Compare
Choose a tag to compare
2.0.0-beta.8 Pre-release
Pre-release

What's Changed

  • Fix type 'Response' is not a subtype of type 'StreamedResponse' in type cast by @wilinz in #132

New Contributors

Full Changelog: 2.0.0-beta.7...2.0.0-beta.8

2.0.0-beta.7

12 Jun 19:39
acefc55
Compare
Choose a tag to compare
2.0.0-beta.7 Pre-release
Pre-release

What's Changed

New Contributors

Full Changelog: 2.0.0-beta.6...2.0.0-beta.7

2.0.0-beta.6

10 Aug 17:17
5c10e33
Compare
Choose a tag to compare
2.0.0-beta.6 Pre-release
Pre-release

What's Changed

  • ✨  Added: Future<bool> shouldInterceptRequest() and Future<bool> shouldInterceptResponse(). This enables individual interceptor checks and conditional intercepting configurations.
  • ✨  Added: bodyBytes to Request.copyWith. This adds support to set and modify the body as a stream of bytes.
  • ❗️🛠  Changed: RetryPolicy to be Future<bool> instead of bool 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

11 Mar 07:44
40d762b
Compare
Choose a tag to compare
2.0.0-beta.5 Pre-release
Pre-release

What's Changed

New Contributors

Full Changelog: 2.0.0-beta.4...2.0.0-beta.5

2.0.0-beta.4

25 Jan 21:57
692adc5
Compare
Choose a tag to compare
2.0.0-beta.4 Pre-release
Pre-release

What's Changed

  • ❗️🛠 Changed: shouldAttemptRetryOnException will now also pass the BaseRequest.
  • 🚦 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

14 Nov 18:06
Compare
Choose a tag to compare
2.0.0-beta.2 Pre-release
Pre-release

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

14 Nov 03:45
Compare
Choose a tag to compare
2.0.0-beta.1 Pre-release
Pre-release

What's Changed

  • ❗️🛠  Changed: Renamed Method to use HttpMethod and refactored helper functions into extensions (StringToMethod, and MethodToString).
  • ❗️🛠  Changed: InterceptorContract to use BaseRequest and BaseResponse instead of custom models.
  • ❗️🛠  Removed: RequestData and ResponseData since the classes are no longer used.
  • ✨  Added: Support for intercepting Request,StreamedRequest and MultipartRequest.
  • ✨  Added: Support for intercepting Response,StreamedResponse and MultipartRequest.
  • ✨  Added: Extensions for BaseRequest, Request,StreamedRequest and MultipartRequest that allows copying requests through a copyWith method.
  • ✨  Added: Extensions for BaseResponse, Response,StreamedResponse and IOStreamedResponse that allows copying responses through a copyWith method.
  • 📖  Changed: example project to showcase updated APIs.
  • 🚦  Tests: Improved testing and documentation.

New Contributors

Full Changelog: 1.0.2...2.0.0-beta.1

1.0.2

08 Aug 17:02
2898af8
Compare
Choose a tag to compare

📖 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

10 Jul 17:29
6117ac3
Compare
Choose a tag to compare
  • ✨  Changed: ResponseData now has request to allow checking on the request that triggered the response. Thanks to @II11II
  • 🐞  Fixed: Use queryParametersAll when creating RequestData. Thanks to @Mawi137
  • 📖  Fixed: README to include required keywords needed. Thanks to @meysammahfouzi
  • 🚦  Tests: Improved testing and documentation.