Skip to content

Releases: gcanti/fp-ts

1.6.1

29 May 10:31
Compare
Choose a tag to compare
  • Polish
    • Reader.local, ReaderTaskEither.local should be able to change the environment type (@gcanti)
    • add Reader.prototype.local, ReaderTaskEither.prototype.local (@gcanti)

1.6.0

24 May 11:06
Compare
Choose a tag to compare
  • New Feature
    • add NonEmptyArray.prototype.last (@raveclassic)
    • add IOEither module (@leemhenson)
    • add orElse method to Either, Identity, Option (@raveclassic)
    • add Alt instance to TaskEither (@gcanti)
    • add NonEmptyArray.prototype.sort (@raveclassic)
    • add TaskEither.fromIOEither (@gcanti)
    • add applyFirst method to IO, Task, IOEither, TaskEither (@gcanti)
    • move ReaderTaskEither from examples into src (@leemhenson)
    • add NonEmptyArray.prototype.reverse (@raveclassic)
    • add TaskEither.fromPredicate (@leemhenson)
    • add Tree module (@gcanti)
    • make Either.filterOrElseL more general (@gcanti)
    • add Either.refineOrElse, Either.refineOrElseL (@gcanti)
    • add Either.fromRefinement (@gcanti)
  • Bug Fix
    • handle undefined errors in callback of TaskEither.taskify (@dmechas)
    • fix overloading typings of TaskEither.taskify (@gcanti)
  • Internal
    • make Writer.prototype.map lazy (@gcanti)
  • Documentation
    • handle example and link tags (@gcanti)

1.5.0

14 May 14:29
Compare
Choose a tag to compare
  • New Feature
    • Allow the usage of a custom Semigroup for StrMap.getMonoid (@mlegenhausen)
    • add applySecond method to IO, Task, TaskEither, closes #418 (@gcanti)
    • add TaskEither.fromIO (@gcanti)
    • add Apply.sequenceT (@raveclassic)
    • add TaskEither.taskify, utility to convert callback-based node APIs, closes #422 (@gcanti)

1.4.1

07 May 09:06
Compare
Choose a tag to compare
  • Bug Fix
    • fix semigroup usage in Tuple.ap implementation (@gcanti)

1.4.0

02 May 07:56
Compare
Choose a tag to compare
  • New Feature
    • add getDictionarySemigroup, getObjectSemigroup to Semigroup (@raveclassic)
    • add getDictionaryMonoid to Monoid (@raveclassic)
    • add Setoid.setoidDate and Ord.ordDate (@mlegenhausen)
    • add StrMap#filter (@mlegenhausen)
    • add Apply.getSemigroup, Applicative.getMonoid (@gcanti)
    • add lattice typeclass hierarchy, closes #412 (@gcanti)
      • BooleanAlgebra
      • BoundedDistributiveLattice
      • BoundedJoinSemilattice
      • BoundedLattice
      • BoundedMeetSemilattice
      • DistributiveLattice
      • HeytingAlgebra
      • JoinSemilattice
      • MeetSemilattice
  • Internal
    • add more Travserable.sequence overloadings (@gcanti)
    • upgrade to typescript@2.8.3 (@gcanti)
    • use getObjectSemigroup in StrMap.concat (@gcanti)

1.3.0

18 Apr 12:23
Compare
Choose a tag to compare
  • New Feature
    • add Array.uniq (@alex-ketch)
    • add NonEmptyArray.prototype.min and NonEmptyArray.prototype.max (@raveclassic)
    • add refine method to Option, closes #396 (@wmaurer)
    • add Ord.getDualOrd (@gcanti)
    • add support for Monad2C and Monad3C to OptionT, closes #379 (@gcanti)
    • add TaskEither.fromLeft (@gcanti)
    • add listen, pass, listens, censor to Writer (@gcanti)
    • add Option.fromRefinement (@gcanti)
    • add Array.sortBy, Array.sortBy1 (@gcanti)
    • add Either.fromOptionL, closes #384 (@gcanti)
    • add Either.filterOrElse, Either.filterOrElseL, closes #382 (@gcanti)
  • Bug Fix
    • sort keys in StrMap.reduce (@gcanti)
  • Internal
    • added rimraf and updated npm scripts (@wmaurer)
    • upgrade to tslint@5.9.1, tslint-config-standard@7.0.0 (@gcanti)
    • add issue template (@gcanti)
  • Polish
    • optimize Semigroup.fold (@gcanti)

1.2.0

14 Mar 08:51
Compare
Choose a tag to compare
  • New Feature
  • Bug Fix
    • fix Alt instance of Validation (@sledorze)
    • fix EitherT.chain signature (@gcanti)
    • use Type* in EitherT1, EitherT2 (@gcanti)
    • use Type* in StateT1, StateT2 (@gcanti)
    • use Type* in ReaderT1, ReaderT2 (@gcanti)
    • Add readonly modifier to type classes properties (@gcanti)
  • Internal
    • make 'Set.difference' do less work (@sledorze)
    • remove unecessary closure creation in lefts, rights and mapOption (@sledorze)
    • remove unnecessary closures (mainly folds) (@sledorze)
    • remove closure creation of Option 'ap' function (@sledorze)
    • add URIS3 overloadings to StateT (@gcanti)
    • add URIS3 overloadings to ReaderT (@gcanti)
    • use definite assignement assertion for phantom fields (@gcanti)
    • upgrade to prettier@1.11.0 (@gcanti)

1.1.0

21 Feb 09:12
Compare
Choose a tag to compare
  • New Feature
    • add scanLeft, scanRight (@PaNaVTEC)
    • add an optional onerror argument to Either.tryCatch, fix #323 (@gcanti)
  • Bug Fix
    • Either.tryCatch now refines the error (@gcanti)
  • Docs
    • Option, alt method (@piq9117)
    • add laws for Setoid, Ord, Functor, Apply, Applicative, Chain, Monad, Alt, Alternative, Plus
      (@gcanti)
  • Internal
    • upgrade to typescript@2.7.2 (@gcanti)

1.0.1

14 Feb 11:00
Compare
Choose a tag to compare
  • Bug Fix
    • add phantom fields to curried type classes, fix #316 (@gcanti)
    • fix Unfoldable.replicateA signatures (@gcanti)
  • Internal
    • optimize Foldable.oneOf (@gcanti)
    • optimize Foldable.traverse_ (@gcanti)
    • optimize Foldable.sequence_ (@gcanti)
    • optimize Foldable.foldr (@gcanti)

1.0.0

12 Feb 14:43
Compare
Choose a tag to compare