Socket
Socket
Sign inDemoInstall

lemons

Package Overview
Dependencies
0
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
2Next

1.7.0-beta2

Diff

nvie
published 1.7.0-beta1 •

Changelog

Source

v1.7.0-beta1

  • Include ES modules in published NPM builds
  • Officially support Node 16.x
  • Drop support for Node 13.x (unstable)
nvie
published 1.6.0 •

Changelog

Source

v1.6.0

  • Add new LazyResult.mapSuccess() and LazyResult.mapFailure() methods
nvie
published 1.5.0 •

Changelog

Source

v1.5.0

  • Add new Maybe.expect() and Result.expect() methods. (Thanks @LetTheComputerDecide!)
nvie
published 1.4.3 •

Changelog

Source

v1.4.3

  • Fix bug introduced in v1.4.2 for TypeScript users trying to import from submodules, like 'lemons/Result'.
nvie
published 1.4.2 •

Changelog

Source

v1.4.2

  • Fix static methods type definitions (thanks @VPagani!)

  • Improved TypeScript setup

    • Added TypeScript linter (dtslint)
    • Reorganization of TypeScript declarations
nvie
published 1.4.1 •

Changelog

Source

v1.4.1

  • Add LazyResult.error() method, similar to LazyResult.value(), but for the error value. (Thanks, @Vages!)
nvie
published 1.4.0 •

Changelog

Source

v1.4.0

  • 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
nvie
published 1.3.1 •

Changelog

Source

v1.3.1

  • Add TypeScript support
nvie
published 1.3.0 •

2Next
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc