Releases: go-chi/chi
Releases · go-chi/chi
v5.0.12
Hi everyone, thank you to all contributors + reviewers.
We present chi v5.0.12 which includes support for the new Go 1.22 mux routing features :)
Specifically, this release adds support for:
- Routing methods
r.Handle("GET /users/{userID}", handler)
and similarly inr.HandlerFunc
with a very simple addition to chi, thank you @Spartan09 and @angelofallars for their work on the PRs to add support (#897, #901) - Access url path parameters via
request.PathValue("xyz")
andrequest.PathValue("*")
on*http.Request
when using the chi router in Go 1.22+. Of course you may also usechi.URLParam(r, "xyz")
andchi.URLParam(r, "*")
– these are all equivalent now in Go 1.22+. Thank you @angelofallars for the PR (#901) - For full list of changes, see v5.0.11...v5.0.12
v5.0.11
Thank you again to all contributors and reviewers :)
- docs updates
- go 1.21 in ci
- typos in comments
- middleware: Sunset, middleware which can be used to deprecate an endpoint (#844)
- middleware: use original expvar handler for profiler middleware (#848)
- updated _examples/httplog to use "log/slog" in go 1.21+
- middleware: new SuppressNotFound
- ensure to reset methodsAllowed between requests (9dd8b4a)
- History of changes, see v5.0.10...v5.0.11
v5.0.10
Thank you to all contributors and reviewers :)
- Use timestamps in GMT format per RFC2616 -- #772
- Update logging example to use preview version of new log/slog -- #771
- Fix duplicate fields in logging example -- #779
- chore: recoverer middleware skip write header on upgrade connection -- #795
- Request size middleware -- #809
- middleware.Compress: implement Unwrap() method to the compressResponseWriter -- #819
- Adds the Allow header on 405 response -- #776
- History of changes, see: v5.0.9...v5.0.10
v5.0.9
- History of changes, see: v5.0.8...v5.0.9
v5.0.8
v5.0.7
- middleware.RealIP - add support for True-Client-IP header
- History of changes, see: v5.0.6...v5.0.7
v5.0.6
- Introduce simple util middleware.Maybe
- History of changes, see: v5.0.5...v5.0.6
v5.0.5
- Fix middleware.Recoverer under Go 1.17+ (again)
- Update middleware.Heartbeat to respond to both HEAD and GET requests
- History of changes, see: v5.0.4...v5.0.5
v5.0.4
- Fix middleware.Recoverer under Go 1.17+ (#633)
- New in middleware: PageRoute and PathRewrite
- New docs site! https://go-chi.io -- thank you @Shubhaankar-Sharma for all the amazing work 🥇 💯
- History of changes, see: v5.0.3...v5.0.4
v5.0.3
- History of changes: see v5.0.2...v5.0.3