1.0.0 - initial release as a separate library
ApiResult is now separate from KMMUtils!
A few updates were made along the way.
- Changed package from
pro.respawn.kmmutils.apiresult
to justpro.respawn.apiresult
. A simple Replace action in the IDE should be enough to fix this message
,cause
andstacktrace
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 toorThrow()
errorIfNot
has been renamed toerrorUnless
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