Sourced from github.com/go-chi/chi/v5's releases.
v5.3.1
What's Changed
- Honor Discard() in httpFancyWriter.ReadFrom by
@DucMinhNein go-chi/chi#1110- Tidy build directives by
@JRaspassin go-chi/chi#1113- feat(middleware): add text/xml and application/xml to default compressible types by
@VojtechVitekin go-chi/chi#1127- Fix defaultLogEntry.Panic not respecting NoColor setting by
@doganarifin go-chi/chi#1050- middleware: document printPrettyStack and harden NoColor panic test by
@VojtechVitekin go-chi/chi#1131- feat(mux): support http QUERY method ietf rfc10008 by
@VojtechVitekin go-chi/chi#1132- ci: pin GitHub Actions to full commit SHAs by
@XananasX7in go-chi/chi#1116New Contributors
@DucMinhNemade their first contribution in go-chi/chi#1110@doganarifmade their first contribution in go-chi/chi#1050@XananasX7made their first contribution in go-chi/chi#1116Full Changelog: https://github.com/go-chi/chi/compare/v5.3.0...v5.3.1
v5.3.0
What's Changed
- Use strings.ReplaceAll where applicable by
@JRaspassin go-chi/chi#1046- Propagate inline middlewares across mounted subrouters by
@LukasJenicekin go-chi/chi#1049- add go 1.26 to ci by
@pkieltykain go-chi/chi#1052- Remove last uses of io/ioutil by
@JRaspassin go-chi/chi#1054- Simplify chi.walk with slices.Concat by
@JRaspassin go-chi/chi#1053- Apply the stringscutprefix modernizer by
@JRaspassin go-chi/chi#1051- Bump minimum Go to 1.23, always use request.Pattern by
@JRaspassin go-chi/chi#1048- middleware: fix httpFancyWriter.ReadFrom double-counting bytes with Tee by
@alliasgherin go-chi/chi#1085- Fix typo in Route doc comment by
@gouwaziin go-chi/chi#1073- fix: set Request.Pattern from RoutePattern() by
@leno23in go-chi/chi#1097- feat: middleware.ClientIP, a replacement for middleware.RealIP by
@VojtechVitekin go-chi/chi#967New Contributors
@LukasJenicekmade their first contribution in go-chi/chi#1049@alliasghermade their first contribution in go-chi/chi#1085@gouwazimade their first contribution in go-chi/chi#1073@leno23made their first contribution in go-chi/chi#1097SECURITY: middleware.ClientIP, a replacement for middleware.RealIP
@VojtechViteksubmitted PR #967, which introduces middleware.ClientIP — a replacement for middleware.RealIP that closes the three open spoofing advisories:
- GHSA-9g5q-2w5x-hmxf — IP spoofing via XFF in
RemoteAddrresolution (convto)- GHSA-rjr7-jggh-pgcp — RealIP allows IP spoofing via unvalidated XFF (rezmoss)
- GHSA-3fxj-6jh8-hvhx — IP spoofing in
middleware.RealIP(Saku0512, Critical / 9.3)It also addresses issues outlined at:
... (truncated)
8b258c7
ci: pin GitHub Actions to full commit SHAs (#1116)caf87e6
feat(mux): support http QUERY method ietf rfc10008 (#1132)7fcb8a2
middleware: document printPrettyStack and harden NoColor panic test (#1131)878fe71
Fix defaultLogEntry.Panic not respecting NoColor setting (#1050)d7b767b
feat(middleware): add text/xml and application/xml to default
compressible ty...3b50c7c
Tidy build directives (#1113)2b9fca2
Honor Discard() in httpFancyWriter.ReadFrom (#1110)3b17157
feat: middleware.ClientIP, a replacement for middleware.RealIP (#967)818fdcf
fix: set Request.Pattern from RoutePattern() (#1097)f975af0
Fix typo in Route doc comment (#1073)