async_field 1.1.5
async_field: ^1.1.5 copied to clipboard
Async fields that can be stored or fetched from any source (databases, web services, local storage or other thread/isolate), with observable values, caches and stale versions.
1.1.5 #
- async_extension: ^1.2.24
1.1.4 #
- Tests (no library changes):
- Added
test/async_field_concurrency_test.dart: concurrentget()/refresh()(single fetch), fetch errors with concurrent callers, saver/fetcher interleavings,onChangeFilterprevious values, event ordering, deterministic slate values viatimeoutChecker, many fields in one storage,close/reopen,dispose/disposeValue/deleteunder in-flight operations andperiodicRefresh(including the immediate refresh of an already-elapsed period). - Added
test/async_field_http_integration_test.dart(VM only): anAsyncStoragebacked by a localHttpServerexercising fetch/save/delete, single-request concurrency, server errors and recovery, slate values and a closed storage. AsyncStorage (fetch error): now awaits itsthrowsAexpectation.
- Added
1.1.3 #
- Example and README:
- Replaced the retired CoinDesk endpoint (
api.coindesk.com/v1/bpi/currentprice.json) with the Coinbase public spot price API (api.coinbase.com/v2/prices/BTC-USD/spot). _getURLnow checks the HTTP status and closes theHttpClient, so the example exits cleanly.- Fixed
BTX-USD/BTS-USDtypos and refreshed the sample output.
- Replaced the retired CoinDesk endpoint (
1.1.2 #
-
AsyncField:- Fixed dartdoc references in
isClosedandtimeoutChecker.
- Fixed dartdoc references in
-
Added
test/async_field_api_test.dart: coverage forAsyncFieldID, values/defaults, saver/deleter/dispose, slate values,timeoutChecker,periodicRefresh,fieldsTimeoutandclear/reopen. -
.github/workflows/dart.yml:actions/checkout@v7,codecov/codecov-action@v7.
-
sdk: ^3.13.0
-
collection: ^1.19.1
-
async_extension: ^1.2.23
-
lints: ^6.1.0
-
test: ^1.33.0
-
dependency_validator: ^5.1.0
-
coverage: ^1.16.0
1.1.1 #
AsyncField:- Added
timeoutChecker.
- Added
1.1.0 #
-
AsyncField:refresh: ensure that_fetchingis removed on error.
-
sdk: '>=3.0.0 <4.0.0'
-
collection: ^1.18.0
-
async_extension: ^1.2.12
-
lints: ^3.0.0
-
test: ^1.25.5
-
dependency_validator: ^3.2.3
-
coverage: ^1.8.0
1.0.8 #
AsyncStorage:- Added
reopen.
- Added
AsyncField:- Added
valueOrSlateandvalueOrSlateNoTimeoutCheck. - Added
isSlateandisSetOrSlate. - Added
onChangeFilter. - Added
dsxValueAllowSlateanddsxValueAllowAutoFetch.
- Added
analysis_options.yaml:- Added linter rules:
avoid_dynamic_calls.avoid_type_to_string.no_runtimeType_toString.discarded_futures.no_adjacent_strings_in_list.
- Added linter rules:
- sdk: '>=2.18.0 <3.0.0'
- async_extension: ^1.1.0
- test: ^1.23.1
- coverage: ^1.6.3
1.0.7 #
AsyncField:- Added
isFetching. get: now respect the current fetchingFuture.
- Added
- lints: ^2.0.1
- test: ^1.22.2
- coverage: ^1.6.2
1.0.6 #
AsyncStorage:- Added
closeandisClosed: will stopfetch,saveanddeleteoperations.
- Added
1.0.5 #
- Added
deletedValue. deletewon't calldisposeanymore.- Improve Null Safety.
- sdk: '>=2.14.0 <3.0.0'
- collection: ^1.16.0
- async_extension: ^1.0.12
- lints: ^2.0.0
- test: ^1.21.4
- dependency_validator: ^3.2.2
- coverage: ^1.3.2
1.0.4 #
- Added
periodicRefresh. - Fixed events to allow multiple listeners (
StreamController.broadcast). - Added DSX dynamic interface (package
dom_builder). - improve tests.
1.0.3 #
- Change
AsyncField.setto return the defined value. - improve tests
- async_extension: ^1.0.4
1.0.2 #
- Adjust
pubspec.yamldescription. - Adjust
README.md. - Fix dispose.
1.0.1 #
- Add
AsyncField.timeout. - Added
get( onSlateValue ). - Improve tests.
1.0.0 #
- Initial version.