Releases: block/quiver
Releases · block/quiver
v0.5.12
v0.5.11
- Adds
outcomeOf{}
Raise DSL which allows for greater interoperability with Result<Option> and ErrorOr (Chris Myers)
v0.5.10
- Adds
<A> OutcomeOf<A>.asResult(): Result<Option<A>>
(Chris Myers) - Adds
<T> Result<Option<T>>.toOutcomeOf(): OutcomeOf<T>
(Chris Myers) - Adds
<A> Arb.Companion.result(error: Throwable, value: Arb<A>): Arb<Result<A>>
(Chris Myers) - Adds
Arb.Companion.outcomeOf(error: Throwable, value: Arb<A>): Arb<OutcomeOf<A>>
(Chris Myers)
v0.5.9
- Adds
Either<A, B>.handleErrorWith(f: (A) -> Either<C, B>): Either<C, B>
(Chris Myers)
v0.5.8
- Adds
Result<T>.handleFailureWith(f: (Throwable) -> Result<T>): Result<T>
(Chris Myers) - Adds
<T> Result<T>.toOutcome(): OutcomeOf<T>
(Chris Myers) - Adds
<A, B: Throwable> Option<A>.toResult(error: () -> B): Result<A>
(Chris Myers)
quiver-0.5.7
Adds Result.isSuccess(predicate: (T) -> Boolean): Boolean and Result.isFailure(predicate: (Throwable) -> Boolean): Boolean (Jem Mawson)
v0.5.6
Added
- Adds
Result<T>.unit(): Result<Unit>
as alias for.map { }
(Jem Mawson) - Adds
Result<T>.tap
andResult<T>.flatTap
(Jem Mawson) - Adds
Result<T>.toOutcome
(Jem Mawson)
v0.5.5
Added
- Adds
Result.catch
to enable the same behaviour asEither.catch
(Alejandro Metke) - Adds
Result<Result<T>>.flatten(): Result<T>
(Jem Mawson)
Fixed
T.failure(): Result<T>
was invalid. Changed toThrowable.failure(): Result<A>
(Jem Mawson)
quiver-0.5.4
Added
- Adds
T.success()
as a shorthand for creating a successResult
(Jem Mawson) - Adds
<T : Throwable>.failure()
as a shorthand for creating a failureResult
(Jem Mawson) - Adds
T.toResult()
as a shorthand for converting nullable types toResult<T>
(Alejandro Metke) - Ads
Result.mapFailure()
to enable mapping the failure in a result to a differentThrowable
(Alejandro Metke) - Backport traverse functions on Either, Iterable and Option (Andrew Parker)
- Backport traverse functions on Sequence, Map and Ior (Andrew Parker)
quiver-0.5.3
Adds ErrorOr.toResult() as a shorthand for converting Either<Throwable, T> to Result (Jem Mawson)