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

Releases: nvie/lemons.js

v1.7.0-beta2

01 Nov 22:08
Compare
Choose a tag to compare
v1.7.0-beta2 Pre-release
Pre-release
Bump to 1.7.0-beta2

v1.7.0-beta1

01 Nov 20:56
Compare
Choose a tag to compare
v1.7.0-beta1 Pre-release
Pre-release
  • Include ES modules in published NPM builds
  • Officially support Node 16.x
  • Drop support for Node 13.x (unstable)

v1.6.0

07 Jul 21:29
Compare
Choose a tag to compare
  • Add new LazyResult.mapSuccess() and LazyResult.mapFailure() methods

v1.5.0

24 Feb 08:43
Compare
Choose a tag to compare

v1.4.3

29 Oct 09:47
Compare
Choose a tag to compare
  • Fix bug introduced in v1.4.2 for TypeScript users trying to import from submodules, like 'lemons/Result'.

v1.4.2

23 Oct 07:34
Compare
Choose a tag to compare
  • Fix static methods type definitions (thanks @VPagani!)

  • Improved TypeScript setup

    • Added TypeScript linter (dtslint)
    • Reorganization of TypeScript declarations

v1.4.1

15 Aug 10:17
Compare
Choose a tag to compare
  • Add LazyResult.error() method, similar to LazyResult.value(), but for the error value. (Thanks, @Vages!)

v1.4.0

19 Jan 08:03
Compare
Choose a tag to compare
  • 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

v1.3.1

26 Sep 08:42
Compare
Choose a tag to compare
  • Add TypeScript support

v1.2.0

05 Jun 10:34
Compare
Choose a tag to compare
  • Drop support for Node 7