Group middleware logic changes
PR #2996 reverts back to v4 behavior for a group registering implicit 404 handlers.
If you do not want this behavior, can do not want implicit 404 handlers for groups, use:
e := echo.NewWithConfig(echo.Config{NoGroupAutoRegister404Routes: true})
g := e.Group("/api")Other noteworthy echancements:
e.QUERY("/", func(c *Context) error {
return c.String(http.StatusTeapot, "OK")
})- Router: automatically handle HEAD request by GET handlers in https://github.com/labtack/echo/pull/2949
e := echo.NewWithConfig(echo.Config{
Router: echo.NewRouter(echo.RouterConfig{
AutoHandleHEAD: true,
}),
})What's Changed
- perf(json): pooled-buffer JSON deserialize by @vishr in #3023
- perf(router): cache-friendly static child lookup by @vishr in #3024
- update golang.org/x deps to latest versions by @aldas in #3034
- pin GitHub Actions to full commit SHAs and rework actions SHAs to own variables by @aldas in #3035
- docs(csrf): fix godoc typo in Generator default (tp -> to) by @DucMinhNe in #3026
- docs(cors): note reverse-proxy header duplication by @vishr in #3027
- feat: add support for HTTP QUERY method by @thdxg in #3038
- docs: fix typos in API_CHANGES_V5.md by @maxtaran2010 in #3039
- Router: auto HEAD to GET by @aldas in #2949
- Revert back to v4 behavior for group registering implicit 404 handler… by @aldas in #2996
- Changelog for v5.3.0 by @aldas in #3040
New Contributors
- @DucMinhNe made their first contribution in #3026
- @thdxg made their first contribution in #3038
- @maxtaran2010 made their first contribution in #3039
Full Changelog: v5.2.1...v5.3.0