Skip to content

v1.4.0 - Native ESM support πŸ§˜πŸ½β€β™€οΈ, Vitest, and Utility Functions

Compare
Choose a tag to compare
@seangwright seangwright released this 28 Sep 02:52
· 33 commits to main since this release

What's Changed

You can now use typescript-functional-extensions directly from Unpkg as mentioned in the README

Docs have been updated in the README to include the full list of module exports, the size of these modules, and better examples of how the monads in the library might be used.

Work has also begun on more detailed docs for each monad that complement the library's unit tests.

All unit tests have been migrated from Jest to Vitest for faster test runs and a much simpler test configuration when using ESM.

A few new utilities have been added to the library as pure functions instead of methods on the monads so that bundlers can more easily tree-shake them away if they are unused.

import {
  noop,
  zeroAsNone,
  emptyStringAsNone,
  emptyOrWhiteSpaceStringAsNone,
} from 'typescript-functional-extensions';

A few methods missing from MaybeAsync have been added:

  • getValueOrDefault
  • getValueOrThrow

Full Changelog: v1.3.0...v1.4.0