-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Comparing changes
Open a pull request
base repository: go-chi/chi
base: v5.2.2
head repository: go-chi/chi
compare: v5.2.5
- 15 commits
- 27 files changed
- 13 contributors
Commits on Aug 15, 2025
-
Configuration menu - View commit details
-
Copy full SHA for 80d8da2 - Browse repository at this point
Copy the full SHA 80d8da2View commit details -
Allow multiple whitespace between method & pattern (#1013)
Allow separating the method and pattern with [ \t]+, this matches the stdlib change that was made in golang/go@7b583fd The rationale is the same as the stdlib issue, it allows you to visually line up patterns with variable-width methods: r.Handle("GET /my-route", handler1) r.Handle("POST /my-route", handler2) r.Handle("DELETE /my-route", handler3) In general aligning ourselves with the stdlib brings less surprise for end users.
Configuration menu - View commit details
-
Copy full SHA for 7859137 - Browse repository at this point
Copy the full SHA 7859137View commit details -
Avoid potential nil dereference (#1008)
Fixes: 0fe6bf1 ("Use RoutePath in URLFormat middleware (#718)") Found by PostgresPro with Svace Static Analyzer Signed-off-by: Maksim Korotkov <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 1c2d011 - Browse repository at this point
Copy the full SHA 1c2d011View commit details
Commits on Aug 26, 2025
-
feat(mux): support http.Request.Pattern in Go 1.23 (#986)
Similar to #901 Adds support to get the pattern that was used by Chi to match the route, without needing to call the Chi context.
Configuration menu - View commit details
-
Copy full SHA for d12cc49 - Browse repository at this point
Copy the full SHA d12cc49View commit details -
fix/608 - Fix flaky Throttle middleware test by synchronizing token u…
…sage (#1016) * chore: remove comment from TestThrottleRetryAfter test * test: fix flaky TestThrottleRetryAfter by synchronizing token usage
Configuration menu - View commit details
-
Copy full SHA for 9040e95 - Browse repository at this point
Copy the full SHA 9040e95View commit details -
Optimize throttle middleware by avoiding unnecessary timer creation (#…
…1011) - Only create time.NewTimer() when actually needed to wait - Reduces allocations from 7 to 4 and memory usage by ~54% - Improves performance by ~50% in high-throughput scenarios
Configuration menu - View commit details
-
Copy full SHA for cf537d4 - Browse repository at this point
Copy the full SHA cf537d4View commit details -
refactor: iterative wildcard collapsing and add test for consecutive …
…wildcards (#1012) Co-authored-by: srpvpn <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 0265fcd - Browse repository at this point
Copy the full SHA 0265fcdView commit details -
Replace methodTypString func with reverseMethodMap (#1018)
This code predates the introduction of the reverseMethodMap.
Configuration menu - View commit details
-
Copy full SHA for 9b9fb55 - Browse repository at this point
Copy the full SHA 9b9fb55View commit details
Commits on Sep 17, 2025
-
Bump minimum Go and use new features (#1017)
Go 1.21 brings us the builtin min func and slices.Contains. Go 1.22 brings us range over int and fixed for loop scoping. We were also able to drop the build tags from the path value code and inline the three-line function directly. This should still work on tinygo as they claim to support Go 1.24.
Configuration menu - View commit details
-
Copy full SHA for a52c582 - Browse repository at this point
Copy the full SHA a52c582View commit details -
Refactor graceful shutdown example (#994)
Simplify server shutdown by replacing manual signal handling with `signal.NotifyContext`.
Configuration menu - View commit details
-
Copy full SHA for 563ab11 - Browse repository at this point
Copy the full SHA 563ab11View commit details -
Configuration menu - View commit details
-
Copy full SHA for 51c977c - Browse repository at this point
Copy the full SHA 51c977cView commit details
Commits on Oct 8, 2025
-
Configuration menu - View commit details
-
Copy full SHA for 9fb4a15 - Browse repository at this point
Copy the full SHA 9fb4a15View commit details
Commits on Oct 9, 2025
-
Configuration menu - View commit details
-
Copy full SHA for de0d16e - Browse repository at this point
Copy the full SHA de0d16eView commit details
Commits on Jan 14, 2026
-
Configuration menu - View commit details
-
Copy full SHA for 6eb3588 - Browse repository at this point
Copy the full SHA 6eb3588View commit details
Commits on Feb 5, 2026
-
fix(middleware): add missing return in RouteHeaders empty check (#1045)
The RouteHeaders middleware was missing a return statement after calling next.ServeHTTP when the router had no routes configured. This caused the next handler to be called twice - once in the empty check and again at the end of the function. Also adds comprehensive test coverage for the RouteHeaders middleware and Pattern matching functionality.
Configuration menu - View commit details
-
Copy full SHA for 05f1ef7 - Browse repository at this point
Copy the full SHA 05f1ef7View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff v5.2.2...v5.2.5