|
1 | 1 | # Changelog
|
2 | 2 |
|
| 3 | + |
| 4 | +## v4.10.0 - 2022-xx-xx |
| 5 | + |
| 6 | +**Security** |
| 7 | + |
| 8 | +This minor version bumps minimum Go version to 1.17 (from 1.16) due `golang.org/x/` packages we depend on. There are |
| 9 | +several vulnerabilities fixed in these libraries. |
| 10 | + |
| 11 | +Echo still tries to support last 4 Go versions but there are occasions we can not guarantee this promise. |
| 12 | + |
| 13 | + |
| 14 | +## v4.9.1 - 2022-10-12 |
| 15 | + |
| 16 | +**Fixes** |
| 17 | + |
| 18 | +* Fix logger panicing (when template is set to empty) by bumping dependency version [#2295](https://github.com/labstack/echo/issues/2295) |
| 19 | + |
| 20 | +**Enhancements** |
| 21 | + |
| 22 | +* Improve CORS documentation [#2272](https://github.com/labstack/echo/pull/2272) |
| 23 | +* Update readme about supported Go versions [#2291](https://github.com/labstack/echo/pull/2291) |
| 24 | +* Tests: improve error handling on closing body [#2254](https://github.com/labstack/echo/pull/2254) |
| 25 | +* Tests: refactor some of the assertions in tests [#2275](https://github.com/labstack/echo/pull/2275) |
| 26 | +* Tests: refactor assertions [#2301](https://github.com/labstack/echo/pull/2301) |
| 27 | + |
| 28 | +## v4.9.0 - 2022-09-04 |
| 29 | + |
| 30 | +**Security** |
| 31 | + |
| 32 | +* Fix open redirect vulnerability in handlers serving static directories (e.Static, e.StaticFs, echo.StaticDirectoryHandler) [#2260](https://github.com/labstack/echo/pull/2260) |
| 33 | + |
| 34 | +**Enhancements** |
| 35 | + |
| 36 | +* Allow configuring ErrorHandler in CSRF middleware [#2257](https://github.com/labstack/echo/pull/2257) |
| 37 | +* Replace HTTP method constants in tests with stdlib constants [#2247](https://github.com/labstack/echo/pull/2247) |
| 38 | + |
| 39 | + |
| 40 | +## v4.8.0 - 2022-08-10 |
| 41 | + |
| 42 | +**Most notable things** |
| 43 | + |
| 44 | +You can now add any arbitrary HTTP method type as a route [#2237](https://github.com/labstack/echo/pull/2237) |
| 45 | +```go |
| 46 | +e.Add("COPY", "/*", func(c echo.Context) error |
| 47 | + return c.String(http.StatusOK, "OK COPY") |
| 48 | +}) |
| 49 | +``` |
| 50 | + |
| 51 | +You can add custom 404 handler for specific paths [#2217](https://github.com/labstack/echo/pull/2217) |
| 52 | +```go |
| 53 | +e.RouteNotFound("/*", func(c echo.Context) error { return c.NoContent(http.StatusNotFound) }) |
| 54 | + |
| 55 | +g := e.Group("/images") |
| 56 | +g.RouteNotFound("/*", func(c echo.Context) error { return c.NoContent(http.StatusNotFound) }) |
| 57 | +``` |
| 58 | + |
| 59 | +**Enhancements** |
| 60 | + |
| 61 | +* Add new value binding methods (UnixTimeMilli,TextUnmarshaler,JSONUnmarshaler) to Valuebinder [#2127](https://github.com/labstack/echo/pull/2127) |
| 62 | +* Refactor: body_limit middleware unit test [#2145](https://github.com/labstack/echo/pull/2145) |
| 63 | +* Refactor: Timeout mw: rework how test waits for timeout. [#2187](https://github.com/labstack/echo/pull/2187) |
| 64 | +* BasicAuth middleware returns 500 InternalServerError on invalid base64 strings but should return 400 [#2191](https://github.com/labstack/echo/pull/2191) |
| 65 | +* Refactor: duplicated findStaticChild process at findChildWithLabel [#2176](https://github.com/labstack/echo/pull/2176) |
| 66 | +* Allow different param names in different methods with same path scheme [#2209](https://github.com/labstack/echo/pull/2209) |
| 67 | +* Add support for registering handlers for different 404 routes [#2217](https://github.com/labstack/echo/pull/2217) |
| 68 | +* Middlewares should use errors.As() instead of type assertion on HTTPError [#2227](https://github.com/labstack/echo/pull/2227) |
| 69 | +* Allow arbitrary HTTP method types to be added as routes [#2237](https://github.com/labstack/echo/pull/2237) |
| 70 | + |
| 71 | + |
3 | 72 | ## v4.7.2 - 2022-03-16
|
4 | 73 |
|
5 | 74 | **Fixes**
|
|
0 commit comments