pure_result 0.1.2
pure_result: ^0.1.2 copied to clipboard
A sealed Result<T, E> package for Dart and Flutter to model success and failure explicitly in app, package, and async domain error handling.
0.1.2 #
- Removed
TryResultOpsextension (tryMapSync,tryMap,tryRecoverSync,tryRecover) — these methods erased the error type toObject, undermining type safety. - Retained core exception capture helpers:
tryRunSync,tryRun,CaughtError. - Updated README with composable usage examples using
tryRunSync+flatMap.
0.1.1 #
- Improved public API documentation across
Result, async extensions, and try helpers. - Enabled
public_member_api_docslint to keep API docs coverage enforced. - Expanded package description in
pubspec.yamlfor clearer pub.dev metadata.
0.1.0 #
- Initial release of sealed
Result<T, E>. - Added
Success/Failurevariants and factory constructors. - Added core functional operators:
fold,map,flatMap,mapError,flatMapError,recover. - Added extraction helpers:
getOrThrow,getOrElse, nullable accessors. - Added exception capture helpers:
tryRun,tryRunSync,tryMap,tryMapSync,tryRecover,tryRecoverSync. - Added
AsyncResultOpsextension for chaining onFuture<Result<...>>:map,flatMap,mapError,flatMapError,recover. - Slimmed modules:
package:pure_result/pure_result.dartexports coreResult+try_*helpers, whilepackage:pure_result/async_result.dartremains an optional import forAsyncResultOps.