Packages

fp-ts

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

Your version

2.13.1

17 Oct 2022Where it was published

2.16.11 is the newest release of 2.x.

In short

1 deprecated9 new2 fixed10 changed

  • deprecated

    flip is now curried, #1748

Release note

  • New Feature

    • new modules:

    • do notation:

    • Alternative

      • add getAlternativeMonoid, #1717

    • function

      • flip is now curried, #1748

    • pipeable

      • add pipeable helpers, #1764

        • alt

        • ap

        • bimap

        • chain

        • compose

        • contramap

        • extend

        • filter

        • filterMap

        • filterMapWithIndex

        • filterWithIndex

        • foldMap

        • foldMapWithIndex

        • map

        • mapLeft

        • mapWithIndex

        • partition

        • partitionMap

        • partitionMapWithIndex

        • partitionWithIndex

        • promap

        • reduce

        • reduceRight

        • reduceRightWithIndex

        • reduceWithIndex

    • ReaderTask

      • add ReaderIO constructors/combinators, #1773

    • ReaderTaskEither

      • add ReaderIO constructors/combinators, #1774

    • TaskEither

      • add chainTaskOptionKW, #1744

  • Polish

    • backport from v3 some handy defaults defined in natural transformations/combinators/constructors

    • fix wrong type parameter order:

      • FromIO

        • chainIOK

      • FromTask

        • chainTaskK

        • chainFirstTaskK

      • Whiterable

        • FilterE1

      • TheseT

        • both

      • Either

        • apFirstW

        • apSecondW

      • IOEither

        • apFirstW

        • apSecondW

      • Reader

        • apFirstW

        • apSecondW

      • ReaderEither

        • apFirstW

        • apSecondW

      • ReaderTaskEither

        • apFirstW

        • apSecondW

      • StateReaderTaskEither

        • apFirstW

        • apSecondW

      • TaskEither

        • apFirstW

        • apSecondW

    • Apply

      • add ap overloadings, #1721

    • Either

      • remove useless type parameter in exists

    • ReadonlyRecord

      • fix fromEntries return type, closes #1745

    • TaskEither

      • fix fromPredicate signature

    • These

      • add missing fromPredicate

      • remove useless type parameter in exists

    • Traversable

      • add more overloadings to traverse / sequence helpers, #1758

    • Writer

      • getChain requires a Semigroup instead of a Monoid

  • Deprecation

    • function

      • deprecate uncurried flip function, #1748