Repository navigation
v8.5.0
Additive, non-breaking minor. Adds a global observability seam for crash reporting, rounds out combinators, and removes two dependencies.
Added
ResultConfig.onException(no-op by default) — the single place to wire crash reporting (e.g. Sentry); unexpected caught exceptions are reported exactly once.ResultMatcher+ResultConfig.matchers— ordered, subtype-aware classification with anexpectedflag (expected control flow is never reported).ResultConfig.onSuccess,failBuilder,reset();onErrorWithStackontrySync/tryAsync.ResultOf.guard/guardAsyncand combinators:flatMap,flatMapAsync,match,valueOr,getOrElse,recover,mapError.
Changed
failIf/okIfroute throughfailBuilder— validation failures are never reported.fail/failWithreturnResultOf<T>(wasResultOf<T?>) — covariant, non-breaking.- SDK floor raised to
>=2.14.0. exceptionHandler,exceptionHandlerMatchers,logSuccessResultdeprecated (still functional).
Removed
loggerandquiverdependencies.
See CHANGELOG for migration notes.