Echo v4.8.0 Release Notes

Release Date: 2022-08-10 // over 1 year ago
  • Most notable things

    You can now add any arbitrary HTTP method type as a route #2237

    e.Add("COPY", "/*", func(c echo.Context) error 
      return c.String(http.StatusOK, "OK COPY")
    })
    

    You can add custom 404 handler for specific paths #2217

    e.RouteNotFound("/*", func(c echo.Context) error { return c.NoContent(http.StatusNotFound) })
    
    g := e.Group("/images")
    g.RouteNotFound("/*", func(c echo.Context) error { return c.NoContent(http.StatusNotFound) })
    

    โœจ Enhancements

    • โž• Add new value binding methods (UnixTimeMilli,TextUnmarshaler,JSONUnmarshaler) to Valuebinder #2127
    • ๐Ÿ”จ Refactor: body_limit middleware unit test #2145
    • ๐Ÿ”จ Refactor: Timeout mw: rework how test waits for timeout. #2187
    • BasicAuth middleware returns 500 InternalServerError on invalid base64 strings but should return 400 #2191
    • ๐Ÿ”จ Refactor: duplicated findStaticChild process at findChildWithLabel #2176
    • ๐Ÿ‘ Allow different param names in different methods with same path scheme #2209
    • โž• Add support for registering handlers for different 404 routes #2217
    • Middlewares should use errors.As() instead of type assertion on HTTPError #2227
    • ๐Ÿ‘ Allow arbitrary HTTP method types to be added as routes #2237