Releases: iwburns/tupperware
Releases · iwburns/tupperware
Tupperware v2.0.0
This release cleans up the tupperware
API a bit by removing unnecessary functions and adding some that might be expected.
Change Log
Optional
- removed
unwrapOrElse
(This function is no longer necessary.unwrapOr
accepts either a default value or a function that returns the default). - removed
forceUnwrap
(This function is no longer necessary.unwrap
andforceUnwrap
are functionally identical now that we no longer keep track ofhasBeenInspected
internally). - removed
orElse
(This function is no longer necessary.or
now accepts either a fallbackOptional
or a function that returns a fallbackOptional
).
Result
- removed
unwrapOrElse
(This function is no longer necessary.unwrapOr
accepts either a default value or a function that returns the default). - removed
orElse
(This function is no longer necessary.or
now accepts either a fallbackResult
or a function that returns a fallbackResult
). - added
and
(Behaves similarly toOptional
'sand
method)
Tupperware v1.1.1
This release fixes a security vulnerability in a dev dependency. The changes were automated by dependabot.
Change Log:
handlebars
(dev dependency) version bumped from 4.1.2 to 4.5.3
Tupperware v1.1.0
This release adds some convenience features and tweaks some internals which should make Optional
s more usable. Result
s have not been modified in this release.
Change Log:
- added a
toArray
method onOptional
unwrapOr
now accepts either a default value or a function that returns a default value- [internal]
Optional
no longer has an internalhasBeenInspected
flag. This was causing a few issues when usingOptional
s in an "observable" context and wasn't providing enough benefit to justify keeping around.
Future Updates:
unwrapOrElse
will be removed since it is no longer useful (because of the changes tounwrapOr
above).forceUnwrap
will be removed since it is no longer useful (because of the removal of thehasBeenInspected
flag).