Skip to content
This repository has been archived by the owner on Mar 1, 2022. It is now read-only.

v1.4.0

Compare
Choose a tag to compare
@nvie nvie released this 19 Jan 08:03
  • Breaking changes:

    • Removed Result.toMaybe() - this method wasn’t commonly used, but pulled
      in Maybe into compiled bundles, increasing its size.
  • New features:

    • You can now directly import submodules of this package, for example:

      // Previously
      import { Result, Ok, Err } from 'lemons';
      
      // Now possible
      import Result, { Ok, Err } from 'lemons/Result';
      //                               ^^^^^^^^^^^^^
      

      Note that, when importing from the specific modules directly, you'll need to
      make the main class (in this case Result) a default import instead of
      a named import.

  • Misc:

    • New build process
    • Cleaner/smaller package output