Skip to content

Releases: michaelbull/kotlin-result

1.1.6

12 Feb 14:44

Choose a tag to compare

  • Update gradle to 6.2-rc-2 (e4da8cf)
  • Replace bintray with maven central (68cabd7)

1.1.5

31 Jan 09:33

Choose a tag to compare

1.1.4

20 Dec 15:02

Choose a tag to compare

  • Support destructuring declarations (1bf2125)
    • val (value: String?, error: Throwable?) = runCatching(yourFunction)
  • Update dependencies (782fac0)
  • Replace travis with github actions (b3dbc36)

1.1.3

24 Aug 13:44

Choose a tag to compare

  • 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)

1.1.2

09 Aug 21:15

Choose a tag to compare

1.1.1

01 Nov 19:26

Choose a tag to compare

  • 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

1.1.0

18 Sep 23:08

Choose a tag to compare

Now published on Bintray

repositories {
    maven { url = 'https://dl.bintray.com/michaelbull/maven' }
}

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)

1.0.8

24 Jan 18:26

Choose a tag to compare

  • Fix mis-ordered modifier keywords (631f81d)
  • Add toResultOr (410563b)
    • Acts as a factory function for converting nullable types to Results. An example is shown in the README.

1.0.7

11 Jan 20:51

Choose a tag to compare

  • Add zip functions (c2fc72d)
  • Catch Exception instead of Throwable in Result.of (76870ef)

1.0.6

10 Jan 17:45

Choose a tag to compare

  • Add lazy variants for {and,or,getOr,getErrorOr} (c6be931)
  • Simplify doc comments according to Kotlin Coding Conventions (c5a11a9)