brick_offline_first_with_rest 4.0.1
brick_offline_first_with_rest: ^4.0.1 copied to clipboard
A Brick domain that routes data fetching through local providers before a REST providers.
4.0.1 #
- Fixes a bug where
get
with.awaitRemote
and a non-emptyQuery
overrides the initial query and disregards the URL when being passed to the remote provider viaRestRequest
. Hat tip to @hortigado and @devj3ns #553
4.0.0 #
- BREAKING CHANGE
Query(providerArgs:)
is no longer supported. See #510 for migration steps. - Dart minimum SDK is updated to
3.4.0
- All dependency restrictions are updated to include the minimum released version.
3.3.0 #
- Allow a generic type argument for
OfflineFirstWithRestRepository
- Upgrade
brick_core
to1.3.0
- Update analysis to modern lints
OfflineFirstException
has been moved to thebrick_offline_first
package
3.2.0 #
- Add optional
onRequestException
callback function toRestOfflineQueueClient
- Add optional
onReattempt
callback function toRestOfflineQueueClient
3.1.0 #
- Expose offline queue functionality in
offline_queue.dart
- Include
request
inRestOfflineQueueClient
's generic error response - Add
ignorePaths
toRestOfflineQueueClient
's constructor. This parameter will not cache requests that begin with any of the supplied values.
3.0.2 #
- Apply standardized lints
- Update minimum HTTP to 1.0.0
3.0.1 #
- Support Dart 3
3.0.0 #
Please follow the v3 migration guide to easily upgrade.
- Remove instance-access
reattemptForStatusCodes
; this is passed directly to the cache manager - Remove extraneous constructor argument
throwTunnerNotFoundExceptions
and rely on remote policy / the queue manager - Remove
brick_sqlite_abstract
- Remove
brick_offline_first_abstract
- Remove
brick_offline_first_with_rest_abstract
; add annotationConnectOfflineFirstWithRest
and classOfflineFirstWithRestModel
to this package - BREAKING CHANGE Rename main export file to
brick_offline_first_with_rest.dart
:FieldRename
,Graphql
GraphqlProvider
, andGraphqlSerializable
can all be imported from thebrick_rest
package - Add
#subscribe
method to listen for SQLite updates
1.1.1 #
- Update default of offline queue from 0 seconds to 5 seconds
1.1.0 #
- Loosen dependency restrictions to major versions
- Import from
sqflite_common
instead ofsqflite
to avoid a Flutter dependency - BREAKING CHANGE
OfflineFirstWithRestRepository#offlineQueueHttpClientRequestSqliteCacheManager
is nowOfflineFirstWithRestRepository#offlineQueueManager
- BREAKING_CHANGE
offlineQueueManager
is required to createBrickOfflineFirstWithRestRepository
. To migrate without recreating the queue database, pass RestRequestSqliteCacheManager('brick_offline_queue.sqlite', databaseFactory)
1.0.0 #
- Integrate new
OfflineFirstPolicy
s to theRestOfflineQueueClient
0.0.2 #
- Support new policies for skipping cache or requesting data. See brick_offline_first's change notes for how to migrate the breaking changes.
0.0.1 #
- BREAKING CHANGE
SqliteProvider
andQuery
are no longer exportedoffline_first_with_rest.dart
. Please import frompackage:brick_sqlite/db.dart
andpackage:brick_core/query.dart
respectively. - Create package from
brick_offline_first
- Initial