Skip to content

Releases: go-chi/chi

v5.0.12

17 Feb 00:43
Compare
Choose a tag to compare

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 in r.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") and request.PathValue("*") on *http.Request when using the chi router in Go 1.22+. Of course you may also use chi.URLParam(r, "xyz") and chi.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

20 Dec 02:40
Compare
Choose a tag to compare

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

13 Jul 16:02
Compare
Choose a tag to compare

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

13 Jul 15:59
Compare
Choose a tag to compare

v5.0.8

07 Dec 13:27
Compare
Choose a tag to compare
  • middleware.RealIP: few improvements #665 #684
  • middleware.Vary: fix #640
  • middleware.Recoverer: dont recover http.ErrAbortHandler #624
  • History of changes, see: v5.0.7...v5.0.8

v5.0.7

18 Nov 21:57
Compare
Choose a tag to compare
  • middleware.RealIP - add support for True-Client-IP header
  • History of changes, see: v5.0.6...v5.0.7

v5.0.6

15 Nov 21:31
Compare
Choose a tag to compare
  • Introduce simple util middleware.Maybe
  • History of changes, see: v5.0.5...v5.0.6

v5.0.5

27 Oct 11:14
Compare
Choose a tag to compare
  • 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

29 Aug 14:38
Compare
Choose a tag to compare

v5.0.3

29 Apr 22:41
Compare
Choose a tag to compare