smart_domain 0.4.0
smart_domain: ^0.4.0 copied to clipboard
Dependency-free Result, Failure, and UseCase primitives for Clean Architecture domain layers.
0.4.0 #
- Added the
GenerateUseCasesannotation and companionsmart_domain_generatorbuild runner package.
0.3.0 #
- Added
Result.success,Result.failure, andResult.unitfactories. - Added recovery, side-effect, and throwing helpers.
- Added
Future<Result<T, E>>mapping, flat-mapping, and folding extensions. - Allowed synchronous or asynchronous callbacks in async transformations.
- Added
Result.sequence,Result.traverse, andResult.partitioncollection helpers. - Added a complete multi-platform Flutter example application.
0.2.0 #
- Added
FutureUseCaseandNoParamsFutureUseCasefor operations that return plain future values. - Added
ValueStreamUseCaseandNoParamsValueStreamUseCasefor operations that return plain streams. - Kept nullable outputs generic: use
FutureUseCase<T?, P>orValueStreamUseCase<T?, P>without separate nullable abstractions. - Added
Result.guardStreamfor converting synchronous and asynchronous stream errors into typed results. - Added standard and custom-error stream use-case abstractions.
- Added no-parameter stream use-case helpers.
0.1.0 #
- Added generic
Result<T, E>with transformation, folding, extraction, and exception-guard helpers. - Added an extensible
Failurebase class and common technical failures. - Added
FailureMapper<E>for boundary-specific error conversion. - Added standard and custom-error use-case abstractions.
- Added no-parameter use-case helpers.