labstack/echo
### [`v4.8.0`](https://togithub.com/labstack/echo/blob/HEAD/CHANGELOG.md#v480---2022-08-10)
[Compare Source](https://togithub.com/labstack/echo/compare/v4.7.2...v4.8.0)
**Most notable things**
You can now add any arbitrary HTTP method type as a route [#2237](https://togithub.com/labstack/echo/pull/2237)
```go
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](https://togithub.com/labstack/echo/pull/2217)
```go
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](https://togithub.com/labstack/echo/pull/2127)
- Refactor: body_limit middleware unit test [#2145](https://togithub.com/labstack/echo/pull/2145)
- Refactor: Timeout mw: rework how test waits for timeout. [#2187](https://togithub.com/labstack/echo/pull/2187)
- BasicAuth middleware returns 500 InternalServerError on invalid base64 strings but should return 400 [#2191](https://togithub.com/labstack/echo/pull/2191)
- Refactor: duplicated findStaticChild process at findChildWithLabel [#2176](https://togithub.com/labstack/echo/pull/2176)
- Allow different param names in different methods with same path scheme [#2209](https://togithub.com/labstack/echo/pull/2209)
- Add support for registering handlers for different 404 routes [#2217](https://togithub.com/labstack/echo/pull/2217)
- Middlewares should use errors.As() instead of type assertion on HTTPError [#2227](https://togithub.com/labstack/echo/pull/2227)
- Allow arbitrary HTTP method types to be added as routes [#2237](https://togithub.com/labstack/echo/pull/2237)
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
[ ] If you want to rebase/retry this PR, click this checkbox.
This PR has been generated by Mend Renovate. View repository job log here.
This PR contains the following updates:
v4.7.2
->v4.8.0
Release Notes
labstack/echo
### [`v4.8.0`](https://togithub.com/labstack/echo/blob/HEAD/CHANGELOG.md#v480---2022-08-10) [Compare Source](https://togithub.com/labstack/echo/compare/v4.7.2...v4.8.0) **Most notable things** You can now add any arbitrary HTTP method type as a route [#2237](https://togithub.com/labstack/echo/pull/2237) ```go 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](https://togithub.com/labstack/echo/pull/2217) ```go 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](https://togithub.com/labstack/echo/pull/2127) - Refactor: body_limit middleware unit test [#2145](https://togithub.com/labstack/echo/pull/2145) - Refactor: Timeout mw: rework how test waits for timeout. [#2187](https://togithub.com/labstack/echo/pull/2187) - BasicAuth middleware returns 500 InternalServerError on invalid base64 strings but should return 400 [#2191](https://togithub.com/labstack/echo/pull/2191) - Refactor: duplicated findStaticChild process at findChildWithLabel [#2176](https://togithub.com/labstack/echo/pull/2176) - Allow different param names in different methods with same path scheme [#2209](https://togithub.com/labstack/echo/pull/2209) - Add support for registering handlers for different 404 routes [#2217](https://togithub.com/labstack/echo/pull/2217) - Middlewares should use errors.As() instead of type assertion on HTTPError [#2227](https://togithub.com/labstack/echo/pull/2227) - Allow arbitrary HTTP method types to be added as routes [#2237](https://togithub.com/labstack/echo/pull/2237)Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.