File tree Expand file tree Collapse file tree 2 files changed +24
-1
lines changed Expand file tree Collapse file tree 2 files changed +24
-1
lines changed Original file line number Diff line number Diff line change 11# Changelog
22
3+ ## v4.5.0 - 2021-08-01
4+
5+ ** Important notes**
6+
7+ A ** BREAKING CHANGE** is introduced for JWT middleware users.
8+ The JWT library used for the JWT middleware had to be changed from [ github.com/dgrijalva/jwt-go] ( https://github.com/dgrijalva/jwt-go ) to
9+ [ github.com/golang-jwt/jwt] ( https://github.com/golang-jwt/jwt ) due former library being unmaintained and affected by security
10+ issues.
11+ The [ github.com/golang-jwt/jwt] ( https://github.com/golang-jwt/jwt ) project is a drop-in replacement, but supports only the latest 2 Go versions.
12+ So for JWT middleware users Go 1.15+ is required. For detailed information please read [ #1940 ] ( https://github.com/labstack/echo/discussions/ )
13+
14+ To change the library imports in all .go files in your project replace all occurrences of ` dgrijalva/jwt-go ` with ` golang-jwt/jwt ` .
15+
16+ For Linux CLI you can use:
17+ ``` bash
18+ find -type f -name " *.go" -exec sed -i " s/dgrijalva\/jwt-go/golang-jwt\/jwt/g" {} \;
19+ go mod tidy
20+ ```
21+
22+ ** Fixes**
23+
24+ * Change JWT library to ` github.com/golang-jwt/jwt ` [ #1946 ] ( https://github.com/labstack/echo/pull/1946 )
25+
326## v4.4.0 - 2021-07-12
427
528** Fixes**
Original file line number Diff line number Diff line change @@ -241,7 +241,7 @@ const (
241241
242242const (
243243// Version of Echo
244- Version = "4.4 .0"
244+ Version = "4.5 .0"
245245website = "https://echo.labstack.com"
246246// http://patorjk.com/software/taag/#p=display&f=Small%20Slant&t=Echo
247247banner = `
You can’t perform that action at this time.
0 commit comments