rx_bloc 3.1.0
rx_bloc: ^3.1.0 copied to clipboard
A Flutter package that helps implementing the BLoC (Business Logic Component) Design Pattern using the power of reactive streams.
[3.1.0] - July 09, 2021 #
- Added an optional param
tag
to (Future/Stream).asResultStream(tag: 'someTag').- This will help to distinguish the action that has been triggered a particular async call. Check the flutter_rx_bloc example for more details.
- Added utility (extension) methods
Stream<ResultError<T>>
.mapToException()
Stream<ResultError<T>>
.mapToErrorWithTag()
Stream<Result<T>>
.isLoadingWithTag()
- Added new states and methods to RxBlocBase
RxBlocBase
.errorWithTagState
RxBlocBase
.loadingWithTagState
RxBlocBase
.loadingForTagState('someTag')
[3.0.0] - May 21, 2021 #
- Support Flutter
2.2
- Update
rxdart
to use version0.27.0
[2.0.2] - April 19, 2021 #
Result
equatable improvements- Stability improvements
- Increased code coverage
- Documentation updates
[2.0.0] - March 10, 2021 #
- Migrated to Flutter
2.0
and Dart2.12
(null-safety).
[1.2.3] - February 26, 2020 #
- Documentation improvements
[1.2.2] - January 29, 2020 #
- Stability improvements
[1.2.1] - January 29, 2020 #
- Stability improvements
[1.2.0] - January 29, 2020 #
- Fixed side effects in setStateHandler/setErrorStateHandler/setLoadingHandler
- Removed rx_bloc/extensions library as this is now part of rx_bloc/rx_bloc
- Increased code coverage
[1.1.1] - December 08, 2020 #
- Upgraded to rxdart ^0.25.0
- Upgraded to meta: ^1.2.4
[1.0.4] - December 02, 2020 #
- Consolidated rx_bloc ecosystem in one repository
- Applied strict static code analysis
- Improved equability of the
ResultSuccess
class - Improved example
- Documentation improvements
[1.0.1] - August 21, 2020 #
- Upgraded to last stable SDK
[1.0.0] - August 20, 2020 #
- Upgraded to last stable Flutter/Dart
- Reorganized as a library package
- Implemented Stream extensions
- setErrorStateHandler()
- setLoadingStateHandler()
- Renamed parameter
shareStream
toshareReplay
of setResultStateHandler()
[0.3.1] - April 29, 2020 #
- Upgraded to last stable Flutter/Dart
- Upgraded to last stable rxdart
- Added an example
- Stability improvements
[0.3.0] - April 5, 2020 #
- Added
asResultStream()
extension method to the Stream - Fixed behaviour of
setResultStateHandler
whenshareStream
parameter istrue
.
[0.2.0] - March 18, 2020 #
- Breaking changes
- Renamed methods in RxBlocBase class:
registerRequest
->setResultStateHandler
registerRequestToLoading
->setLoadingStateHandler
registerRequestToErrors
->setErrorStateHandler
- Renamed properties in RxBlocBase class:
requestsLoadingState
->loadingState
requestsExceptions
->errorState
- Renamed method in Stream extension:
registerRequest
->setResultStateHandler
- Renamed methods in RxBlocBase class:
- Added an optional named parameter
shareStream
tosetResultStateHandler
methods. It has default valuetrue
. If it istrue
the stream will be converted to broadcast one before registering it to errors and loading.
[0.1.0] - March 14, 2020 #
- Removed const annotations @rxBloc and @rxBlocIgnoreState
- Removed flutter as dependency in favour of the meta package
- Added unit tests
- Updated README file
[0.0.1] - Jan 16, 2020 #
- Initial release