polly_dart 0.0.8 copy "polly_dart: ^0.0.8" to clipboard
polly_dart: ^0.0.8 copied to clipboard

A Dart port of Polly (.NET resilience library) providing strategies like Retry, Circuit Breaker, Timeout, Rate Limiter, Hedging, and Fallback.

0.0.8 #

No breaking changes. All existing APIs are preserved.

New #

  • CancellationToken — new public class that bridges the pipeline's cancellation signal to external resources (HTTP clients, etc.). Exposes isCancelled, whenCancelled (Future<void>), cancel(), and throwIfCancelled().
  • ResilienceContext.cancellationToken — getter that returns the context's CancellationToken, ready to pass into HTTP client adapters.
  • ResilienceContext.copy() now propagates parent cancellation to child contexts automatically (previously child contexts were independent after copying).

Internal #

  • OperationCancelledException moved from resilience_context.dart to the new cancellation_token.dart. It is still re-exported by both files, so any existing import 'package:polly_dart/polly_dart.dart' continues to resolve it unchanged.
  • Repo converted to a melos monorepo. Extension packages (polly_dart_http, polly_dart_dio) live in extensions/ and are published as separate packages.

0.0.7 #

  • Update README with examples of cache strategy usage

0.0.6 #

  • Add cache strategy support
  • Fix version in the readme installation example

0.0.5 #

  • ReFormat the changelog for consistency

0.0.4 #

  • Reorganize the changelog

0.0.3 #

  • Update pub homepage link to point to the correct documentation website

0.0.2 #

  • Add docs

0.0.1 #

  • Initial version.
34
likes
160
points
560
downloads

Documentation

API reference

Publisher

verified publisheranirudhsingh.in

Weekly Downloads

A Dart port of Polly (.NET resilience library) providing strategies like Retry, Circuit Breaker, Timeout, Rate Limiter, Hedging, and Fallback.

Homepage
Repository (GitHub)
View/report issues

License

BSD-3-Clause (license)

More

Packages that depend on polly_dart