Releases: go-chi/chi
Releases · go-chi/chi
v1.5.4
- Undo prior retraction in v1.5.3 as we prepare for v5.0.0 release
- History of changes: see v1.5.3...v1.5.4
v1.5.3
- Update go.mod to go 1.16 with new retract directive marking all versions without prior go.mod support
- History of changes: see v1.5.2...v1.5.3
v1.5.2
- Reverting allocation optimization as a precaution as go test -race fails.
- Minor improvements, see history below
- History of changes: see v1.5.1...v1.5.2
v1.5.1
- Performance improvement: removing 1 allocation by foregoing context.WithValue, thank you @bouk for
your contribution (#555). Note: new benchmarks posted in README. middleware.CleanPath: new middleware that clean's request path of double slashes- deprecate & remove
chi.ServerBaseContextin favour of stdlibhttp.Server#BaseContext - plus other tiny improvements, see full commit history below
- History of changes: see v4.1.2...v1.5.1
v1.5.0 - now with go.mod support
- go.mod release and testing with Go's toolchain to ensure backwards-compatibility. See https://github.com/go-chi/chi/blob/master/CHANGELOG.md#v150-2020-11-12---now-with-gomod-support for full details. Thank you.
- For existing projects who want to upgrade to the latest go.mod version, run:
go get -u github.com/go-chi/[email protected], which will get you on the go.mod version line (as Go's mod cache may still remember v4.x). - Brand new systems can run
go get -u github.com/go-chi/chiorgo get -u github.com/go-chi/chi@latestto install chi, which will install v1.x+ built with go.mod support.
v4.1.2
- fix that handles MethodNotAllowed with path variables, thank you @caseyhadden for your contribution
- fix to replace nested wildcards correctly in RoutePattern, thank you @@unmultimedio for your contribution
- History of changes: see v4.1.1...v4.1.2
v4.1.1
- fix for issue #411 which allows for overlapping regexp
route to the correct handler through a recursive tree search, thanks to @Jahaja for the PR/fix! - new middleware.RouteHeaders as a simple router for request headers with wildcard support
- updated the FileServer example to a much better implementation, see https://github.com/go-chi/chi/blob/master/_examples/fileserver/main.go
- History of changes: see v4.1.0...v4.1.1
v4.1.0
- middleware.LogEntry: Write method on interface now passes the response header
and an extra interface type useful for custom logger implementations. - middleware.WrapResponseWriter: minor fix
- middleware.Recoverer: a bit prettier
- History of changes: see v4.0.4...v4.1.0
v4.0.4
v4.0.3
- core: fix regexp routing to include default value when param is not matched
- middleware: rewrite of middleware.Compress
- middleware: suppress http.ErrAbortHandler in middleware.Recoverer
- History of changes: see v4.0.2...v4.0.3