1.1.21
This release serves as a bridge towards v2 and the last major release of v1.
Old behaviours have been deprecated in a non-breaking manner to anticipate the breaking changes of v2.
Additions
- Add
flatMapEither
,flatMapBoth
(4e5cdee) - Add
mapCatching
(15fc1ff) - Add
Iterable.allOk
,Iterable.allErr
,Iterable.anyOk
,Iterable.anyErr
,Iterable.countOk
,Iterable.countErr
(6e62d9f) - Add
Iterable.filterValues
,Iterable.filterValuesTo
,Iterable.filterErrors
,Iterable.filterErrorsTo
(f091f50) - Add
transpose
(c46a292) - Return
List
of errors for all variants ofzipOrAccumulate
by @YuitoSato (716109a)- The four-arg and five-arg variants were returning
Collection
instead ofList
.
- The four-arg and five-arg variants were returning
Deprecations
- Deprecate
getAll
,getAllErrors
in favour offilterValues
&filterErrors
(aca9ad9) - Deprecate
ResultBinding
in favour ofBindingScope
(dd5c96f)- This matches the Kotlin stdlib naming convention used for sequences and coroutines.
- Deprecate suspending variant of
binding
in favour ofcoroutineBinding
(b19894a)- This matches the internally-called function named
coroutineScope
, and helps consumers distinguish between the blocking variant that is otherwise only differing in package name. - This should also help convey to readers that structured concurrency will occur within the block.
- This matches the internally-called function named
- Deprecate
Ok
/Err
as return types (7ce7c16)- This is in preparation for the v2 release where these don't exist as types.
- Deprecate
getAll
/getAllErrors
in favour ofvaluesOf
/errorsOf
(522c821)