Commit Graph

3 Commits

Author SHA1 Message Date
e8adc266a6 feat(httputil)!: promote to v1.0.0 — bump xerrors and valid to v1, stabilize API
Bump xerrors to v1.0.1 and valid to v1.0.1. Go directive bumped to 1.26.
API committed as stable: Handle, HandleNoBody, HandleEmpty, HandlerFunc,
JSON, NoContent, and Error are unchanged from v0.10.0.
2026-05-12 17:37:24 +00:00
8d34a0c715 feat: include platformCode in error responses (v0.10.0) (#1)
- Error(w, err) now extracts PlatformCode() from *xerrors.Err and
  includes "platformCode" in the JSON body when set; omitted otherwise
- errorBody updated to accept platformCode as an explicit parameter
- Upgraded code.nochebuena.dev/go/xerrors dependency to v0.10.0
- Added two new tests: platformCode included when set, omitted when absent

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

Reviewed-on: #1
Reviewed-by: Rene Nochebuena <rene@noreply.nochebuena.dev>
Co-authored-by: Claude Code <claude@nochebuena.dev>
Co-committed-by: Claude Code <claude@nochebuena.dev>
2026-03-25 16:57:49 -06:00
285293a75b docs(httputil): correct tier from 3 to 2
httputil depends on xerrors (Tier 0) and valid (Tier 1), placing it at
Tier 2. No infrastructure or lifecycle dependencies exist in this module.
2026-03-19 13:09:32 +00:00