stated_result 0.3.0-preview.2
stated_result: ^0.3.0-preview.2 copied to clipboard
A bloc that accepts async source as input
Change Log #
0.3.0-preview.2 #
- Removed the concept of
ErrorInfo, use error directly - Replace
stated_valuelibrary withstated_custom - Brand new
stated_builderwith support tostated_customandOnStateDSL - Rename
DoneState,CompletedStatetoSucceededStateandErrorStatetoFailedStateto align the terms
0.3.0-preview.1 #
-
Added
statedlibrary- Expose new
Statedtype as the base type - Moved results into
statedlibrary. - Added name suffix
Stateto every states. - Renamed
WaitingtoWorkingState,FailedStatetoErrorState,SucceededStatetoDoneValueState - Added
WorkingValueStateErrorValueState - Renamed
ErrorWithStacktoErrorInfo - Renamed
errorofHasErrortoexception, and changed type fromdynamictoObject - Replaced
ValueResultMapperErrorResultMapperwithValueMapper - Renamed
ValueMappertoValueTransformer - Renamed
ResultMappertoStateTransformer - Renamed
StatedResult.asFailedtoStatedResult.asError, and returnsErrorInfo - Renamed
StatedResult.asValueResulttoStatedResult.asValue, and returns value directly
- Expose new
-
Change to
stated_resultQueryResult.succeededandAsyncQueryResult.succeededare renamed tocompleted.AsyncQueryResult.mapValueget droppedAsyncQueryResult.updateWithandAsyncActionResult.updateWithmethod signature changed
-
Change to
stated_result_builder- Removed all the default builder
ActionResultBuilderandQueryResultBuilderbecomes a wrapper ofStatedBuilder
-
Added
stated_builderlibrary- Added
StatedBuilder - Added
WorkingIndicatorBuilder
- Added
-
Added
stated_valuelibrary- Added
StatedValue - Added
StatedValueCubit
- Added
0.2.0 - 2021-05-04 #
- Upgraded dependencies
- Aligned generic parameter order of
QueryBlocBuilderandQueryBlocConsumertoBlocBuilderandBlocConsumer ActionBloc.captureResultandActionResultNotifier.captureResultreturns original future.- Added
AsyncQueryResult.fromValueto create instance from value - Added more tests
0.2.0-preview.5 - 2021-03-25 #
- Add
mapValue - Fix builder type issue for
EmptyableContentBuilder - Make BLoc builders and bloc consumers accept
BlocBaseinstead ofBloc, so theCubitcan be applied - Make
ActionBlocandQueryBlocnon-abstract - Fix issue that
AsyncQueryResult.pending().updateWiththrowsAsyncQueryResult<T>isn't subtype ofAsyncQueryResult<Never>
0.2.0-preview.4 - 2021-03-23 #
- Rename
BusytoWaiting - Add documents for
stated_result_builder - Add tests for
stated_result_builder - Rename all result builders' default builder property from
valueBuildertobuilder - Add new
.fromconversion factory method to convertStatedResultfrom one to another - Add
updateWithonAsyncStatedResult - Add
captureResulttoCubitandValueNotifier - Update
updateWithparameter type onCubitandValueNotifier - Remove
updateWithAsyncmethod - Added
FutureResultBuilderto consume future directly
0.2.0-preview.3 - 2021-03-20 #
- Refactor code
- Improve test coverage
- Improve document quality
- Improve naming
- Introduce
BlankableBuilderto handle empty list or nullable value
0.2.0-preview.2 - 2021-03-19 #
- Try to export features into different libraries
0.2.0-preview.1 - 2021-03-19 #
- Reshape Project and rename project from
async_bloctostated_result
0.1.1 - 2021-03-18 #
- Added
ValueNotifierandListenableBuilderintegration
0.1.0 - 2021-03-18 #
- First release