fp-ts
2.16.11 · 18 Aug 2025MIT6.2M / weekRepositorynpmAtom feed
2.16.11 is the newest release of 2.x.
In short
110 deprecated130 new2 fixed18 changed1 internal
- deprecated
Deprecate
pipeablemodule, use the specific helpers instead - deprecated
Deprecate
ValidationTmodule, useEitherTinstead - deprecated
Deprecate "mega instances", use small, specific instances instead
- deprecated
Deprecate the old monad transformers, use the specific helpers instead
- deprecated
Deprecate
getApplicativeComposition, useaphelper instead - deprecated
Deprecate
prependToAll, useprependAllinstead - deprecated
Deprecate
consin favour ofprepend - deprecated
Deprecate
snocin favour ofappend
Release note
Deprecations
deprecate
pipeablemodule, use the specific helpers insteaddeprecate
ValidationTmodule, useEitherTinsteaddeprecate "mega instances", use small, specific instances instead
deprecate the old monad transformers, use the specific helpers instead
Applicativedeprecate
getApplicativeComposition, useaphelper instead
Arraydeprecate
prependToAll, useprependAllinsteaddeprecate
consin favour ofprependdeprecate
snocin favour ofappenddeprecate
empty
BooleanAlgebradeprecate
booleanAlgebraBoolean, useboolean.BooleanAlgebrainsteaddeprecate
getFunctionBooleanAlgebra, usefunction.getBooleanAlgebrainsteaddeprecate
getDualBooleanAlgebra, usereverseinstead
Boundeddeprecate
boundedNumber, usenumber.Boundedinstead
Choicedeprecate
splitChoicein favour ofsplitdeprecate
faninin favour offanIn
Compactabledeprecate
getCompactableComposition, usecompact,separatehelpers insteaddeprecate
Separated, useSeparated.Separatedinstead
Eitherdeprecate
getApplySemigroupin favour ofApply.getApplySemigroupdeprecate
getApplyMonoidin favour ofApplicative.getApplicativeMonoiddeprecate
getValidationSemigroupin favour ofApply.getApplySemigroupdeprecate
getValidationMonoidin favour ofApplicative.getApplicativeMonoiddeprecate
getValidation, usegetApplicativeValidationandgetAltValidationinsteaddeprecate
Jsontype, use theJsonmodule insteaddeprecate
parseJSONtype, use theJsonmodule insteaddeprecate
stringifyJSONtype, use theJsonmodule instead
Eqdeprecate
eqBoolean, useboolean.Eqinsteaddeprecate
eqString, usestring.Eqinsteaddeprecate
eqNumber, usenumber.Eqinsteaddeprecate
eqDate, useDate.Eqinsteaddeprecate
getStructEq, usestructinsteaddeprecate
getTupleEq, usetupleinstead
Filterabledeprecate
getFilterableComposition, usefilter,filterMap,partition,partitionMaphelpers instead
Foldabledeprecate
toArrayin favour oftoReadonlyArraydeprecate
getFoldableComposition, usereduce,foldMap,reduceRighthelpers instead
FoldableWithIndexdeprecate
getFoldableWithIndexComposition, usereduceWithIndex,foldMapWithIndex,reduceRightWithIndexhelpers instead
Functordeprecate
getFunctorComposition, usemaphelper instead
FunctorWithIndexdeprecate
getFunctorWithIndexComposition, usemapWithIndexhelper instead
IOdeprecate
getSemigroupin favour ofApply.getApplySemigroupdeprecate
getMonoidin favour ofApplicative.getApplicativeMonoiddeprecate
fromIO
IOEitherdeprecate
getApplySemigroupin favour ofApply.getApplySemigroupdeprecate
getApplyMonoidin favour ofApplicative.getApplicativeMonoiddeprecate
getSemigroupin favour ofApply.getApplySemigroupdeprecate
getIOValidation, usegetApplicativeIOValidationandgetAltIOValidationinstead
Mapdeprecate
insertAtin favour ofupsertAtdeprecate
empty
Monoiddeprecate
monoidAll, useboolean.MonoidAllinsteaddeprecate
monoidAny, useboolean.MonoidAnyinsteaddeprecate
getFunctionMonoid, usefunction.getMonoidinsteaddeprecate
getEndomorphismMonoid, usefunction.getEndomorphismMonoidinstead (Note. The execution order infunction.getEndomorphismMonoidis reversed)deprecate
monoidString, usestring.Monoidinsteaddeprecate
monoidSum, usenumber.MonoidSuminsteaddeprecate
monoidProduct, usenumber.MonoidProductinsteaddeprecate
fold, useconcatAllinsteaddeprecate
getMeetMonoid, usemininsteaddeprecate
getJoinMonoid, usemaxinsteaddeprecate
getDualMonoid, usereverseinsteaddeprecate
getStructMonoid, usestructinsteaddeprecate
getTupleMonoid, usetupleinstead
NonEmptyArraydeprecate
fold, useconcatAllinsteaddeprecate
prependToAll, useprependAllinsteaddeprecate
consin favour ofprependdeprecate
snocin favour ofappenddeprecate
unconsin favour ofunprependdeprecate
unsnocin favour ofunappenddeprecate
filterin favour ofArray'sfilterdeprecate
filterWithIndexin favour ofArray'sfilterWithIndex
Optiondeprecate
getApplySemigroupin favour ofApply.getApplySemigroupdeprecate
getApplyMonoidin favour ofApplicative.getApplicativeMonoid
Orddeprecate
ordBoolean, useboolean.Ordinsteaddeprecate
ordString, usestring.Ordinsteaddeprecate
ordNumber, usenumber.Ordinsteaddeprecate
ordDate, useDate.Ordinsteaddeprecate
getDualOrd, usereverseinsteaddeprecate
getTupleOrd, usetupleinstead
Orderingdeprecate
eqOrdering, useEqinsteaddeprecate
monoidOrdering, useMonoidinsteaddeprecate
invertin favour ofreverse
Ringdeprecate
getFunctionRing, usefunction.getRinginstead
Readerdeprecate
getSemigroupin favour ofApply.getApplySemigroupdeprecate
getMonoidin favour ofApplicative.getApplicativeMonoid
ReaderEitherdeprecate
getApplySemigroupin favour ofApply.getApplySemigroupdeprecate
getApplyMonoidin favour ofApplicative.getApplicativeMonoiddeprecate
getSemigroupin favour ofApply.getApplySemigroupdeprecate
getReaderValidation, usegetApplicativeReaderValidationandgetAltReaderValidationinsteaddeprecate
local, UseReader'slocalinstead
ReaderTaskdeprecate
getSemigroupin favour ofApply.getApplySemigroupdeprecate
getMonoidin favour ofApplicative.getApplicativeMonoiddeprecate
rundeprecate
local, UseReader'slocalinstead
ReaderTaskEitherdeprecate
getApplySemigroupin favour ofApply.getApplySemigroupdeprecate
getApplyMonoidin favour ofApplicative.getApplicativeMonoiddeprecate
getSemigroupin favour ofApply.getApplySemigroupdeprecate
getReaderTaskValidation, usegetApplicativeReaderTaskValidationandgetAltReaderTaskValidationinsteaddeprecate
rundeprecate
local, UseReader'slocalinstead
ReaderTaskEitherdeprecate
run
ReadonlyArraydeprecate
prependToAll, useprependAllinsteaddeprecate
consin favour ofprependdeprecate
snocin favour ofappend
ReadonlyNonEmptyArraydeprecate
fold, useconcatAllinsteaddeprecate
prependToAll, useprependAllinsteaddeprecate
insertAt, UseReadonlyArray'sinsertAtinsteaddeprecate
consin favour ofprependdeprecate
snocin favour ofappenddeprecate
unconsin favour ofunprependdeprecate
unsnocin favour ofunappenddeprecate
filterin favour ofReadonlyArray'sfilterdeprecate
filterWithIndexin favour ofReadonlyArray'sfilterWithIndex
ReadonlyMapdeprecate
insertAtin favour ofupsertAt
ReadonlyRecorddeprecate
hasOwnProperty, usehasinsteaddeprecate
insertAtin favour ofupsertAt
ReadonlySetdeprecate
fromArrayin favour offromReadonlyArray
ReadonlyTupledeprecate
mapLeftin favour ofmapSnddeprecate
mapin favour ofmapFst
Recorddeprecate
hasOwnProperty, usehasinsteaddeprecate
insertAtin favour ofupsertAtdeprecate
empty
Ringdeprecate
getTupleRing, usetupleinstead
Semigroupdeprecate
semigroupAll, useboolean.SemigroupAllinsteaddeprecate
semigroupAny, useboolean.SemigroupAnyinsteaddeprecate
getFunctionSemigroup, usefunction.getSemigroupinsteaddeprecate
semigroupString, usestring.Semigroupinsteaddeprecate
semigroupSum, usenumber.SemigroupSuminsteaddeprecate
semigroupProduct, usenumber.SemigroupProductinsteaddeprecate
fold, useconcatAllinsteaddeprecate
getIntercalateSemigroup, useintercalateinsteaddeprecate
getMeetSemigroup, usemininsteaddeprecate
getJoinSemigroup, usemaxinsteaddeprecate
getDualSemigroup, usereverseinsteaddeprecate
getStructSemigroup, usestructinsteaddeprecate
getTupleSemigroup, usetupleinsteaddeprecate
getFirstSemigroup, usefirstinsteaddeprecate
getLastSemigroup, uselastinsteaddeprecate
getObjectSemigroup, useassigninstead
Setdeprecate
subsetin favour ofisSubset
Showdeprecate
showBoolean, useboolean.Showinsteaddeprecate
showString, usestring.Showinsteaddeprecate
showNumber, usenumber.Showinsteaddeprecate
getStructShow, usestructinsteaddeprecate
getTupleShow, usetupleinstead
Strongdeprecate
splitStrongin favour ofsplitdeprecate
fanoutin favour offanOut
Taskdeprecate
getSemigroupin favour ofApply.getApplySemigroupdeprecate
getMonoidin favour ofApplicative.getApplicativeMonoiddeprecate
fromTask
TaskEitherdeprecate
getApplySemigroupin favour ofApply.getApplySemigroupdeprecate
getApplyMonoidin favour ofApplicative.getApplicativeMonoiddeprecate
getSemigroupin favour ofApply.getApplySemigroupdeprecate
getTaskValidation, usegetApplicativeTaskValidationandgetAltTaskValidationinstead
TaskThesedeprecate
functorTaskTheseinstance in favour ofFunctordeprecate
bifunctorTaskTheseinstance in favour ofBifunctordeprecate
getSemigroupin favour ofApply.getApplySemigroupdeprecate
toTuplein favour oftoTuple2
Thesedeprecate
toTuplein favour oftoTuple2
Traversabledeprecate
getTraversableComposition, usetraverse,sequencehelpers instead
Tupledeprecate
mapLeftin favour ofmapSnddeprecate
mapin favour ofmapFst
New Feature
add
Pointedtype classadd
FromEithertype classadd
FromIOtype classadd
FromTasktype classadd
TaskOptionmoduleadd
stringmoduleadd
numbermoduleadd
Separatedmoduleadd
JsonmoduleApplyadd
aphelperadd
apShelperadd
apFirsthelperadd
apSecondhelperadd
getApplySemigroup
Applicativeadd
getApplicativeMonoid
Arrayadd
Pointedinstanceadd
Applyinstanceadd
matchLeftaliasadd
matchRightaliasadd
sizebetter
unsafeInsertAtsignaturebetter
chunksOfsignatureadd
getSemigroup
booleanadd
foldWadd
matchaliasadd
matchWaliasadd
Eqinstanceadd
BooleanAlgebrainstanceadd
SemigroupAllinstanceadd
SemigroupAnyinstanceadd
MonoidAllinstanceadd
MonoidAnyinstanceadd
Ordinstanceadd
Showinstance
BooleanAlgebraadd
reverse
Chainadd
bindhelperadd
chainFirsthelper
Compactableadd
compacthelperadd
separatehelperadd
separatedconstructor
Dateadd
Eqinstanceadd
Ordinstance
Filterableadd
filterhelperadd
filterMaphelperadd
partitionhelperadd
partitionMaphelper
Foldableadd
reducehelperadd
foldaMaphelperadd
reduceRighthelper
FoldableWithIndexadd
reduceWithIndexhelperadd
foldaMapWithIndexhelperadd
reduceRightWithIndexhelper
functionadd
getBooleanAlgebraadd
getSemigroupadd
getMonoidadd
getSemiringadd
getRingadd
getEndomorphismMonoid
Functoradd
maphelperadd
bindTohelperadd
flapderivable, #1393
FunctorWithIndexadd
mapWithIndexhelper
Eitheradd
Pointedinstanceadd
Applyinstanceadd
getCompactableadd
getFilterableadd
FromEitherinstanceadd
toUnion, closes #1362add
foldWadd
matchaliasadd
matchWaliasadd
orElseWadd
tryCatchKadd
fromOptionKadd
chainOptionK
EitherTsplit
getEitherMinto separated functions
Eqadd
getSemigroupadd
structadd
tuple
Identityadd
Pointedinstanceadd
Applyinstance
IOadd
Pointedinstanceadd
Applyinstanceadd
FromIOinstance
IOEitheradd
Pointedinstanceadd
getCompactableadd
FromIOinstanceadd
FromEitherinstanceadd
tryCatchKcombinatoradd
toUnionadd
foldWadd
matchaliasadd
matchWaliasadd
orElseWadd
fromOptionKadd
chainOptionK
Mapadd
filterWithIndexcombinatoradd
filterMapWithIndexcombinatoradd
partitionWithIndexcombinatoradd
partitionMapWithIndexcombinatoradd
getTraversableWithIndexinstanceadd
getFoldableWithIndexinstance
Monoidadd
concatAlladd
minadd
maxadd
reverseadd
structadd
tuple
NonEmptyArrayadd
Pointedinstanceadd
Applyinstanceadd
concatAlladd
isNonEmptyguardadd
fromReadonlyNonEmptyArrayconstructoradd
chainWithIndexcombinatoradd
chopadd
splitAtadd
chunksOf
Optionadd
Pointedinstanceadd
Applyinstanceadd
foldWadd
matchaliasadd
matchWaliasadd
tryCatchK
OptionTsplit
getOptionMinto separated functions
Ordadd
equalsDefaultadd
reverseadd
tuple
Orderingadd
Eqinstanceadd
Semigroupinstanceadd
Monoidinstanceadd
match
Randomadd
randomElem
Readeradd
Pointedinstanceadd
Applyinstanceexport
first,second,left,right
ReaderTsplit
getReaderMinto separated functions
ReaderEitheradd
Pointedinstanceadd
Applyinstanceadd
FromEitherinstanceadd
getCompactableadd
getFilterableadd
toUnionadd
foldWadd
matchaliasadd
matchWaliasadd
orElseWadd
fromOptionKadd
chainOptionK
ReaderTaskadd
Pointedinstanceadd
ApplyParinstanceadd
ApplySeqinstanceadd
FromIOinstanceadd
FromTaskinstanceadd
traverseSeqArrayWithIndexadd
traverseSeqArrayadd
sequenceSeqArrayexport
Chaininstanceexport
Monadinstanceexport
MonadIOinstanceexport
MonadTaskinstance
ReaderTaskEitheradd
Pointedinstanceadd
ApplyParinstanceadd
ApplySeqinstanceadd
FromIOinstanceadd
FromTaskinstanceadd
FromEitherinstanceadd
getCompactableadd
getFilterableadd
toUnionadd
foldWadd
matchaliasadd
matchWaliasadd
orElseWadd
fromOptionKadd
chainOptionKexport
Chaininstanceexport
Monadinstanceexport
MonadIOinstanceexport
MonadTaskinstanceexport
MonadThrowinstance
ReadonlyArrayadd
Pointedinstanceadd
Applyinstanceadd
getSemigroupadd
matchLeftinstanceadd
matchRightinstanceadd
sizebetter
unsafeInsertAtsignaturebetter
chunksOfsignature, closes #1407
ReadonlyMapadd
filterWithIndexcombinatoradd
filterMapWithIndexcombinatoradd
partitionWithIndexcombinatoradd
partitionMapWithIndexcombinatoradd
getFunctorWithIndexadd
getFoldableadd
getFoldableWithIndexadd
getTraversableadd
getTraversableWithIndex
ReadonlyNonEmptyArrayadd
Pointedinstanceadd
Applyinstanceadd
concatAlladd
isNonEmptyadd
chainWithIndexadd
chopadd
splitAtadd
chunksOf
ReadonlySetadd
isEmptyadd
sizeadd
toggle
Ringadd
tuple
Setadd
isEmptyadd
size
Semigroupadd
constantadd
concatAlladd
intercalateadd
minadd
maxadd
structadd
tupleadd
firstadd
lastadd
assign
Showadd
structadd
tuple
Stateadd
Pointedinstanceadd
Applyinstance
StateTsplit
getStateMinto separated functions
StateReaderTaskEitheradd
Pointedinstanceadd
Applyinstanceadd
Monadinstanceadd
FromIOinstanceadd
FromTaskinstanceadd
FromEitherinstanceadd
fromOptionKadd
chainOptionKexport
MonadIOinstanceexport
MonadTaskinstanceexport
MonadThrowinstance
Taskadd
Pointedinstanceadd
ApplyParinstanceadd
ApplySeqinstanceadd
FromIOinstanceadd
FromTaskinstanceexport
Chaininstanceexport
Monadinstanceexport
MonadIOinstanceexport
MonadTaskinstance
TaskEitheradd
Pointedinstanceadd
ApplyParinstanceadd
ApplySeqinstanceadd
getCompactableadd
FromIOinstanceadd
FromTaskinstanceadd
FromEitherinstanceadd
toUnionadd
foldWadd
matchaliasadd
matchWaliasadd
orElseWadd
fromOptionKadd
chainOptionKexport
Chaininstanceexport
Monadinstanceexport
MonadIOinstanceexport
MonadTaskinstanceexport
MonadThrowinstance
TaskTheseadd
Functorinstanceadd
Pointedinstanceadd
Bifunctorinstanceadd
toTuple2add
getApplyadd
FromIOinstanceadd
FromTaskinstanceadd
fromEitherfunctionadd
FromEitherinstanceadd
getChaininstanceadd
foldWadd
matchaliasadd
matchWaliasadd
fromOptionadd
fromOptionKadd
fromPredicate
Theseadd
Pointedinstanceadd
offunctionadd
getApplyadd
toTuple2add
FromEitherinstanceadd
fromOptionconstructoradd
foldWadd
matchaliasadd
matchWaliasadd
fromOptionK
TaskOptionexport
Chaininstanceexport
Monadinstance
TheseTsplit
getTheseMinto separated functions
Traversableadd
traversehelperadd
sequencehelper
Treeadd
Pointedinstanceadd
Applyinstance
Writeradd
getPointedadd
getApplyadd
getApplicativeadd
getChain
Bug Fix
ReadonlyRecord/Record: removeextends stringconstraints insingleton/insertAt, closes #1413TaskOptionfix
getOrElseWsignature
Internal
add
internalmodule
Polish
the scope in
bindTo,bind,bindW,apS,apSWis now correctlyreadonlyfix
FromEithertype parameter orderArray/ReadonlyArrayassert arrays as non-empty when using
some, #1424fix
matchLeft,matchRighttype parameter order
EitherTadd overloads for
Kind2,Kind3,Kind4
OptionTadd overloads for
Kind2,Kind3,Kind4
ReaderTadd overloads for
Kind2,Kind3,Kind4
ReadonlyMapsort keys in
getShow
ReadonlySetsort keys in
getShow
StateTadd overloads for
Kind2,Kind3
TheseTadd overloads for
Kind2,Kind3,Kind4