batch_fetcher 0.1.1
batch_fetcher: ^0.1.1 copied to clipboard
Coalesces per-item value lookups into batched requests, with debouncing, per-id caching, retry with backoff, and typed per-id state.
0.1.1 #
- Fix
trim()resurrecting the ids it was asked to forget. It dropped an id's cache entry but left the id in its scope's queue, so an id awaiting a retry was re-requested and re-created on the next drain — leaking the memory the call was meant to free. It also now drops ids queued but not yet requested, and completes any caller awaiting an id it removed, which would otherwise wait for a request that is never sent.
0.1.0 #
- Initial release:
BatchFetcher,BatchScope,BatchKey,BatchOutcome, the sealedFetchEntrystates,RetryPolicy/ExponentialBackoff/NoRetry,SettlePolicy/SettleWhen,BatchFetcherConfig,BatchFetcherObserverand the injectedClock. - Adds the
batch_fetcher_testinglibrary:FakeClock,ScriptedRequestandRecordingObserver. No new dependencies — it works under bothtestandflutter_test.