brick_offline_first 0.0.6
brick_offline_first: ^0.0.6 copied to clipboard
A Brick domain that routes data fetching through local providers before remote providers.
Unreleased #
0.0.6 #
- Remove maximumRequests configuration for the OfflineFirstQueue. One request should be processed at a time in serial
- Optionally ignore Tunnel not found requests (these occur when connectivity exists but the queried endpoint is unreachable) when making repository requests
- Adds argument to repository to reattempt requests based on the status code from the response
OfflineRequestQueue#processbecame a protected method- Added
RequestSqliteCacheManagerto interact with the queue. This new class receives most static methods fromRequestSqliteCache. - Added
OfflineRequestQueue#requestManagerto access queue via aRequestSqliteCacheManagerinstance. - Renamed
RequestSqliteCache.unprocessedRequeststoRequestSqliteCacheManager.prepareNextRequestToProcessas the expected query only returns one locked row at a time. RequestSqliteCacheManager.prepareNextRequestToProcesslocks all unprocessed rows, not just the first one- Add ability to toggle
serialProcessingforOfflineRequestQueue - Private member
OfflineFirstWithRestRepository#offlineRequestQueueis now protected - Remove
isConnectedmember fromOfflineFirstRepositoryand associated Connectivity code. The connection should not matter to the subclass as it, or a supporting class, should track outbound requests.
0.0.5+1 #
- Bump dependencies
0.0.5 #
- Rename
Query#paramstoQuery#providerArgs, reflecting the much narrower purpose of the member
0.0.2 #
- Export REST annotations/classes from
OfflineFirstWithRestRepositoryfor convenient access - Don't require
MemoryCacheProviderinOfflineFirstWithRestRepositoryas it's not required forOfflineFirstRepository - Fix linter hints