Skip to content

Releases: nlfiedler/oxidized

6.2.0

Choose a tag to compare

@nlfiedler nlfiedler released this 23 Jul 02:56

Changed

  • JonasWanke: allow nullable values in Some and Ok

6.1.0

Choose a tag to compare

@nlfiedler nlfiedler released this 23 Jul 02:56

Added

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

v6.0.0

Choose a tag to compare

@nlfiedler nlfiedler released this 22 Jun 00:55

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

Choose a tag to compare

@nlfiedler nlfiedler released this 14 Jan 06:10

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

Choose a tag to compare

@nlfiedler nlfiedler released this 03 May 16:02

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

Choose a tag to compare

@nlfiedler nlfiedler released this 20 Sep 15:35

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

Choose a tag to compare

@nlfiedler nlfiedler released this 20 Sep 15:34

Changed

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

5.0.0

Choose a tag to compare

@nlfiedler nlfiedler released this 20 Sep 15:33

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

Choose a tag to compare

@nlfiedler nlfiedler released this 01 May 21:41

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

Choose a tag to compare

@nlfiedler nlfiedler released this 10 Mar 16:56

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.