Skip to content

v1.1.2502.2422

Latest
Compare
Choose a tag to compare
@ZeidLab ZeidLab released this 25 Feb 09:17

Full Changelog: v1.1.2502.2013...v1.1.2502.2422

Breaking Changes ⚠️

Deprecated Methods

  • Tap() method for Maybe<TIn> has been deprecated in favor of TapIfSome()/TapIfNone().
  • Map() method for Maybe<TIn> has been deprecated in favor of Match(), consistent with the Match method for Result<TIn>.

New Features ✨

This release introduces extensive support for async workflows and method chaining for both Maybe<TIn> and Result<TIn>.

  • Bind/BindAsync Methods for Maybe<TIn>:

    • Support for mixed synchronous/asynchronous handler workflows.
    • Fluent composition with both void and return-type handlers.
    • Support for method chaining.
  • Match/MatchAsync Methods for Maybe<TIn>:

    • State-aware pattern matching capabilities.
    • Async-compatible result projections.
  • TapIfSome/TapIfNone Methods for Maybe<TIn>:

    • Added async side effects support with TapIfSomeAsync/TapIfNoneAsync.
  • Ensure/EnsureAsync Methods for Result<TIn>:

    • Support for Try<TIn> and TryAsync<TIn>.
    • Chainable Try<TIn> and TryAsync<TIn> with Result<TIn>.
  • Bind/BindAsync Methods for Result<TIn>:

    • Support for mixed synchronous/asynchronous handler workflows.
    • Chainable Try<TIn> and TryAsync<TIn> with Result<TIn> and Task<Result<TIn>>.
    • Fluent composition with both void and return-type handlers.
  • Match/MatchAsync Methods for Result<TIn>:

    • Chainable Try<TIn> and TryAsync<TIn> with Result<TIn> and Task<Result<TIn>>.
    • State-aware pattern matching capabilities.
    • Async-compatible result projections.
  • Added support for Bind/BindAsync methods for Try<TIn> to enable:

    • Seamless integration with Result<TIn> and Maybe<TIn> types
    • Enhanced error handling and propagation

Improvements 📈

Documentation Updates

  • Added complete usage examples for core API surface
  • Expanded conceptual explanations for:
    • Error handling strategies
    • Async/Await best practices
    • Composition patterns with Bind and Match
  • Included troubleshooting guide for common scenarios
  • Improved API reference documentation with XML doc enhancements

Fixes 🛠️

  • Resolved a bug in MatchAsync methods that caused incorrect result projections under specific conditions.
  • Corrected documentation inconsistencies and improved XML comments for better IntelliSense support.