Packages

fp-ts

2.16.11 · 18 Aug 2025MIT6.2M / weekRepositorynpmAtom feed

Your version

2.14.0

20 Apr 2023Where it was published

2.16.11 is the newest release of 2.x.

In short

1 new2 changed

Release note

New Feature

  • Add flatMap to

    • Either

    • IOEither

    • Reader

    • ReaderEither

    • ReaderIO

    • ReaderTask

    • ReaderTaskEither

    • StateReaderTaskEither

    • TaskEither

    • NonEmptyArray

    • ReadonlyNonEmptyArray

    • Tree

    • Array

    • Identity

    • IO

    • IOOption

    • Option

    • ReadonlyArray

    • State

    • Task

    • TaskOption

the gist is:

  • You can replace chain / chainW with flatMap

  • You can call flatMap in 2 ways: pipe(ma, flatMap(f)) (data-last, aka pipeable) or flatMap(ma, f) (data-first)