Skip to content

Releases: CodingAleCR/http_interceptor

1.0.0

12 Jun 15:51
10f8ec1
Compare
Choose a tag to compare

Check out the 1.0.0 migration guide for information on how to migrate your code.

  • ❗️🛠  Changed: Renamed HttpClientWithInterceptor to InterceptedClient.
  • ❗️🛠  Changed: Renamed HttpWithInterceptor to InterceptedHttp.
  • ❗️🛠  Removed: badCertificateCallback from InterceptedClient and InterceptedHttp in order to fully support Flutter Web 🌐 . In order to use refer to the migration guide.
  • ✨  Added: Array parameters on RequestData following a similar principle than http's queryParametersAll .
  • ✨  Changed: ResponseData now has bodyBytes to allow encoding or decoding in the format desired.
  • ✨  Changed: Migrated tests to use test package instead of flutter_test.
  • ✨  Changed: More tests and coverage, this is a work in progress.
  • 🗑   Removed: Package no longer depends on Flutter, which means that it can be used with standalone Dart projects.

0.4.1

10 Mar 04:37
Compare
Choose a tag to compare
  • 🛠  Changed: Pre initialized headers and params on RequestData. This was a missed change on null-safety migration.

0.4.0

09 Mar 00:36
8f2be2d
Compare
Choose a tag to compare

Check out our 0.4.0 migration guide for information on how to migrate your code.

  • ❗️✨  Added: String extension to allow toUri() usage when importing the library. Since http dropped support for string url usage and since Dart does not yet support function overloading, we had to implement an alternative through extensions.
  • ✨  Added: Flutter web support 🌐   (badCertificateCallback and findProxy features are not supported on Flutter Web due to browser limitations)
  • 🛠  Changed: Upgraded http to 0.13.0.
  • 🛠  Changed: Upgraded effective_dart to 1.3.0.
  • 🛠  Changed: Upgraded Dart sdk to >=2.12.0 <3.0.0. (Yay! Sound null safety! 🎉)
  • 🗑  Removed: meta is removed since Dart's null safety now covers all uses inside this plugin

0.3.3

03 Nov 18:11
01c3175
Compare
Choose a tag to compare
  • Changed: Plugin no longer depends on the flutter/foundation.dart, instead it uses meta plugin which allows for usage on non flutter environments.
  • Changed: README now features a contribution and a roadmap sections for improving visibility on the project's future.
  • Changed: badCertificateCallback is now available to use without the experimental tag.

0.3.2

11 Jul 18:07
056bd91
Compare
Choose a tag to compare

📝 Changelog

  • Changed: Example now showcases exception handling.
  • Changed: README now showcases exception handling.
  • Fixed: Interceptor no longer using custom exceptions, instead it rethrows in the case that the retry policy is not set or if it has reached max attempts.

0.3.1

04 Jul 16:22
fb0d4f1
Compare
Choose a tag to compare

📝 Changelog

  • Fixed: Retry Policy's shouldAttemptRetryOnResponse was synchronous which would not allow async token updates. (Thanks to @AsynchronySuperWes! 🎉)
  • Fixed: Retry Policy would only trigger once when using HttpClientWithInterceptor.
  • Fixed: Retry Policy would use the http Response class, which would force plugin users to add http plugin separately.
  • Experimental: badCertificateCallback allows you to use self-signing certificates.

0.3.0

24 Apr 05:13
ab64835
Compare
Choose a tag to compare

Changelog

  • Added: RetryPolicy. It allows to attempt retries on a request when an exception occurs or when a condition from the response is met.
  • Fixed: URI type urls not concatenating parameters.

0.2.0

29 Jan 02:34
4329c8c
Compare
Choose a tag to compare

Changelog

  • Added: Unit testing for a few of the files.
  • Modified: Android and iOS projects both in the plugin and the example now use Kotlin/Swift.
  • Modified: Android projects both in the plugin and the example now use AndroidX namespaces.
  • Fixed: Last '&' character was not removed from parametized URLs.
  • Fixed: Duplicate GET parameters when using get.

0.1.1

18 Sep 19:33
Compare
Choose a tag to compare

Changelog

  • Fixed: HTTP Methods have misaligned parameters. Now they are called via named parameters to avoid type mismatch exceptions when being used.

0.1.0

18 Sep 19:34
16f797d
Compare
Choose a tag to compare

Changelog

  • Added: Query Parameters to GET requests, it allows you to set proper parameters without having to add them to the URL beforehand.
  • Modified: Documentation for the example to include the new Query Parameters usage.