retry_with_connectivity 1.0.1 copy "retry_with_connectivity: ^1.0.1" to clipboard
retry_with_connectivity: ^1.0.1 copied to clipboard

A reliable execution framework for Flutter that intelligently retries asynchronous operations with backoff strategies and circuit breakers.

1.0.1 #

  • Fixed DioException error by bumping minimum dio dependency to ^5.4.0.
  • Shortened pubspec.yaml description for better search engine optimization.

1.0.0 #

  • Initial Release: Production-grade, reliable execution framework (SmartRetry) for Flutter and Dart.
  • Core Retry Engine: Added SmartRetry.run and SmartRetry.runResult supporting maxAttempts, maxDuration, per-attempt timeouts, and cancellation via RetryToken.
  • Mathematical Backoff Strategies: Implemented ExponentialWithJitterBackoff, DecorrelatedJitterBackoff, FibonacciBackoff, ExponentialBackoff, LinearBackoff, FixedBackoff, and CustomBackoff.
  • Dual-Layer Connectivity Awareness: Added ConnectivityMonitor, ConnectivityPlusDetector (Layer 1), and active reachability verification (DnsReachabilityChecker and SocketReachabilityChecker - Layer 2).
  • HTTP & API Intelligence: Added HttpRetryConfig, HttpRetryCondition, RetryAfterParser (supporting RFC 7231 header parsing), and CompositeHttpResponseExtractor (supporting dynamic duck-typing for third-party exceptions).
  • Client Integrations: Added first-class SmartRetryInterceptor for Dio (lib/dio.dart) and RetryHttpClient for package:http (lib/http.dart).
  • Resilience Circuit Breakers: Implemented stateful CircuitBreaker (closed, open, halfOpen) with configurable thresholds and concurrency control.
  • Offline Queue & Replay: Added OfflineQueue, InMemoryOfflineQueue, QueuedTask, and QueueProcessor for automatic task execution upon connectivity restoration.
  • Observability & Logging: Added RetryCallbacks and RetryLogger with built-in console formatting and custom callback support.
1
likes
160
points
0
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A reliable execution framework for Flutter that intelligently retries asynchronous operations with backoff strategies and circuit breakers.

Repository (GitHub)
View/report issues

License

Apache-2.0 (license)

Dependencies

connectivity_plus, dio, flutter, http

More

Packages that depend on retry_with_connectivity