Skip to content

Releases: iwburns/tupperware

Tupperware v2.0.0

08 Feb 05:00
9de2518
Compare
Choose a tag to compare

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 and forceUnwrap are functionally identical now that we no longer keep track of hasBeenInspected internally).
  • removed orElse (This function is no longer necessary. or now accepts either a fallback Optional or a function that returns a fallback Optional).

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 fallback Result or a function that returns a fallback Result).
  • added and (Behaves similarly to Optional's and method)

Tupperware v1.1.1

21 Jan 12:48
ba3c501
Compare
Choose a tag to compare

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

18 Aug 15:15
05bd79c
Compare
Choose a tag to compare

This release adds some convenience features and tweaks some internals which should make Optionals more usable. Results have not been modified in this release.

Change Log:

  • added a toArray method on Optional
  • unwrapOr now accepts either a default value or a function that returns a default value
  • [internal] Optional no longer has an internal hasBeenInspected flag. This was causing a few issues when using Optionals 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 to unwrapOr above).
  • forceUnwrap will be removed since it is no longer useful (because of the removal of the hasBeenInspected flag).