Skip to content

zerologadapter/v1.0.1

Choose a tag to compare

@n-ae n-ae released this 18 Jul 15:13

Dependency-only release: the adapter's own API and behavior are
unchanged. go.mod's github.com/n-ae/svcerr requirement moves from
v1.0.0 to v1.0.3, picking up the root module's three most recent patch
releases. No breaking changes; module path unchanged
(github.com/n-ae/svcerr/zerologadapter).

Changed:

  • github.com/n-ae/svcerr requirement: v1.0.0 → v1.0.3.

Root-module changes now in range (none touch any surface this adapter
uses - New, wrapping a zerolog.Logger into svcerr's Logger
interface):

  • v1.0.1: closed the v1.0.0 review's findings (committed/hijacked
    panic-recovery log fields, marshaler-panic containment).
  • v1.0.2: panic-recovery log fields now derive from the recovered
    error's own severity; safeJSONMarshal validates nil-error
    json.Marshal results; marshaler-panic errors preserve identity via
    %w; empty error codes are normalized at construction (New/Wrap)
    and empty status-registration keys are rejected; RFC 9457 titles fall
    back correctly for nonstandard statuses.
  • v1.0.3: a typed-nil coded error (e.g. a nil *NotFoundError assigned
    to a plain error) no longer panics response rendering; an external
    Coder's empty Code() is now normalized the same way New/Wrap
    already were.

Test coverage: 100.0%.