Skip to content

v8.5.0

Choose a tag to compare

@AndrewPiterov AndrewPiterov released this 28 Jun 05:41
· 5 commits to main since this release
9940d0f

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 an expected flag (expected control flow is never reported).
  • ResultConfig.onSuccess, failBuilder, reset(); onErrorWithStack on trySync/tryAsync.
  • ResultOf.guard/guardAsync and combinators: flatMap, flatMapAsync, match, valueOr, getOrElse, recover, mapError.

Changed

  • failIf/okIf route through failBuilder — validation failures are never reported.
  • fail/failWith return ResultOf<T> (was ResultOf<T?>) — covariant, non-breaking.
  • SDK floor raised to >=2.14.0.
  • exceptionHandler, exceptionHandlerMatchers, logSuccessResult deprecated (still functional).

Removed

  • logger and quiver dependencies.

See CHANGELOG for migration notes.