Skip to content

Releases: nlfiedler/oxidized

6.2.0

23 Jul 02:56
Compare
Choose a tag to compare

Changed

  • JonasWanke: allow nullable values in Some and Ok

6.1.0

23 Jul 02:56
Compare
Choose a tag to compare

Added

  • amaxcz: add matchOk(), matchErr(), and unwrapOrNull() functions to Result
  • amaxcs: unwrap() function now contains the original error message

v6.0.0

22 Jun 00:55
Compare
Choose a tag to compare

Changed

  • Now requires Dart SDK version 3 or higher.
  • BREAKING CHANGE: Both Option and Result are now sealed classes
    which allows for the use of exhaustive pattern matching.
  • feelsantiago: introduced the sealed class change to Option and Result.

5.3.0

14 Jan 06:10
Compare
Choose a tag to compare

Fixed

  • stumblinbear: Fix possible invalid casting in catch block.

Changed

  • kranfix: Replaced pedantic (deprecated) by very_goog_analysis.
  • kranfix: Refactored Option into many mixins.
  • kranfix: Better implementation for Option async methods.
  • kranfix: Ok.unit and Err.unit static methods

5.2.0

03 May 16:02
Compare
Choose a tag to compare

Added

  • rlch: Added async methods to Option<T> and Result<T, E>.
  • rlch: Added missing type arguments to Option<T> and Result<T, E>.
  • rlch: Added code coverage for async methods.
  • rlch: Added OptionFutureRedirector util to redirect methods called on Future<Option<T>>.
  • rlch: Added ResultFutureRedirector util to redirect methods called on Future<Result<T, E>>.

5.1.0

20 Sep 15:35
Compare
Choose a tag to compare

Added

  • kranfix: Option<Result<T, E>>.transpose() returns a Result<Option<T>, E>.
  • kranfix: Option<Option<T>>.flatten() returns an Option<T>.
  • kranfix: Result<Option<T>, E>.transpose() returns an Option<Result<T, E>>.
  • kranfix: Result<Result<T, E>, E>.flatten() returns a Result<T, E>.

5.0.1

20 Sep 15:34
Compare
Choose a tag to compare

Changed

  • kranfix: Fixed equality operator for Option and Result.
  • kranfix: Added more code coverage in unit tests.

5.0.0

20 Sep 15:33
Compare
Choose a tag to compare

Changed

  • BREAKING CHANGE: can no longer pass null to Result. The rectifies the inconsistent handling of null values with regards to Option and Result.
  • kranfix: refactored Option<T extends Object> to fix Result<int?, Exception>.ok(null).ok()
  • kranfix: refactored Result<T extends Object, E extends Object> to fix Result<int?, Exception>.ok(null)

v4.2.0

01 May 21:41
Compare
Choose a tag to compare

Added

  • lemunozm: added isSome(), isNone() to Option.
  • lemunozm: added isOk(), isErr() to Result.
  • lemunozm: added Option.from() and Option.toNullable() to make easy conversions with nullable values.
  • Added a Unit type that is similar to Rust's () type.

4.1.0

10 Mar 16:56
Compare
Choose a tag to compare

Changed

  • lemunozm: return values added to match(), when() in Result, Option.
  • BREAKING CHANGE: migrated to null safety and Dart SDK 2.12.

Notes

Forgot to push 4.0 to GitHub, but those commits are now ahead of the changes made more recently for 4.1, so as a result there is no 4.0 release on GitHub.