Skip to content

v0.1.4 — Bug fixes & new helpers

Latest

Choose a tag to compare

@jackprscott jackprscott released this 07 Jun 13:41
· 2 commits to main since this release

Bug Fixes

  • Timeout / TimeoutWithConfig — data race when slow handler wrote concurrently with timeout response. Fixed with atomic timeoutWriter.
  • Routes() — root route / was returned as empty string. Now correct.
  • Routes() — non-deterministic order. Now sorted by path, then method.
  • BodyLimit — chunked over-limit body returned 500 instead of 413. Now consistently 413.

New Features

  • c.Accepted(v) — 202 response helper for async / queued jobs
  • c.QueryFloat64(name) — typed float query param
  • c.GetFloat64(key) — typed float store getter
  • middleware.Health(path) — zero-config health check endpoint, bypasses all other middleware
  • middleware.HealthWithConfig(cfg) — configurable variant with custom path and handler
  • marten.NewCtx(w, r) — public context constructor for custom middleware

Tests

355+ test cases, all passing with -race.

Full changelog: https://github.com/gomarten/marten/blob/main/CHANGELOG.md