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_value
library withstated_custom
- Brand new
stated_builder
with support tostated_custom
andOnState
DSL - Rename
DoneState
,CompletedState
toSucceededState
andErrorState
toFailedState
to align the terms
[0.3.0-preview.1] #
-
Added
stated
library- Expose new
Stated
type as the base type - Moved results into
stated
library. - Added name suffix
State
to every states. - Renamed
Waiting
toWorkingState
,FailedState
toErrorState
,SucceededState
toDoneValueState
- Added
WorkingValueState
ErrorValueState
- Renamed
ErrorWithStack
toErrorInfo
- Renamed
error
ofHasError
toexception
, and changed type fromdynamic
toObject
- Replaced
ValueResultMapper
ErrorResultMapper
withValueMapper
- Renamed
ValueMapper
toValueTransformer
- Renamed
ResultMapper
toStateTransformer
- Renamed
StatedResult.asFailed
toStatedResult.asError
, and returnsErrorInfo
- Renamed
StatedResult.asValueResult
toStatedResult.asValue
, and returns value directly
- Expose new
-
Change to
stated_result
QueryResult.succeeded
andAsyncQueryResult.succeeded
are renamed tocompleted
.AsyncQueryResult.mapValue
get droppedAsyncQueryResult.updateWith
andAsyncActionResult.updateWith
method signature changed
-
Change to
stated_result_builder
- Removed all the default builder
ActionResultBuilder
andQueryResultBuilder
becomes a wrapper ofStatedBuilder
-
Added
stated_builder
library- Added
StatedBuilder
- Added
WorkingIndicatorBuilder
- Added
-
Added
stated_value
library- Added
StatedValue
- Added
StatedValueCubit
- Added
[0.2.0] - 2021-05-04 #
- Upgraded dependencies
- Aligned generic parameter order of
QueryBlocBuilder
andQueryBlocConsumer
toBlocBuilder
andBlocConsumer
ActionBloc.captureResult
andActionResultNotifier.captureResult
returns original future.- Added
AsyncQueryResult.fromValue
to 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
BlocBase
instead ofBloc
, so theCubit
can be applied - Make
ActionBloc
andQueryBloc
non-abstract - Fix issue that
AsyncQueryResult.pending().updateWith
throwsAsyncQueryResult<T>
isn't subtype ofAsyncQueryResult<Never>
[0.2.0-preview.4] - 2021-03-23 #
- Rename
Busy
toWaiting
- Add documents for
stated_result_builder
- Add tests for
stated_result_builder
- Rename all result builders' default builder property from
valueBuilder
tobuilder
- Add new
.from
conversion factory method to convertStatedResult
from one to another - Add
updateWith
onAsyncStatedResult
- Add
captureResult
toCubit
andValueNotifier
- Update
updateWith
parameter type onCubit
andValueNotifier
- Remove
updateWithAsync
method - Added
FutureResultBuilder
to consume future directly
[0.2.0-preview.3] - 2021-03-20 #
- Refactor code
- Improve test coverage
- Improve document quality
- Improve naming
- Introduce
BlankableBuilder
to 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_bloc
tostated_result
[0.1.1] - 2021-03-18 #
- Added
ValueNotifier
andListenableBuilder
integration
[0.1.0] - 2021-03-18 #
- First release