Skip to content

Commit d48197d

Browse files
committed
Changelog for 4.8.0
1 parent cba12a5 commit d48197d

File tree

2 files changed

+32
-1
lines changed

2 files changed

+32
-1
lines changed

CHANGELOG.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,36 @@
11
# Changelog
22

3+
## v4.8.0 - 2022-08-10
4+
5+
**Most notable things**
6+
7+
You can now add any arbitrary HTTP method type as a route [#2237](https://github.com/labstack/echo/pull/2237)
8+
```go
9+
e.Add("COPY", "/*", func(c echo.Context) error
10+
return c.String(http.StatusOK, "OK COPY")
11+
})
12+
```
13+
14+
You can add custom 404 handler for specific paths [#2217](https://github.com/labstack/echo/pull/2217)
15+
```go
16+
e.RouteNotFound("/*", func(c echo.Context) error { return c.NoContent(http.StatusNotFound) })
17+
18+
g := e.Group("/images")
19+
g.RouteNotFound("/*", func(c echo.Context) error { return c.NoContent(http.StatusNotFound) })
20+
```
21+
22+
**Enhancements**
23+
24+
* Add new value binding methods (UnixTimeMilli,TextUnmarshaler,JSONUnmarshaler) to Valuebinder [#2127](https://github.com/labstack/echo/pull/2127)
25+
* Refactor: body_limit middleware unit test [#2145](https://github.com/labstack/echo/pull/2145)
26+
* Refactor: Timeout mw: rework how test waits for timeout. [#2187](https://github.com/labstack/echo/pull/2187)
27+
* BasicAuth middleware returns 500 InternalServerError on invalid base64 strings but should return 400 [#2191](https://github.com/labstack/echo/pull/2191)
28+
* Refactor: duplicated findStaticChild process at findChildWithLabel [#2176](https://github.com/labstack/echo/pull/2176)
29+
* Allow different param names in different methods with same path scheme [#2209](https://github.com/labstack/echo/pull/2209)
30+
* Add support for registering handlers for different 404 routes [#2217](https://github.com/labstack/echo/pull/2217)
31+
* Middlewares should use errors.As() instead of type assertion on HTTPError [#2227](https://github.com/labstack/echo/pull/2227)
32+
* Allow arbitrary HTTP method types to be added as routes [#2237](https://github.com/labstack/echo/pull/2237)
33+
334
## v4.7.2 - 2022-03-16
435

536
**Fixes**

echo.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ const (
248248

249249
const (
250250
// Version of Echo
251-
Version = "4.7.2"
251+
Version = "4.8.0"
252252
website = "https://echo.labstack.com"
253253
// http://patorjk.com/software/taag/#p=display&f=Small%20Slant&t=Echo
254254
banner = `

0 commit comments

Comments
 (0)