polly_dart 0.0.8
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.). ExposesisCancelled,whenCancelled(Future<void>),cancel(), andthrowIfCancelled().ResilienceContext.cancellationToken— getter that returns the context'sCancellationToken, 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 #
OperationCancelledExceptionmoved fromresilience_context.dartto the newcancellation_token.dart. It is still re-exported by both files, so any existingimport '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 inextensions/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.