bloc_arch_flow 1.1.0
bloc_arch_flow: ^1.1.0 copied to clipboard
A Bloc extension package to easily implement TCA or MVI architecture with Bloc using fpdart.
1.1.0 #
Feat #
- Introduce a new testing framework: Added
BlocTestSuiteand dedicated test suite base classes (MviCubitTestSuite,TcaBlocTestSuite) to provide a more structured and declarative way of writing tests. This improves test maintainability and readability. - Add test utility mixin: Introduced
TestSuiteUtilityMixinwith helper methods likewhenSuccessTaskandwhenFailureTaskto simplify mocking asynchronous operations in tests. - Implement specialized test functions: Added pattern-specific test functions (
testCubitGroup,testSideEffect,testPureStatefor MVI;testReducerfor TCA) to clearly define the purpose of each test case and enhance test expressiveness.
Refactor #
- Improve core architecture: Refactored the internal structure of
BlocArchMviandBlocArchTcato better align with the new testing framework and upcoming 2.0.0 release changes. - Enhance type safety: Applied more specific generic constraints to test suite classes to provide compile-time safety and prevent common type errors.
- Deprecate old APIs: Marked deprecated classes and methods with clear messages to guide users toward the new, improved APIs. This prepares for a breaking change in the next major release (2.0.0).
Chore #
- Update dependencies: Ensured compatibility with the latest versions of the
blocandfpdartpackages. - Add documentation: Improved documentation and code comments for all new classes and methods.
1.0.3 #
1.0.0 #
- Initial release.
- Added MVI and TCA BLoC implementations.
- Included comprehensive test suites.