Releases: hoc081098/dart_either
Releases · hoc081098/dart_either
2.0.0 - Sep 01, 2024
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, andControlError
a final class.
Now you can use exhaustive switch expressions onEither
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
https://pub.dev/packages/dart_either/versions/1.0.0
- This is our first stable release.
Full Changelog: 0.0.1...1.0.0
1.0.0-beta06
Full Changelog: 1.0.0-beta05...1.0.0-beta06
1.0.0-beta05
Full Changelog: 1.0.0-beta04...1.0.0-beta05
1.0.0-beta04
1.0.0-beta03
TBD
Full Changelog: 1.0.0-beta02...1.0.0-beta03
1.0.0-beta02
TBD
Full Changelog: 1.0.0-beta01...1.0.0-beta02
1.0.0-beta01
TBD
Full Changelog: 0.0.1...1.0.0-beta01
0.0.1 - Apr 27, 2021
0.0.1 - Apr 27, 2021
- Initial version, created by Stagehand