maybe_just_nothing 0.5.3 maybe_just_nothing: ^0.5.3 copied to clipboard
Yet another variation of the good old Maybe monad with eager execution written in Dart.
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
0.5.3 - 2023-03-15 #
Changed #
- ifPresent() and ifNothing() return self
0.5.2 - 2023-03-15 #
Changed #
- Repackaged to hide internal interfaces
0.5.1 - 2023-03-15 #
Added #
- merge2() method
0.5.0 - 2023-03-04 #
Added #
- tryMap() method
Changed #
- BC-BREAKING. The generic type of
Maybe
is made unbounded.
Removed #
- BC-BREAKING.
Maybe
does not have a constructor anymore.
0.4.0 - 2021-03-14 #
Changed #
- This is a BC-breaking change to support null safety. Please refer to the tests and documentation.
ifPresent()
andifNothing()
were madevoid
.
0.3.1 - 2020-07-20 #
Fixed #
- README update
0.3.0 - 2020-07-20 #
Changed #
- Allow
map
to return a null. Hence, the BC-breaking change inJust.map
signature.
0.2.0 - 2020-07-11 #
Added #
- Method
fallback()
- Equality operator support
Changed #
- Method
chain()
now accepts a value instead of a function. The old method is available asfallback()
Removed #
- Method
filter()
0.1.9 - 2020-06-27 #
Changed #
- ifPresent() and ifNothing() return Maybe
0.1.8 - 2020-06-13 #
Added #
const
constructor toNothing
0.1.7 - 2020-06-13 #
Changed #
- Relaxed
cast()
type constraint
0.1.6 - 2020-06-13 #
Added #
chain()
method
0.1.5 - 2020-06-13 #
Fixed #
- "
Future
was not exported" in tests
0.1.4 - 2020-06-13 #
Changed #
Just
andNothing
return more narrow types in certain cases
0.1.3 - 2020-06-13 #
Fixed #
Future
was not exported
0.1.2 - 2020-06-13 #
Changed #
- relaxed min Dart version to 2.0.0
- minor readme fixes
0.1.1 - 2020-06-13 #
Added #
where
is an alias forfilter
0.1.0 - 2020-05-24 #
Added #
- New methods:
cast()
,orAsync()
,orGetAsync()
,flatMap()
,merge()