Skip to content

Releases: gcanti/fp-ts

2.10.2

15 Apr 13:39
Compare
Choose a tag to compare
  • Bug Fix
    • Record
      • hasOwnProperty should be an alias of ReadonlyRecord.hasOwnProperty

2.10.1

15 Apr 09:21
Compare
Choose a tag to compare

2.10.0

14 Apr 07:47
Compare
Choose a tag to compare
  • Deprecations
    • deprecate pipeable module, use the specific helpers instead
    • deprecate ValidationT module, use EitherT instead
    • deprecate "mega instances", use small, specific instances instead
    • deprecate the old monad transformers, use the specific helpers instead
    • Applicative
      • deprecate getApplicativeComposition, use ap helper instead
    • Array
      • deprecate prependToAll, use prependAll instead
      • deprecate cons in favour of prepend
      • deprecate snoc in favour of append
      • deprecate empty
    • BooleanAlgebra
      • deprecate booleanAlgebraBoolean, use boolean.BooleanAlgebra instead
      • deprecate getFunctionBooleanAlgebra, use function.getBooleanAlgebra instead
      • deprecate getDualBooleanAlgebra, use reverse instead
    • Bounded
      • deprecate boundedNumber, use number.Bounded instead
    • Choice
      • deprecate splitChoice in favour of split
      • deprecate fanin in favour of fanIn
    • Compactable
      • deprecate getCompactableComposition, use compact, separate helpers instead
      • deprecate Separated, use Separated.Separated instead
    • Either
      • deprecate getApplySemigroup in favour of Apply.getApplySemigroup
      • deprecate getApplyMonoid in favour of Applicative.getApplicativeMonoid
      • deprecate getValidationSemigroup in favour of Apply.getApplySemigroup
      • deprecate getValidationMonoid in favour of Applicative.getApplicativeMonoid
      • deprecate getValidation, use getApplicativeValidation and getAltValidation instead
      • deprecate Json type, use the Json module instead
      • deprecate parseJSON type, use the Json module instead
      • deprecate stringifyJSON type, use the Json module instead
    • Eq
      • deprecate eqBoolean, use boolean.Eq instead
      • deprecate eqString, use string.Eq instead
      • deprecate eqNumber, use number.Eq instead
      • deprecate eqDate, use Date.Eq instead
      • deprecate getStructEq, use struct instead
      • deprecate getTupleEq, use tuple instead
    • Filterable
      • deprecate getFilterableComposition, use filter, filterMap, partition, partitionMap helpers instead
    • Foldable
      • deprecate toArray in favour of toReadonlyArray
      • deprecate getFoldableComposition, use reduce, foldMap, reduceRight helpers instead
    • FoldableWithIndex
      • deprecate getFoldableWithIndexComposition, use reduceWithIndex, foldMapWithIndex, reduceRightWithIndex helpers instead
    • Functor
      • deprecate getFunctorComposition, use map helper instead
    • FunctorWithIndex
      • deprecate getFunctorWithIndexComposition, use mapWithIndex helper instead
    • IO
      • deprecate getSemigroup in favour of Apply.getApplySemigroup
      • deprecate getMonoid in favour of Applicative.getApplicativeMonoid
      • deprecate fromIO
    • IOEither
      • deprecate getApplySemigroup in favour of Apply.getApplySemigroup
      • deprecate getApplyMonoid in favour of Applicative.getApplicativeMonoid
      • deprecate getSemigroup in favour of Apply.getApplySemigroup
      • deprecate getIOValidation, use getApplicativeIOValidation and getAltIOValidation instead
    • Map
      • deprecate insertAt in favour of upsertAt
      • deprecate empty
    • Monoid
      • deprecate monoidAll, use boolean.MonoidAll instead
      • deprecate monoidAny, use boolean.MonoidAny instead
      • deprecate getFunctionMonoid, use function.getMonoid instead
      • deprecate getEndomorphismMonoid, use function.getEndomorphismMonoid instead (Note. The execution order in
        function.getEndomorphismMonoid is reversed)
      • deprecate monoidString, use string.Monoid instead
      • deprecate monoidSum, use number.MonoidSum instead
      • deprecate monoidProduct, use number.MonoidProduct instead
      • deprecate fold, use concatAll instead
      • deprecate getMeetMonoid, use min instead
      • deprecate getJoinMonoid, use max instead
      • deprecate getDualMonoid, use reverse instead
      • deprecate getStructMonoid, use struct instead
      • deprecate getTupleMonoid, use tuple instead
    • NonEmptyArray
      • deprecate fold, use concatAll instead
      • deprecate prependToAll, use prependAll instead
      • deprecate cons in favour of prepend
      • deprecate snoc in favour of append
      • deprecate uncons in favour of unprepend
      • deprecate unsnoc in favour of unappend
      • deprecate filter in favour of Array's filter
      • deprecate filterWithIndex in favour of Array's filterWithIndex
    • Option
      • deprecate getApplySemigroup in favour of Apply.getApplySemigroup
      • deprecate getApplyMonoid in favour of Applicative.getApplicativeMonoid
    • Ord
      • deprecate ordBoolean, use boolean.Ord instead
      • deprecate ordString, use string.Ord instead
      • deprecate ordNumber, use number.Ord instead
      • deprecate ordDate, use Date.Ord instead
      • deprecate getDualOrd, use reverse instead
      • deprecate getTupleOrd, use tuple instead
    • Ordering
      • deprecate eqOrdering, use Eq instead
      • deprecate monoidOrdering, use Monoid instead
      • deprecate invert in favour of reverse
    • Ring
      • deprecate getFunctionRing, use function.getRing instead
    • Reader
      • deprecate getSemigroup in favour of Apply.getApplySemigroup
      • deprecate getMonoid in favour of Applicative.getApplicativeMonoid
    • ReaderEither
      • deprecate getApplySemigroup in favour of Apply.getApplySemigroup
      • deprecate getApplyMonoid in favour of Applicative.getApplicativeMonoid
      • deprecate getSemigroup in favour of Apply.getApplySemigroup
      • deprecate getReaderValidation, use getApplicativeReaderValidation and getAltReaderValidation instead
      • deprecate local, Use Reader's local instead
    • ReaderTask
      • deprecate getSemigroup in favour of Apply.getApplySemigroup
      • deprecate getMonoid in favour of Applicative.getApplicativeMonoid
      • deprecate run
      • deprecate local, Use Reader's local instead
    • ReaderTaskEither
      • deprecate getApplySemigroup in favour of Apply.getApplySemigroup
      • deprecate getApplyMonoid in favour of Applicative.getApplicativeMonoid
      • deprecate getSemigroup in favour of Apply.getApplySemigroup
      • deprecate getReaderTaskValidation, use getApplicativeReaderTaskValidation and getAltReaderTaskValidation instead
      • deprecate run
      • deprecate local, Use Reader's local instead
    • ReaderTaskEither
      • deprecate run
    • ReadonlyArray
      • deprecate prependToAll, use prependAll instead
      • deprecate cons in favour of prepend
      • deprecate snoc in favour of append
    • ReadonlyNonEmptyArray
      • deprecate fold, use concatAll instead
      • deprecate prependToAll, use prependAll instead
      • deprecate insertAt, Use ReadonlyArray's insertAt instead
      • deprecate cons in favour of prepend
      • deprecate snoc in favour of append
      • deprecate uncons in favour of unprepend
      • deprecate unsnoc in favour of unappend
      • deprecate filter in favour of ReadonlyArray's filter
      • deprecate filterWithIndex in favour of ReadonlyArray's filterWithIndex
    • ReadonlyMap
      • deprecate insertAt in favour of upsertAt
    • ReadonlyRecord
      • deprecate hasOwnProperty, use has instead
      • deprecate insertAt in favour of upsertAt
    • ReadonlySet
      • deprecate fromArray in favour of fromReadonlyArray
    • ReadonlyTuple
      • deprecate mapLeft in favour of mapSnd
      • deprecate map in favour of mapFst
    • Record
      • deprecate hasOwnProperty, use has instead
      • deprecate insertAt in favour of upsertAt
      • deprecate empty
    • Ring
      • deprecate getTupleRing, use tuple instead
    • Semigroup
      • deprecate semigroupAll, use boolean.SemigroupAll instead
      • deprecate semigroupAny, use boolean.SemigroupAny instead
      • deprecate getFunctionSemigroup, use function.getSemigroup instead
      • deprecate semigroupString, use string.Semigroup instead
      • deprecate semigroupSum, use number.SemigroupSum instead
      • deprecate semigroupProduct, use number.SemigroupProduct instead
      • deprecate fold, use concatAll instead
      • deprecate getIntercalateSemigroup, use intercalate instead
      • deprecate getMeetSemigroup, use min instead
      • deprecate getJoinSemigroup, use max instead
      • deprecate getDualSemigroup, use reverse instead
      • deprecate getStructSemigroup, use struct instead
      • deprecate getTupleSemigroup, use tuple instead
      • deprecate getFirstSemigroup, use first instead
      • deprecate getLastSemigroup, use last instead
      • deprecate getObjectSemigroup, use assign instead
    • Set
      • deprecate subset in favour of isSubset
    • Show
      • deprecate showBoolean, use boolean.Show instead
      • deprecate showString, use string.Show instead
      • deprecate showNumber, use number.Show instead
      • deprecate getStructShow, use struct instead
      • deprecate getTupleShow, use tuple instead
    • Strong
      • deprecate splitStrong in favour of split
      • deprecate fanout in favour of fanOut
    • Task
      • deprecate getSemigroup in favour of Apply.getApplySemigroup
      • deprecate getMonoid in favour of Applicative.getApplicativeMonoid
      • deprecate fromTask
    • TaskEither
      • deprecate getApplySemigroup in favour of Apply.getApplySemigroup
      • deprecate getApplyMonoid in favour of `Appl...
Read more

2.10.0-rc.8

02 Apr 14:17
Compare
Choose a tag to compare

To get started using the RC use npm with the following command:

npm install fp-ts@rc
  • Polish
    • the scope in bindTo, bind, bindW, apS, apSW is now correctly readonly
    • fix FromEither type parameter order

2.10.0-rc.7

28 Mar 18:11
Compare
Choose a tag to compare

To get started using the RC use npm with the following command:

npm install fp-ts@rc
  • Breaking Change (with respect to 2.10.0-rc)
    • rename module object to struct

2.10.0-rc.6

25 Mar 16:15
Compare
Choose a tag to compare

To get started using the RC use npm with the following command:

npm install fp-ts@rc
  • Bug Fix
    • ReadonlyNonEmptyArray
      • remove circular dependency on NonEmptyArray, closes #1443
  • Breaking Change (with respect to 2.10.0-rc)
    • EitherT
      • rename match to matchE and add match
    • IOEither
      • rename match / matchW to matchE / matchWE and add match / matchW
    • OptionT
      • rename match to matchE and add match
    • ReaderEither
      • rename match / matchW to matchE / matchWE and add match / matchW
    • ReaderTaskEither
      • rename match / matchW to matchE / matchWE and add match / matchW
    • TheseT
      • rename match to matchE and add match
    • TaskEither
      • rename match / matchW to matchE / matchWE and add match / matchW
    • TaskOption
      • rename match / matchW to matchE / matchWE and add match / matchW
    • TaskThese
      • rename match / matchW to matchE / matchWE and add match / matchW

2.10.0-rc.5

22 Mar 13:44
Compare
Choose a tag to compare

To get started using the RC use npm with the following command:

npm install fp-ts@rc
  • Bug Fix
    • TaskOption
      • fix getOrElseW signature
  • Breaking Change (with respect to 2.10.0-rc)
    • OptionT
      • rename none to zero and change signature
    • ReaderT
      • remove ask, asks (they will be derived from the FromReader type-class in 2.11)
    • Semigroup
      • move assign to object module and rename to getAssignSemigroup
    • ReaderT
      • remove get, put, modify, gets (they will be derived from the FromState type-class in 2.11)
  • Deprecation
    • Tuple
      • deprecate mapLeft in favour of mapSnd
      • deprecate map in favour of mapFst
    • ReadonlyTuple
      • deprecate mapLeft in favour of mapSnd
      • deprecate map in favour of mapFst
  • Polish
    • Array / ReadonlyArray
      • assert arrays as non-empty when using some, #1424 (@thewilkybarkid)
      • fix matchLeft, matchRight type parameter order
    • EitherT
      • add overloads for Kind2, Kind3, Kind4
    • OptionT
      • add overloads for Kind2, Kind3, Kind4
    • ReaderT
      • add overloads for Kind2, Kind3, Kind4
    • ReadonlyMap
      • sort keys in getShow
    • ReadonlySet
      • sort keys in getShow
    • StateT
      • add overloads for Kind2, Kind3
    • TheseT
      • add overloads for Kind2, Kind3, Kind4
  • Internal
    • add internal module

2.10.0-rc.4

08 Mar 13:53
Compare
Choose a tag to compare

To get started using the RC use npm with the following command:

npm install fp-ts@rc
  • Deprecations
    • Array
      • deprecate empty
    • Map
      • deprecate empty
    • NonEmptyArray
      • deprecate filter in favour of Array's filter
      • deprecate filterWithIndex in favour of Array's filterWithIndex
    • ReadonlyNonEmptyArray
      • deprecate filter in favour of ReadonlyArray's filter
      • deprecate filterWithIndex in favour of ReadonlyArray's filterWithIndex
    • Record
      • deprecate empty
  • Polish
    • NonEmptyArray
      • remove duplicated append, prepend, isNonEmpty
    • ReadonlyNonEmptyArray
      • remove duplicated append, prepend, isNonEmpty

2.10.0-rc.3

01 Mar 15:35
Compare
Choose a tag to compare
  • Deprecations
    • Array
      • deprecate cons in favour of prepend
      • deprecate snoc in favour of append
    • Ordering
      • deprecate invert in favour of reverse
    • ReadonlyMap
      • deprecate insertAt in favour of upsertAt
    • ReadonlyRecord
      • deprecate insertAt in favour of upsertAt
    • Map
      • deprecate insertAt in favour of upsertAt
    • NonEmptyArray
      • deprecate cons in favour of prepend
      • deprecate snoc in favour of append
      • deprecate uncons in favour of unprepend
      • deprecate unsnoc in favour of unappend
    • Record
      • deprecate insertAt in favour of upsertAt
    • ReadonlyArray
      • deprecate cons in favour of prepend
      • deprecate snoc in favour of append
    • ReadonlyNonEmptyArray
      • deprecate insertAt, Use ReadonlyArray's insertAt instead
      • deprecate cons in favour of prepend
      • deprecate snoc in favour of append
      • deprecate uncons in favour of unprepend
      • deprecate unsnoc in favour of unappend
    • ReadonlySet
      • deprecate fromArray in favour of fromReadonlyArray
    • Set
      • deprecate subset in favour of isSubset
  • New Feature
    • Array
      • add size
      • better unsafeInsertAt signature
      • better chunksOf signature
      • add getSemigroup
    • Map
      • add filterWithIndex combinator
      • add filterMapWithIndex combinator
      • add partitionWithIndex combinator
      • add partitionMapWithIndex combinator
      • add getTraversableWithIndex instance
      • add getFoldableWithIndex instance
    • NonEmptyArray
      • add isNonEmpty guard
      • add fromReadonlyNonEmptyArray constructor
      • add chainWithIndex combinator
      • add chop
      • add splitAt
      • add chunksOf
    • Ordering
      • add match
    • ReadonlyArray
      • add size
      • better unsafeInsertAt signature
      • better chunksOf signature, closes #1407
    • ReadonlyNonEmptyArray
      • add isNonEmpty
      • add chainWithIndex
      • add chop
      • add splitAt
      • add chunksOf
    • ReadonlySet
      • add isEmpty
      • add size
      • add toggle
    • Set
      • add isEmpty
      • add size
    • string
      • add empty
      • add isEmpty
      • add size
  • Bug Fix
    • ReadonlyRecord / Record: remove extends string constraints in singleton / insertAt, closes #1413

2.10.0-rc.2

17 Feb 13:32
Compare
Choose a tag to compare

To get started using the RC use npm with the following command:

npm install fp-ts@rc
  • Deprecations
    • Choice
      • deprecate splitChoice in favour of split
      • deprecate fanin in favour of fanIn
    • Strong
      • deprecate splitString in favour of split
      • deprecate fanout in favour of fanOut
  • New Feature
    • Reader
      • export first, second, left, right
    • ReaderTask
      • export Chain instance
      • export Monad instance
      • export MonadIO instance
      • export MonadTask instance
    • ReaderTaskEither
      • export Chain instance
      • export Monad instance
      • export MonadIO instance
      • export MonadTask instance
      • export MonadThrow instance
    • StateReaderTaskEither
      • export MonadIO instance
      • export MonadTask instance
      • export MonadThrow instance
    • Task
      • export Chain instance
      • export Monad instance
      • export MonadIO instance
      • export MonadTask instance
    • TaskEither
      • export Chain instance
      • export Monad instance
      • export MonadIO instance
      • export MonadTask instance
      • export MonadThrow instance
    • TaskOption
      • export Chain instance
      • export Monad instance
  • Polish
    • Compactable
      • split compact / separate constraints