github labstack/echo v5.3.0

4 hours ago

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:

  • Adds first-class support for the QUERY HTTP method RFC 10008 in #3038
e.QUERY("/", func(c *Context) error {
  return c.String(http.StatusTeapot, "OK")
})
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

Full Changelog: v5.2.1...v5.3.0

Don't miss a new echo release

NewReleases is sending notifications on new releases.