@effect/data
Advanced tools
Changelog
0.13.0
New Features
Pipeable
module.pipe()
method.Chunk
getEquivalence
prependAll
flatMapNonEmpty
flattenNonEmpty
unsafeFromNonEmptyArray
appendAllNonEmpty
Duration
decode
function has been added to parse durations from strings.List
append
Option
product
productMany
Order
all
combine
combineAll
combineMany
empty
product
productMany
Breaking Changes
Equivalence
Order
(changed from an object to a simple function)Debug
module has been removed.Identity
module has been removed.match
functions no longer use positional arguments. Instead, they use an object with named properties (e.g., { onNone: callback, onSome: callback }
for Option
).*WithIndex
functions have been removed in favor of adding an index
argument to the corresponding base function.Chunk
concat
function has been renamed to appendAll
.elem
function has been renamed to contains
.cross
crossWith
correspondsTo
in favour of getEquivalence
forEach
unfold
zipAll
zipAllWith
zipWithIndexOffset
Either
Function
flow
function has been removed.List
length
function has been renamed to size
.concat
function has been renamed to appendAll
.equalsWith
function has been replaced with the getEquivalence
function.Option
fromEither
(use getRight
instead)struct
(use all
instead)tuple
(use all
instead)toEither
appendElement
bindDiscard
letDiscard
tupled
liftEither
ReadonlyArray
uniq
function has been renamed to dedupe
.#378 95ce472
Thanks @gcanti! - Simplify Either data type to represent a simple disjoint union
#378 95ce472
Thanks @gcanti! - use object api for some functions
#378 95ce472
Thanks @gcanti! - merge Option.all/struct/tuple
Changelog
0.12.3
#348 c51a27c
Thanks @gcanti! - Either: add validateAll, validateAllDiscard, validateFirst
#342 befe3e6
Thanks @jessekelly881! - Struct: added evolve
#351 0a17fda
Thanks @RareBodhi! - Patches RedBlackTree find method to correctly return all results for a key
#340 b5a47cf
Thanks @tim-smart! - add Hash.structureKeys