docs(web): fix non-compiling doc examples; bump to v1.1.0
Coordinated framework release. Documentation-only code changes plus the shared version bump (folds the never-tagged 1.0.1 contracts pin into 1.1.0). - mw.Recover() -> mw.Recover(logger): web/mw/doc.go, web/server/doc.go, web/server/server.go. - health.NewHandler(...) -> ....ServeHTTP (chi Get takes HandlerFunc): web/server/doc.go, web/doc.go, web/health/doc.go. - go.mod: contracts, core -> v1.1.0 (via go get + go mod tidy). Verified by compiling the example patterns against the real API. Badge -> v1.1.0.
This commit is contained in:
+15
-4
@@ -6,13 +6,24 @@ This module adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html
|
||||
|
||||
---
|
||||
|
||||
## [1.0.1] — 2026-05-28
|
||||
## [1.1.0] — 2026-08-07
|
||||
|
||||
Coordinated framework release. Documentation fixes plus the framework version bump
|
||||
(which finally makes the previously-drafted `contracts` v1.1.0 pin real).
|
||||
|
||||
### Fixed
|
||||
|
||||
- **Package doc examples didn't compile.** Verified by compiling the example patterns
|
||||
against the real API:
|
||||
- `mw.Recover()` -> `mw.Recover(logger)` — the recover middleware takes a `logging.Logger`
|
||||
(`server`, `mw` package docs and `server.go`).
|
||||
- `health.NewHandler(logger, …)` -> `health.NewHandler(logger, …).ServeHTTP` — the handler
|
||||
returns `http.Handler`, but chi's `Get` takes `http.HandlerFunc`; same for
|
||||
`NewHandlerWithConfig` (`server`, `web`, `health` package docs).
|
||||
|
||||
### Changed
|
||||
|
||||
- Bumped `code.nochebuena.dev/einherjar/contracts` dependency from v1.0.0 to v1.1.0.
|
||||
No code changes — MVS selects v1.1.0 automatically when a consumer (e.g. `auth`)
|
||||
requires the new `SecurityBag` API. This pin makes the minimum explicit.
|
||||
- Bumped `contracts` and `core` to v1.1.0 (framework version alignment).
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user