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#process
became a protected method- Added
RequestSqliteCacheManager
to interact with the queue. This new class receives most static methods fromRequestSqliteCache
. - Added
OfflineRequestQueue#requestManager
to access queue via aRequestSqliteCacheManager
instance. - Renamed
RequestSqliteCache.unprocessedRequests
toRequestSqliteCacheManager.prepareNextRequestToProcess
as the expected query only returns one locked row at a time. RequestSqliteCacheManager.prepareNextRequestToProcess
locks all unprocessed rows, not just the first one- Add ability to toggle
serialProcessing
forOfflineRequestQueue
- Private member
OfflineFirstWithRestRepository#offlineRequestQueue
is now protected - Remove
isConnected
member fromOfflineFirstRepository
and 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#params
toQuery#providerArgs
, reflecting the much narrower purpose of the member
0.0.2 #
- Export REST annotations/classes from
OfflineFirstWithRestRepository
for convenient access - Don't require
MemoryCacheProvider
inOfflineFirstWithRestRepository
as it's not required forOfflineFirstRepository
- Fix linter hints