v1.4.0 - Native ESM support π§π½ββοΈ, Vitest, and Utility Functions
What's Changed
- Feature: Better docs and utility functions by @seangwright in #12
- Feature: Native ES Module support & Vitest by @seangwright in #15
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