Skip to content

1.0.0 - initial release as a separate library

Compare
Choose a tag to compare
@Nek-12 Nek-12 released this 26 Aug 18:21
· 109 commits to master since this release
7fe114c

ApiResult is now separate from KMMUtils!

A few updates were made along the way.

  • Changed package from pro.respawn.kmmutils.apiresult to just pro.respawn.apiresult. A simple Replace action in the IDE should be enough to fix this
  • message, cause and stacktrace are now extensions on Error, so you'll have to add a few imports
  • removed deprecated mapWrapping, recoverWrapping
  • new operators: destructuring operator val (success, error) = ApiResult() and bang (!) equivalent to orThrow()
  • errorIfNot has been renamed to errorUnless for parity with stdlib. Auto replace deprecated functions with an IDE action.
  • new expanded documentation
  • New functions:
    • flatMap
    • require() (without args)
    • mapEither
    • mapOrDefault
    • errorOnLoading
  • New collection functions:
    • filter
    • errorOnEmpty
    • onEmpty / ifEmpty
    • merge
    • values
    • firstSuccess