Skip to content

4.0.0

Compare
Choose a tag to compare
@phkiener phkiener released this 23 Dec 06:59
· 6 commits to master since this release
97eb59d

New features

  • New package Galaxus.Functional.NUnit to make writing assertions on Options and Results easier
    • Example: Assert.That(myOption, Is.Some.WithValue.EqualTo(1)) or Assert.That(myResult, Is.Err)

Breaking changes

  • Renamed AttemptToUnwrapNoneWhenOptionContainedSomeException to TriedToUnwrapNoneException
  • Renamed AttemptToUnwrapErrWhenResultWasOkException to TriedToUnwrapErrException
  • Removed Option.UnwrapOrDefault and Result.UnwrapOrDefault (plus their async variants)
    • For Option, you can use ToNullable instead!
  • All the SomethingAsync-methods (like e.g. MatchAsync) are now consistently implemented as extension methods
    • If you're relying on automatic type conversion, you probably have to specify the type parameters explicitly for these cases now