Releases: gcanti/fp-ts
Releases · gcanti/fp-ts
2.10.3
2.10.2
2.10.1
2.10.0
- Deprecations
- deprecate
pipeable
module, use the specific helpers instead - deprecate
ValidationT
module, useEitherT
instead - deprecate "mega instances", use small, specific instances instead
- deprecate the old monad transformers, use the specific helpers instead
Applicative
- deprecate
getApplicativeComposition
, useap
helper instead
- deprecate
Array
- deprecate
prependToAll
, useprependAll
instead - deprecate
cons
in favour ofprepend
- deprecate
snoc
in favour ofappend
- deprecate
empty
- deprecate
BooleanAlgebra
- deprecate
booleanAlgebraBoolean
, useboolean.BooleanAlgebra
instead - deprecate
getFunctionBooleanAlgebra
, usefunction.getBooleanAlgebra
instead - deprecate
getDualBooleanAlgebra
, usereverse
instead
- deprecate
Bounded
- deprecate
boundedNumber
, usenumber.Bounded
instead
- deprecate
Choice
- deprecate
splitChoice
in favour ofsplit
- deprecate
fanin
in favour offanIn
- deprecate
Compactable
- deprecate
getCompactableComposition
, usecompact
,separate
helpers instead - deprecate
Separated
, useSeparated.Separated
instead
- deprecate
Either
- deprecate
getApplySemigroup
in favour ofApply.getApplySemigroup
- deprecate
getApplyMonoid
in favour ofApplicative.getApplicativeMonoid
- deprecate
getValidationSemigroup
in favour ofApply.getApplySemigroup
- deprecate
getValidationMonoid
in favour ofApplicative.getApplicativeMonoid
- deprecate
getValidation
, usegetApplicativeValidation
andgetAltValidation
instead - deprecate
Json
type, use theJson
module instead - deprecate
parseJSON
type, use theJson
module instead - deprecate
stringifyJSON
type, use theJson
module instead
- deprecate
Eq
- deprecate
eqBoolean
, useboolean.Eq
instead - deprecate
eqString
, usestring.Eq
instead - deprecate
eqNumber
, usenumber.Eq
instead - deprecate
eqDate
, useDate.Eq
instead - deprecate
getStructEq
, usestruct
instead - deprecate
getTupleEq
, usetuple
instead
- deprecate
Filterable
- deprecate
getFilterableComposition
, usefilter
,filterMap
,partition
,partitionMap
helpers instead
- deprecate
Foldable
- deprecate
toArray
in favour oftoReadonlyArray
- deprecate
getFoldableComposition
, usereduce
,foldMap
,reduceRight
helpers instead
- deprecate
FoldableWithIndex
- deprecate
getFoldableWithIndexComposition
, usereduceWithIndex
,foldMapWithIndex
,reduceRightWithIndex
helpers instead
- deprecate
Functor
- deprecate
getFunctorComposition
, usemap
helper instead
- deprecate
FunctorWithIndex
- deprecate
getFunctorWithIndexComposition
, usemapWithIndex
helper instead
- deprecate
IO
- deprecate
getSemigroup
in favour ofApply.getApplySemigroup
- deprecate
getMonoid
in favour ofApplicative.getApplicativeMonoid
- deprecate
fromIO
- deprecate
IOEither
- deprecate
getApplySemigroup
in favour ofApply.getApplySemigroup
- deprecate
getApplyMonoid
in favour ofApplicative.getApplicativeMonoid
- deprecate
getSemigroup
in favour ofApply.getApplySemigroup
- deprecate
getIOValidation
, usegetApplicativeIOValidation
andgetAltIOValidation
instead
- deprecate
Map
- deprecate
insertAt
in favour ofupsertAt
- deprecate
empty
- deprecate
Monoid
- deprecate
monoidAll
, useboolean.MonoidAll
instead - deprecate
monoidAny
, useboolean.MonoidAny
instead - deprecate
getFunctionMonoid
, usefunction.getMonoid
instead - deprecate
getEndomorphismMonoid
, usefunction.getEndomorphismMonoid
instead (Note. The execution order in
function.getEndomorphismMonoid
is reversed) - deprecate
monoidString
, usestring.Monoid
instead - deprecate
monoidSum
, usenumber.MonoidSum
instead - deprecate
monoidProduct
, usenumber.MonoidProduct
instead - deprecate
fold
, useconcatAll
instead - deprecate
getMeetMonoid
, usemin
instead - deprecate
getJoinMonoid
, usemax
instead - deprecate
getDualMonoid
, usereverse
instead - deprecate
getStructMonoid
, usestruct
instead - deprecate
getTupleMonoid
, usetuple
instead
- deprecate
NonEmptyArray
- deprecate
fold
, useconcatAll
instead - deprecate
prependToAll
, useprependAll
instead - deprecate
cons
in favour ofprepend
- deprecate
snoc
in favour ofappend
- deprecate
uncons
in favour ofunprepend
- deprecate
unsnoc
in favour ofunappend
- deprecate
filter
in favour ofArray
'sfilter
- deprecate
filterWithIndex
in favour ofArray
'sfilterWithIndex
- deprecate
Option
- deprecate
getApplySemigroup
in favour ofApply.getApplySemigroup
- deprecate
getApplyMonoid
in favour ofApplicative.getApplicativeMonoid
- deprecate
Ord
- deprecate
ordBoolean
, useboolean.Ord
instead - deprecate
ordString
, usestring.Ord
instead - deprecate
ordNumber
, usenumber.Ord
instead - deprecate
ordDate
, useDate.Ord
instead - deprecate
getDualOrd
, usereverse
instead - deprecate
getTupleOrd
, usetuple
instead
- deprecate
Ordering
- deprecate
eqOrdering
, useEq
instead - deprecate
monoidOrdering
, useMonoid
instead - deprecate
invert
in favour ofreverse
- deprecate
Ring
- deprecate
getFunctionRing
, usefunction.getRing
instead
- deprecate
Reader
- deprecate
getSemigroup
in favour ofApply.getApplySemigroup
- deprecate
getMonoid
in favour ofApplicative.getApplicativeMonoid
- deprecate
ReaderEither
- deprecate
getApplySemigroup
in favour ofApply.getApplySemigroup
- deprecate
getApplyMonoid
in favour ofApplicative.getApplicativeMonoid
- deprecate
getSemigroup
in favour ofApply.getApplySemigroup
- deprecate
getReaderValidation
, usegetApplicativeReaderValidation
andgetAltReaderValidation
instead - deprecate
local
, UseReader
'slocal
instead
- deprecate
ReaderTask
- deprecate
getSemigroup
in favour ofApply.getApplySemigroup
- deprecate
getMonoid
in favour ofApplicative.getApplicativeMonoid
- deprecate
run
- deprecate
local
, UseReader
'slocal
instead
- deprecate
ReaderTaskEither
- deprecate
getApplySemigroup
in favour ofApply.getApplySemigroup
- deprecate
getApplyMonoid
in favour ofApplicative.getApplicativeMonoid
- deprecate
getSemigroup
in favour ofApply.getApplySemigroup
- deprecate
getReaderTaskValidation
, usegetApplicativeReaderTaskValidation
andgetAltReaderTaskValidation
instead - deprecate
run
- deprecate
local
, UseReader
'slocal
instead
- deprecate
ReaderTaskEither
- deprecate
run
- deprecate
ReadonlyArray
- deprecate
prependToAll
, useprependAll
instead - deprecate
cons
in favour ofprepend
- deprecate
snoc
in favour ofappend
- deprecate
ReadonlyNonEmptyArray
- deprecate
fold
, useconcatAll
instead - deprecate
prependToAll
, useprependAll
instead - deprecate
insertAt
, UseReadonlyArray
'sinsertAt
instead - deprecate
cons
in favour ofprepend
- deprecate
snoc
in favour ofappend
- deprecate
uncons
in favour ofunprepend
- deprecate
unsnoc
in favour ofunappend
- deprecate
filter
in favour ofReadonlyArray
'sfilter
- deprecate
filterWithIndex
in favour ofReadonlyArray
'sfilterWithIndex
- deprecate
ReadonlyMap
- deprecate
insertAt
in favour ofupsertAt
- deprecate
ReadonlyRecord
- deprecate
hasOwnProperty
, usehas
instead - deprecate
insertAt
in favour ofupsertAt
- deprecate
ReadonlySet
- deprecate
fromArray
in favour offromReadonlyArray
- deprecate
ReadonlyTuple
- deprecate
mapLeft
in favour ofmapSnd
- deprecate
map
in favour ofmapFst
- deprecate
Record
- deprecate
hasOwnProperty
, usehas
instead - deprecate
insertAt
in favour ofupsertAt
- deprecate
empty
- deprecate
Ring
- deprecate
getTupleRing
, usetuple
instead
- deprecate
Semigroup
- deprecate
semigroupAll
, useboolean.SemigroupAll
instead - deprecate
semigroupAny
, useboolean.SemigroupAny
instead - deprecate
getFunctionSemigroup
, usefunction.getSemigroup
instead - deprecate
semigroupString
, usestring.Semigroup
instead - deprecate
semigroupSum
, usenumber.SemigroupSum
instead - deprecate
semigroupProduct
, usenumber.SemigroupProduct
instead - deprecate
fold
, useconcatAll
instead - deprecate
getIntercalateSemigroup
, useintercalate
instead - deprecate
getMeetSemigroup
, usemin
instead - deprecate
getJoinSemigroup
, usemax
instead - deprecate
getDualSemigroup
, usereverse
instead - deprecate
getStructSemigroup
, usestruct
instead - deprecate
getTupleSemigroup
, usetuple
instead - deprecate
getFirstSemigroup
, usefirst
instead - deprecate
getLastSemigroup
, uselast
instead - deprecate
getObjectSemigroup
, useassign
instead
- deprecate
Set
- deprecate
subset
in favour ofisSubset
- deprecate
Show
- deprecate
showBoolean
, useboolean.Show
instead - deprecate
showString
, usestring.Show
instead - deprecate
showNumber
, usenumber.Show
instead - deprecate
getStructShow
, usestruct
instead - deprecate
getTupleShow
, usetuple
instead
- deprecate
Strong
- deprecate
splitStrong
in favour ofsplit
- deprecate
fanout
in favour offanOut
- deprecate
Task
- deprecate
getSemigroup
in favour ofApply.getApplySemigroup
- deprecate
getMonoid
in favour ofApplicative.getApplicativeMonoid
- deprecate
fromTask
- deprecate
TaskEither
- deprecate
getApplySemigroup
in favour ofApply.getApplySemigroup
- deprecate
getApplyMonoid
in favour of `Appl...
- deprecate
- deprecate
2.10.0-rc.8
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 correctlyreadonly
- fix
FromEither
type parameter order
- the scope in
2.10.0-rc.7
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
tostruct
- rename module
2.10.0-rc.6
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
- remove circular dependency on
- Breaking Change (with respect to
2.10.0-rc
)EitherT
- rename
match
tomatchE
and addmatch
- rename
IOEither
- rename
match
/matchW
tomatchE
/matchWE
and addmatch
/matchW
- rename
OptionT
- rename
match
tomatchE
and addmatch
- rename
ReaderEither
- rename
match
/matchW
tomatchE
/matchWE
and addmatch
/matchW
- rename
ReaderTaskEither
- rename
match
/matchW
tomatchE
/matchWE
and addmatch
/matchW
- rename
TheseT
- rename
match
tomatchE
and addmatch
- rename
TaskEither
- rename
match
/matchW
tomatchE
/matchWE
and addmatch
/matchW
- rename
TaskOption
- rename
match
/matchW
tomatchE
/matchWE
and addmatch
/matchW
- rename
TaskThese
- rename
match
/matchW
tomatchE
/matchWE
and addmatch
/matchW
- rename
2.10.0-rc.5
To get started using the RC use npm with the following command:
npm install fp-ts@rc
- Bug Fix
TaskOption
- fix
getOrElseW
signature
- fix
- Breaking Change (with respect to
2.10.0-rc
)OptionT
- rename
none
tozero
and change signature
- rename
ReaderT
- remove
ask
,asks
(they will be derived from theFromReader
type-class in2.11
)
- remove
Semigroup
- move
assign
toobject
module and rename togetAssignSemigroup
- move
ReaderT
- remove
get
,put
,modify
,gets
(they will be derived from theFromState
type-class in2.11
)
- remove
- Deprecation
Tuple
- deprecate
mapLeft
in favour ofmapSnd
- deprecate
map
in favour ofmapFst
- deprecate
ReadonlyTuple
- deprecate
mapLeft
in favour ofmapSnd
- deprecate
map
in favour ofmapFst
- deprecate
- Polish
Array
/ReadonlyArray
- assert arrays as non-empty when using
some
, #1424 (@thewilkybarkid) - fix
matchLeft
,matchRight
type parameter order
- assert arrays as non-empty when using
EitherT
- add overloads for
Kind2
,Kind3
,Kind4
- add overloads for
OptionT
- add overloads for
Kind2
,Kind3
,Kind4
- add overloads for
ReaderT
- add overloads for
Kind2
,Kind3
,Kind4
- add overloads for
ReadonlyMap
- sort keys in
getShow
- sort keys in
ReadonlySet
- sort keys in
getShow
- sort keys in
StateT
- add overloads for
Kind2
,Kind3
- add overloads for
TheseT
- add overloads for
Kind2
,Kind3
,Kind4
- add overloads for
- Internal
- add
internal
module
- add
2.10.0-rc.4
To get started using the RC use npm with the following command:
npm install fp-ts@rc
- Deprecations
Array
- deprecate
empty
- deprecate
Map
- deprecate
empty
- deprecate
NonEmptyArray
- deprecate
filter
in favour ofArray
'sfilter
- deprecate
filterWithIndex
in favour ofArray
'sfilterWithIndex
- deprecate
ReadonlyNonEmptyArray
- deprecate
filter
in favour ofReadonlyArray
'sfilter
- deprecate
filterWithIndex
in favour ofReadonlyArray
'sfilterWithIndex
- deprecate
Record
- deprecate
empty
- deprecate
- Polish
NonEmptyArray
- remove duplicated
append
,prepend
,isNonEmpty
- remove duplicated
ReadonlyNonEmptyArray
- remove duplicated
append
,prepend
,isNonEmpty
- remove duplicated
2.10.0-rc.3
- Deprecations
Array
- deprecate
cons
in favour ofprepend
- deprecate
snoc
in favour ofappend
- deprecate
Ordering
- deprecate
invert
in favour ofreverse
- deprecate
ReadonlyMap
- deprecate
insertAt
in favour ofupsertAt
- deprecate
ReadonlyRecord
- deprecate
insertAt
in favour ofupsertAt
- deprecate
Map
- deprecate
insertAt
in favour ofupsertAt
- deprecate
NonEmptyArray
- deprecate
cons
in favour ofprepend
- deprecate
snoc
in favour ofappend
- deprecate
uncons
in favour ofunprepend
- deprecate
unsnoc
in favour ofunappend
- deprecate
Record
- deprecate
insertAt
in favour ofupsertAt
- deprecate
ReadonlyArray
- deprecate
cons
in favour ofprepend
- deprecate
snoc
in favour ofappend
- deprecate
ReadonlyNonEmptyArray
- deprecate
insertAt
, UseReadonlyArray
'sinsertAt
instead - deprecate
cons
in favour ofprepend
- deprecate
snoc
in favour ofappend
- deprecate
uncons
in favour ofunprepend
- deprecate
unsnoc
in favour ofunappend
- deprecate
ReadonlySet
- deprecate
fromArray
in favour offromReadonlyArray
- deprecate
Set
- deprecate
subset
in favour ofisSubset
- deprecate
- New Feature
Array
- add
size
- better
unsafeInsertAt
signature - better
chunksOf
signature - add
getSemigroup
- add
Map
- add
filterWithIndex
combinator - add
filterMapWithIndex
combinator - add
partitionWithIndex
combinator - add
partitionMapWithIndex
combinator - add
getTraversableWithIndex
instance - add
getFoldableWithIndex
instance
- add
NonEmptyArray
- add
isNonEmpty
guard - add
fromReadonlyNonEmptyArray
constructor - add
chainWithIndex
combinator - add
chop
- add
splitAt
- add
chunksOf
- add
Ordering
- add
match
- add
ReadonlyArray
- add
size
- better
unsafeInsertAt
signature - better
chunksOf
signature, closes #1407
- add
ReadonlyNonEmptyArray
- add
isNonEmpty
- add
chainWithIndex
- add
chop
- add
splitAt
- add
chunksOf
- add
ReadonlySet
- add
isEmpty
- add
size
- add
toggle
- add
Set
- add
isEmpty
- add
size
- add
string
- add
empty
- add
isEmpty
- add
size
- add
- Bug Fix
ReadonlyRecord
/Record
: removeextends string
constraints insingleton
/insertAt
, closes #1413