Skip to content

Releases: skrasekmichael/RailwayResult

v1.1.0

17 Apr 22:35
3a61972
Compare
Choose a tag to compare

Changes

  • added support for JSON serialization and deserialization (PR #22)

v1.0.4

16 Apr 08:39
76941d2
Compare
Choose a tag to compare

Changes

  • added abstract creation method FromError<TError>(TError error) where TError : Error for IResult (PR #20)
  • added abstract creation method FromValue(TValue value) for IResult<TValue> (PR #20)
  • changed Result<TValue> to calculate IsSuccess from _error is null (PR #20)

v1.0.3

15 Apr 17:17
43d9d3f
Compare
Choose a tag to compare

Changes

  • added benchmarks (PR #16)
  • added testing of propagating exceptions (PR #17)
  • added IResult and IResult<TValue> abstractions (PR #18)

v1.0.2

21 Mar 11:30
036ad09
Compare
Choose a tag to compare

Changes

  • removed implicit dependency from RailwayResult.FunctionalExtensions to RailwayResult.Errors (PR #8)
  • added missing .Then and .ThenAsync extension methods (PR #11)
  • added missing .Tap and .TapAsync extension methods (PR #12)
  • marked one .Tap extension methods as obsolete (PR #12)
  • added missing Match method on Result object (PR #13)

Obsolete method

[Obsolete("This methods seems useless, as Then methods should always unwrap returning result object.")]
Task<Result<TValue>> Tap<TValue>(this Task<Result<Result<TValue>>> resultTask, Action<TValue> func)

Tests

All methods (except obsolete ones) in RailwayResult and RailwayResult.FunctionalExtensions are covered by unit tests:

  • PR #8 .Ensure
  • PR #9 .EnsureNotNull
  • PR #10 .And and .AndAsync
  • PR #11 .Then and .ThenAsync
  • PR #12 .Tap and .TapAsync
  • PR #13 accessing Value/Error of result, .Match, .ToResult and .ToResultAsync

v1.0.1

16 Mar 22:09
Compare
Choose a tag to compare

Initial release

  • RailwayResult
  • RailwayResult.Errors
  • RailwayResult.FunctionalExtensions