zerologadapter/v1.0.1
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/svcerrrequirement: 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;safeJSONMarshalvalidates nil-error
json.Marshalresults; 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
*NotFoundErrorassigned
to a plainerror) no longer panics response rendering; an external
Coder's emptyCode()is now normalized the same wayNew/Wrap
already were.
Test coverage: 100.0%.