All Versions
Latest Version
Avg Release Cycle
79 days
Latest Release
1186 days ago

Changelog History

  • v1.1.9 Changes

    August 29, 2020
    • ๐Ÿšš Coroutine binding support moved to kotlin-result-coroutines module (b16fb55) by @Munzey
    • โž• Add Scala's merge (09d341a)
      • Calling .merge() on a Result<List<Int>, Set<Int>> will return a Collection<Int> (their most common supertype).
    • โœ‚ Remove deprecation of eager-evaluating functions (a76768f)
      • Rust includes these eager evaluating variants with a simple warning in their comments with regards to using the lazy variants for heavy lifting.
    • โšก๏ธ Update Gradle to 6.6.1 (30d2778)
    • โšก๏ธ Update Kotlin to 1.4.0 (a662ebc)
    • ๐Ÿ“„ Use Kotlin 1.4's Explicit API mode (a9a0c38) by @Munzey
  • v1.1.8 Changes

    July 19, 2020
    • โž• Add suspend variant of binding function (bd7e124) by @Munzey
      • Allows calls to binding to be passed a block that suspends
      • Addresses #24
  • v1.1.7 Changes

    June 28, 2020
    • โž• Add Result#toErrorIf (cf95820) by @Globegitter
      • Facilitates transforming an Ok to an Err if the value satisfies a given predicate.
    • โž• Add Result#toErrorUnless (1000c58)
      • Facilitates transforming an Ok to an Err unless the value satisfies a given predicate.
    • โž• Add monad comprehensions via binding block (9bcaa97) by @Munzey
      • See the Binding section on the README for an introduction to this concept
    • โž• Add benchmarking framework (0910e9f) by @Munzey
    • โšก๏ธ Update Gradle to 6.5 (b4b2224)
    • โž• Add unit tests for zip functions (31965ce) by @jvanderwee
    • Convert to multi-platform project structure (bca344d) by @Munzey
  • v1.1.6 Changes

    February 12, 2020
    • โšก๏ธ Update gradle to 6.2-rc-2 (e4da8cf)
    • Replace bintray with maven central (68cabd7)
  • v1.1.5 Changes

    January 31, 2020
  • v1.1.4 Changes

    December 20, 2019
    • ๐Ÿ‘Œ Support destructuring declarations (1bf2125)
      • val (value: String?, error: Throwable?) = runCatching(yourFunction)
    • โšก๏ธ Update dependencies (782fac0)
    • Replace travis with github actions (b3dbc36)
  • v1.1.3 Changes

    August 24, 2019
    • ๐Ÿ—„ Deprecate Result.of in favour of runCatching factory function (586b260)
      • Matches Kotlin's stdlib and becomes top-level
    • โšก๏ธ Update Gradle to 5.6 (db00e61)
    • โšก๏ธ Update dependencies (31808eb)
    • โšก๏ธ Update "Creating Results" section in README (ed430c4)
  • v1.1.2 Changes

    August 09, 2019
    • โž• Add compiler contracts (66f1122)
  • v1.1.1 Changes

    November 01, 2018
    • Migrate to Kotlin Gradle DSL(80bd9dd)
    • โœ‚ Remove jdk dependency of kotlin stdlib (722ddd7)
    • โšก๏ธ Update Kotlin to 1.3.0 (7e45bfb)
    • โž• Add fold as an alias to mapBoth (4eb5d80)
    • Return the Result in on{Success,Failure} (3a3b541)
      • This facilitates chaining onSuccess/onFailure calls that may perform arbitrary side-effects, such as logging.
    • โž• Add Result.recover (b5aab62)
      • Similar to getOrElse but returns an Ok of the transformed error
  • v1.1.0 Changes

    September 18, 2018

    Now published on Bintray

    repositories { maven { url = '' } } dependencies { compile 'com.michael-bull.kotlin-result:kotlin-result:1.1.0'}
    • โšก๏ธ Update dependencies (cc1ab49)
    • โž• Add more mapping functions for Iterables (e43a700)
      • mapAll
      • mapResult
      • mapResultTo
      • mapResultNotNull
      • mapResultNotNullTo
      • mapResultIndexed
      • mapResultIndexedTo
      • mapResultIndexedNotNull
      • mapResultIndexedNotNullTo
    • Avoid creating unnecessary Err elements in map functions (29e21e5)
    • ๐Ÿ“š Consistently wrap documentation at 100 characters(1377350)
    • Mark new mapping functions as inline (21db2e5)
    • โž• Add bintray publishing configuration (4a0a49b)
    • โž• Add explicit dependencies to bintrayUpload task (88f496a)
    • Migrate away from multi-platform project structure (f10de37)