Skip to content

Releases: hoc081098/dart_either

2.0.0 - Sep 01, 2024

01 Sep 10:09
Compare
Choose a tag to compare

https://pub.dev/packages/dart_either/versions/2.0.0

  • Require Dart 3.0.0 or higher >=3.0.0 <4.0.0.

  • Make Either a sealed class, EitherEffect a sealed class, and ControlError a final class.
    Now you can use exhaustive switch expressions on Either instances.

    final Either<String, int> either = Either.right(10);
    
    // Use the `when` method to handle
    either.when(
      ifLeft: (l) => print('Left: $l'),
      ifRight: (r) => print('Right: $r'),
    ); // Prints Right: Either.Right(10)
    
    // Or use Dart 3.0 switch expression syntax 🤘
    print(
      switch (either) {
        Left() => 'Left: $either',
        Right() => 'Right: $either',
      },
    ); // Prints Right: Either.Right(10)

What's Changed

  • chore(deps): update codecov/codecov-action action to v3.1.1 by @renovate in #11
  • chore(deps): update dart-lang/setup-dart action to v1.4 by @renovate in #12
  • chore(deps): update codecov/codecov-action action to v3.1.2 by @renovate in #13
  • chore(deps): update codecov/codecov-action action to v3.1.6 by @renovate in #14
  • fix(deps): update dependency http to v1 - autoclosed by @renovate in #15
  • chore(deps): update actions/checkout action to v4 by @renovate in #17
  • chore(deps): update codecov/codecov-action action to v4 by @renovate in #19
  • dart 3.0.0, switch expression, sealed class by @hoc081098 in #23

Full Changelog: 1.0.0...2.0.0

1.0.0 - Aug 23, 2022

23 Aug 16:40
Compare
Choose a tag to compare

1.0.0-beta06

23 Aug 15:29
Compare
Choose a tag to compare
1.0.0-beta06 Pre-release
Pre-release

1.0.0-beta05

23 Aug 13:41
Compare
Choose a tag to compare
1.0.0-beta05 Pre-release
Pre-release

1.0.0-beta04

21 Aug 15:02
Compare
Choose a tag to compare
1.0.0-beta04 Pre-release
Pre-release

What's Changed

Full Changelog: 1.0.0-beta03...1.0.0-beta04

1.0.0-beta03

17 Aug 09:54
Compare
Choose a tag to compare
1.0.0-beta03 Pre-release
Pre-release

TBD
Full Changelog: 1.0.0-beta02...1.0.0-beta03

1.0.0-beta02

16 Aug 13:38
Compare
Choose a tag to compare
1.0.0-beta02 Pre-release
Pre-release

TBD
Full Changelog: 1.0.0-beta01...1.0.0-beta02

1.0.0-beta01

15 Aug 08:24
Compare
Choose a tag to compare
1.0.0-beta01 Pre-release
Pre-release

TBD

Full Changelog: 0.0.1...1.0.0-beta01

0.0.1 - Apr 27, 2021

27 Apr 02:53
Compare
Choose a tag to compare
0.0.1 - Apr 27, 2021 Pre-release
Pre-release

0.0.1 - Apr 27, 2021

  • Initial version, created by Stagehand