Skip to content

Releases: cashapp/quiver

v0.5.11

11 Sep 01:04
Compare
Choose a tag to compare
  • Adds outcomeOf{} Raise DSL which allows for greater interoperability with Result<Option> and ErrorOr (Chris Myers)

v0.5.10

10 Sep 03:55
Compare
Choose a tag to compare
  • 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

05 Aug 06:55
Compare
Choose a tag to compare
  • Adds Either<A, B>.handleErrorWith(f: (A) -> Either<C, B>): Either<C, B> (Chris Myers)

v0.5.8

31 Jul 00:53
Compare
Choose a tag to compare
  • 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

28 Jun 01:55
Compare
Choose a tag to compare

Adds Result.isSuccess(predicate: (T) -> Boolean): Boolean and Result.isFailure(predicate: (Throwable) -> Boolean): Boolean (Jem Mawson)

v0.5.6

21 Jun 04:43
Compare
Choose a tag to compare

Added

  • Adds Result<T>.unit(): Result<Unit> as alias for .map { } (Jem Mawson)
  • Adds Result<T>.tap and Result<T>.flatTap (Jem Mawson)
  • Adds Result<T>.toOutcome (Jem Mawson)

v0.5.5

19 Jun 23:42
Compare
Choose a tag to compare

Added

  • Adds Result.catch to enable the same behaviour as Either.catch (Alejandro Metke)
  • Adds Result<Result<T>>.flatten(): Result<T> (Jem Mawson)

Fixed

  • T.failure(): Result<T> was invalid. Changed to Throwable.failure(): Result<A> (Jem Mawson)

quiver-0.5.4

21 May 10:14
Compare
Choose a tag to compare

Added

  • Adds T.success() as a shorthand for creating a success Result (Jem Mawson)
  • Adds <T : Throwable>.failure() as a shorthand for creating a failure Result (Jem Mawson)
  • Adds T.toResult() as a shorthand for converting nullable types to Result<T> (Alejandro Metke)
  • Ads Result.mapFailure() to enable mapping the failure in a result to a different Throwable (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

09 May 02:13
Compare
Choose a tag to compare

Adds ErrorOr.toResult() as a shorthand for converting Either<Throwable, T> to Result (Jem Mawson)

v0.5.2

08 Apr 06:58
Compare
Choose a tag to compare

[0.5.2] - 2024-04-08

Changed

Upgraded Arrow to v1.2.4