Skip to content

Releases: michaelbull/kotlin-result

1.1.2

09 Aug 21:15
Compare
Choose a tag to compare

1.1.1

01 Nov 19:26
Compare
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
Compare
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
Compare
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
Compare
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
Compare
Choose a tag to compare
  • Add lazy variants for {and,or,getOr,getErrorOr} (c6be931)
  • Simplify doc comments according to Kotlin Coding Conventions (c5a11a9)

1.0.5

17 Dec 00:17
Compare
Choose a tag to compare
  • Alias flatMap function to andThen (44a4467)
  • Improve javadoc (b2d29d6)

1.0.4

16 Dec 22:37
Compare
Choose a tag to compare
  • Mark on{Success,Failure} as infix (3e3b649)
  • Inline the onSuccess() and onFailure() functions (47fa20c)

1.0.3

16 Dec 19:56
Compare
Choose a tag to compare

1.0.2

28 Nov 18:49
Compare
Choose a tag to compare
  • Upgrade Kotlin to 1.2.0 (8e35973)
  • Upgrade Gradle wrapper to (7c8fca3)
  • Make lambda return type of expect{Err} return Any (e455be2)