Releases: labstack/echo
v4.7.1
v4.7.0 - 2022-03-01
v4.6.3 - Fix Echo version number
Fixes
- Fixed Echo version number in greeting message which was not incremented to
4.6.2#2066
v4.6.2
v4.6.1
v4.6.0
Introduced a new request logger middleware
to help with cases when you want to use some other logging library in your application.
Fixes
- fix timeout middleware warning: superfluous response.WriteHeader #1905
Enhancements
- Add Cookie to KeyAuth middleware's KeyLookup #1929
- JWT middleware should ignore case of auth scheme in request header #1951
- Refactor default error handler to return first if response is already committed #1956
- Added request logger middleware which helps to use custom logger library for logging requests. #1980
- Allow escaping of colon in route path so Google Cloud API "custom methods" could be implemented #1988
v4.5.0
Important notes
A BREAKING CHANGE is introduced for JWT middleware users.
The JWT library used for the JWT middleware had to be changed from github.com/dgrijalva/jwt-go to
github.com/golang-jwt/jwt due former library being unmaintained and affected by security
issues. The github.com/golang-jwt/jwt project is a drop-in replacement, but supports only the latest 2 Go versions.
So for JWT middleware users Go 1.15+ is required. For detailed information please read #1940
To change the library imports in all .go files in your project replace all occurrences of dgrijalva/jwt-go with golang-jwt/jwt.
For Linux CLI you can use:
find -type f -name "*.go" -exec sed -i "s/dgrijalva\/jwt-go/golang-jwt\/jwt/g" {} \;
go mod tidyFixes
- Change JWT library to
github.com/golang-jwt/jwt#1946
v4.4.0
v4.3.0
Important notes
- Route matching has improvements for following cases:
- Correctly match routes with parameter part as last part of route (with trailing backslash)
- Considering handlers when resolving routes and search for matching http method handler
- Echo minimal Go version is now 1.13.
Fixes
- When url ends with slash first param route is the match #1804
- Router should check if node is suitable as matching route by path+method and if not then continue search in tree #1808
- Fix timeout middleware not writing response correctly when handler panics #1864
- Fix binder not working with embedded pointer structs #1861
- Add Go 1.16 to CI and drop 1.12 specific code #1850
Enhancements
v4.2.2
Fixes
- Allow proxy middleware to use query part in rewrite (#1802)
- Fix timeout middleware not sending status code when handler returns an error (#1805)
- Fix Bind() when target is array/slice and path/query params complains bind target not being struct (#1835)
- Fix panic in redirect middleware on short host name (#1813)
- Fix timeout middleware docs (#1836)