Fp Ts Versions Save

Functional programming in TypeScript

2.16.5

1 month ago

Polish

Resolved a RangeError where the maximum call stack size was exceeded when invoking chainWithIndex, #1931

2.16.0

11 months ago

2.15.0

1 year ago

New Feature

  • function
    • add LazyArg
  • add tap (dual) (aka chainFirst / chainFirstW) to:
    • Either
    • IO
    • IOEither
    • IOOption
    • Option
    • Reader
    • ReaderEither
    • ReaderIO
    • ReaderTask
    • ReaderTaskEither
    • State
    • StateReaderTaskEither
    • Task
    • TaskEither
    • TaskOption
  • add tapError (dual) (aka orElseFirst / orElseFirstW) to:
    • IOEither
    • ReaderEither
    • ReaderTaskEither
    • TaskEither
  • add flatMapNullable (dual) to:
    • Either
    • IOEither
    • ReaderEither
    • ReaderTaskEither
    • StateReaderTaskEither
    • TaskEither
  • add flatMapOption (dual) to:
    • Either
    • IOEither
    • ReaderEither
    • ReaderTaskEither
    • StateReaderTaskEither
    • TaskEither
  • add liftNullable to:
    • Either
    • IOEither
    • ReaderEither
    • ReaderTaskEither
    • StateReaderTaskEither
    • TaskEither
  • add liftOption to:
    • Either
    • IOEither
    • ReaderEither
    • ReaderTaskEither
    • StateReaderTaskEither
    • TaskEither
  • add flatMapEither (dual) to:
    • IOEither
    • ReaderEither
    • ReaderTaskEither
    • TaskEither
  • Array
    • add index to flatMap
  • NonEmptyArray
    • add index to flatMap
  • ReadonlyArray
    • add index to flatMap
  • ReadonlyNonEmptyArray
    • add index to flatMap

2.14.0

1 year ago

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)

2.13.2

1 year ago
  • add chainOptionKW, #1846 (@DenisFrezzato)

2.13.1

1 year ago
  • New Feature
    • new modules:
      • ReaderIO, #1738 (@sukovanej)
    • do notation:
      • add let helpers, #1725 (@Punie)
    • Alternative
      • add getAlternativeMonoid, #1717 (@willheslam)
    • function
      • flip is now curried, #1748 (@thewilkybarkid)
    • pipeable
      • add pipeable helpers, #1764 (@gcanti)
        • 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 (@thewilkybarkid)
    • ReaderTaskEither
      • add ReaderIO constructors/combinators, #1774 (@thewilkybarkid)
    • TaskEither
      • add chainTaskOptionKW, #1744 (@AmirabbasJ)
  • Polish
    • backport from v3 some handy defaults defined in natural transformations/combinators/constructors (@gcanti)
    • 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 (@waynevanson)
    • Either
      • remove useless type parameter in exists (@gcanti)
    • ReadonlyRecord
      • fix fromEntries return type, closes #1745 (@gcanti)
    • TaskEither
      • fix fromPredicate signature (@gcanti)
    • These
      • add missing fromPredicate (@gcanti)
      • remove useless type parameter in exists (@gcanti)
    • Traversable
      • add more overloadings to traverse / sequence helpers, #1758 (@gcanti)
    • Writer
      • getChain requires a Semigroup instead of a Monoid (@gcanti)
  • Deprecation
    • function
      • deprecate uncurried flip function, #1748 (@thewilkybarkid)

2.13.0

1 year ago

BROKEN RELEASE

  • Experimental
    • add exports field to package.json in order to support moduleResolution node12/nodenext, #1765 (@gcanti)

2.13.0-rc.6

1 year ago

How to install:

npm install fp-ts@rc
  • Bug Fix
    • package.json exports field: move ./* to the end, closes #1786 (@gcanti)
    • revert PR 1584 because is causing a regression (@gcanti)

2.13.0-rc.4

1 year ago

How to install:

npm install fp-ts@rc
  • Polish
    • backport from v3 some handy defaults defined in natural transformations, kleisli arrows helpers, of functions (@gcanti)
    • Either
      • remove useless type parameter in exists (@gcanti)
    • TaskEither
      • fix fromPredicate signature (@gcanti)
    • These
      • add missing fromPredicate (@gcanti)
      • remove useless type parameter in exists (@gcanti)

2.13.0-rc.3

1 year ago

How to install:

npm install fp-ts@rc
  • New Feature
    • ReaderTask
      • add ReaderIO constructors/combinators, #1773 (@thewilkybarkid)
    • ReaderTaskEither
      • add ReaderIO constructors/combinators, #1774 (@thewilkybarkid)
  • Polish
    • backport from v3 some handy defaults defined in natural transformations/combinators/constructors (@gcanti)