steady 1.2.0
steady: ^1.2.0 copied to clipboard
A Result type library for Dart inspired by Rust's Result<T, E>. Provides type-safe error handling with rich utility methods.
1.2.0 #
- Replace Freezed-generated
ResultandOptionmodels with handwritten sealed classes. - Remove the
freezed,freezed_annotation, andbuild_runnerdependencies along with generated*.freezed.dartfiles. - Preserve value equality and
hashCode, including deep collection equality behavior. - Fix generic variant equality to remain symmetric and consistent with
hashCode.
1.1.1 #
- Rewrite package documentation in English to satisfy pub.dev scoring checks.
- Escape angle brackets in the top-level library dartdoc to remove the analyzer info reported by pub.dev.
1.1.0 #
- Make
Result.expectrethrow the original exception with its original stack trace. - Clarify callback exception behavior in
Result.map,mapAsync,andThen,andThenAsync,orElse,orElseAsync,recover,recoverAsync,mapErr, andmapErrAsync. - Make
Option.expectthrowStateError. - Update documentation to reflect the new behavior.
- Add tests for exception wrapping and propagation.
1.0.1 #
- Change
foldto use named parameters.
1.0.0 #
- Initial release.
- Add
Result<T, E>for explicit success and failure handling. - Add
Option<T>for explicit optional values. - Include sync and async transformation helpers, chaining, recovery, and conversion APIs.
- Build on Freezed for immutable data types and pattern matching support.