-
-
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.1
head repository: go-chi/chi
compare: v5.2.3
- 20 commits
- 31 files changed
- 18 contributors
Commits on Feb 4, 2025
-
Use strings.Cut in a few places (#971)
Now that we're 1.20+ instead of 1.14+ we can use 1.18's strings.Cut in a few places to simplify code.
Configuration menu - View commit details
-
Copy full SHA for 877e876 - Browse repository at this point
Copy the full SHA 877e876View commit details
Commits on Feb 5, 2025
-
Fix non-constant format strings in t.Fatalf (#972)
This is a new go vet analysis pass that fires under go 1.24: $ go1.24rc2 vet ./... # github.com/go-chi/chi/v5 # [github.com/go-chi/chi/v5] ./mux_test.go:236:12: non-constant format string in call to (*testing.common).Fatalf ... The strings would be parsed as format strings which is not intended. See golang/go#60529 for details.
Configuration menu - View commit details
-
Copy full SHA for 72fbe46 - Browse repository at this point
Copy the full SHA 72fbe46View commit details -
Configuration menu - View commit details
-
Copy full SHA for e846b83 - Browse repository at this point
Copy the full SHA e846b83View commit details
Commits on Feb 11, 2025
-
Configuration menu - View commit details
-
Copy full SHA for c6225e3 - Browse repository at this point
Copy the full SHA c6225e3View commit details
Commits on Feb 12, 2025
-
chore: delint ioutil usage (#962)
This also bumps the minimum supported version of Go to 1.16 (which itself has beel EOL for almost 3 years now) Co-authored-by: Vojtech Vitek (golang.cz) <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 1aae5b2 - Browse repository at this point
Copy the full SHA 1aae5b2View commit details -
Configuration menu - View commit details
-
Copy full SHA for fe2c065 - Browse repository at this point
Copy the full SHA fe2c065View commit details
Commits on Feb 18, 2025
-
Configuration menu - View commit details
-
Copy full SHA for d047034 - Browse repository at this point
Copy the full SHA d047034View commit details -
Configuration menu - View commit details
-
Copy full SHA for d7034fd - Browse repository at this point
Copy the full SHA d7034fdView commit details
Commits on Jun 20, 2025
-
GHSA-vrw8-fxc6-2r93 Advisory reported by Anuraag Baishya, @anuraagbaishya. Thank you!
Configuration menu - View commit details
-
Copy full SHA for 1be7ad9 - Browse repository at this point
Copy the full SHA 1be7ad9View commit details -
Configuration menu - View commit details
-
Copy full SHA for e235052 - Browse repository at this point
Copy the full SHA e235052View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5516d14 - Browse repository at this point
Copy the full SHA 5516d14View commit details -
It appears as though regular expression quantity support was added by #245. This updates the documentation to reflect that.
Configuration menu - View commit details
-
Copy full SHA for 23c395f - Browse repository at this point
Copy the full SHA 23c395fView commit details
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
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.1...v5.2.3