maybe_just_nothing 0.4.0-nullsafety maybe_just_nothing: ^0.4.0-nullsafety 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.
Unreleased #
Changed #
- Prepared for null safety
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()