v0.6.0

Released: 2026-05-01 Tag: v0.6.0 Type: Minor — new feature (health/readiness endpoint presets) PR: #40 — feat/issue-31-health-readiness-presets

What Changed

app — Opt-in health/readiness presets

err := application.EnableHealthReadinessPresets(app.HealthReadinessOptions{
    HealthPath:  "/healthz",
    ReadyPath:   "/readyz",
    ReadyChecks: []app.ReadyCheck{...},
})

Endpoint behavior

  • /healthz200 OK once presets are enabled.
  • /readyz200 OK when bootstrap invariants pass AND all readiness checks return nil; else 503.

Error conditions

Condition Error
UseServer() not called app.ErrServerNotReady
Blank/conflicting paths app.ErrInvalidPresetOptions / app.ErrRouteConflict

Non-Goals

  • UseServer() does not auto-register health/readiness routes — opt-in is explicit.
  • No framework-built provider probes — readiness checks are caller-provided.

Compatibility

  • No breaking changes. EnableHealthReadinessPresets is additive.