|
1 | 1 | # Changelog
|
2 | 2 |
|
| 3 | +## v4.12.0 - 2024-04-15 |
| 4 | + |
| 5 | +**Security** |
| 6 | + |
| 7 | +* Update golang.org/x/net dep because of [GO-2024-2687](https://pkg.go.dev/vuln/GO-2024-2687) by @aldas in https://github.com/labstack/echo/pull/2625 |
| 8 | + |
| 9 | + |
| 10 | +**Enhancements** |
| 11 | + |
| 12 | +* binder: make binding to Map work better with string destinations by @aldas in https://github.com/labstack/echo/pull/2554 |
| 13 | +* README.md: add Encore as sponsor by @marcuskohlberg in https://github.com/labstack/echo/pull/2579 |
| 14 | +* Reorder paragraphs in README.md by @aldas in https://github.com/labstack/echo/pull/2581 |
| 15 | +* CI: upgrade actions/checkout to v4 by @aldas in https://github.com/labstack/echo/pull/2584 |
| 16 | +* Remove default charset from 'application/json' Content-Type header by @doortts in https://github.com/labstack/echo/pull/2568 |
| 17 | +* CI: Use Go 1.22 by @aldas in https://github.com/labstack/echo/pull/2588 |
| 18 | +* binder: allow binding to a nil map by @georgmu in https://github.com/labstack/echo/pull/2574 |
| 19 | +* Add Skipper Unit Test In BasicBasicAuthConfig and Add More Detail Explanation regarding BasicAuthValidator by @RyoKusnadi in https://github.com/labstack/echo/pull/2461 |
| 20 | +* fix some typos by @teslaedison in https://github.com/labstack/echo/pull/2603 |
| 21 | +* fix: some typos by @pomadev in https://github.com/labstack/echo/pull/2596 |
| 22 | +* Allow ResponseWriters to unwrap writers when flushing/hijacking by @aldas in https://github.com/labstack/echo/pull/2595 |
| 23 | +* Add SPDX licence comments to files. by @aldas in https://github.com/labstack/echo/pull/2604 |
| 24 | +* Upgrade deps by @aldas in https://github.com/labstack/echo/pull/2605 |
| 25 | +* Change type definition blocks to single declarations. This helps copy… by @aldas in https://github.com/labstack/echo/pull/2606 |
| 26 | +* Fix Real IP logic by @cl-bvl in https://github.com/labstack/echo/pull/2550 |
| 27 | +* Default binder can use `UnmarshalParams(params []string) error` inter… by @aldas in https://github.com/labstack/echo/pull/2607 |
| 28 | +* Default binder can bind pointer to slice as struct field. For example `*[]string` by @aldas in https://github.com/labstack/echo/pull/2608 |
| 29 | +* Remove maxparam dependence from Context by @aldas in https://github.com/labstack/echo/pull/2611 |
| 30 | +* When route is registered with empty path it is normalized to `/`. by @aldas in https://github.com/labstack/echo/pull/2616 |
| 31 | +* proxy middleware should use httputil.ReverseProxy for SSE requests by @aldas in https://github.com/labstack/echo/pull/2624 |
| 32 | + |
| 33 | + |
| 34 | +## v4.11.4 - 2023-12-20 |
| 35 | + |
| 36 | +**Security** |
| 37 | + |
| 38 | +* Upgrade golang.org/x/crypto to v0.17.0 to fix vulnerability [issue](https://pkg.go.dev/vuln/GO-2023-2402) [#2562](https://github.com/labstack/echo/pull/2562) |
| 39 | + |
| 40 | +**Enhancements** |
| 41 | + |
| 42 | +* Update deps and mark Go version to 1.18 as this is what golang.org/x/* use [#2563](https://github.com/labstack/echo/pull/2563) |
| 43 | +* Request logger: add example for Slog https://pkg.go.dev/log/slog [#2543](https://github.com/labstack/echo/pull/2543) |
| 44 | + |
| 45 | + |
| 46 | +## v4.11.3 - 2023-11-07 |
| 47 | + |
| 48 | +**Security** |
| 49 | + |
| 50 | +* 'c.Attachment' and 'c.Inline' should escape filename in 'Content-Disposition' header to avoid 'Reflect File Download' vulnerability. [#2541](https://github.com/labstack/echo/pull/2541) |
| 51 | + |
| 52 | +**Enhancements** |
| 53 | + |
| 54 | +* Tests: refactor context tests to be separate functions [#2540](https://github.com/labstack/echo/pull/2540) |
| 55 | +* Proxy middleware: reuse echo request context [#2537](https://github.com/labstack/echo/pull/2537) |
| 56 | +* Mark unmarshallable yaml struct tags as ignored [#2536](https://github.com/labstack/echo/pull/2536) |
| 57 | + |
| 58 | + |
| 59 | +## v4.11.2 - 2023-10-11 |
| 60 | + |
| 61 | +**Security** |
| 62 | + |
| 63 | +* Bump golang.org/x/net to prevent CVE-2023-39325 / CVE-2023-44487 HTTP/2 Rapid Reset Attack [#2527](https://github.com/labstack/echo/pull/2527) |
| 64 | +* fix(sec): randomString bias introduced by #2490 [#2492](https://github.com/labstack/echo/pull/2492) |
| 65 | +* CSRF/RequestID mw: switch math/random usage to crypto/random [#2490](https://github.com/labstack/echo/pull/2490) |
| 66 | + |
| 67 | +**Enhancements** |
| 68 | + |
| 69 | +* Delete unused context in body_limit.go [#2483](https://github.com/labstack/echo/pull/2483) |
| 70 | +* Use Go 1.21 in CI [#2505](https://github.com/labstack/echo/pull/2505) |
| 71 | +* Fix some typos [#2511](https://github.com/labstack/echo/pull/2511) |
| 72 | +* Allow CORS middleware to send Access-Control-Max-Age: 0 [#2518](https://github.com/labstack/echo/pull/2518) |
| 73 | +* Bump dependancies [#2522](https://github.com/labstack/echo/pull/2522) |
| 74 | + |
| 75 | +## v4.11.1 - 2023-07-16 |
| 76 | + |
| 77 | +**Fixes** |
| 78 | + |
| 79 | +* Fix `Gzip` middleware not sending response code for no content responses (404, 301/302 redirects etc) [#2481](https://github.com/labstack/echo/pull/2481) |
| 80 | + |
| 81 | + |
| 82 | +## v4.11.0 - 2023-07-14 |
| 83 | + |
| 84 | + |
| 85 | +**Fixes** |
| 86 | + |
| 87 | +* Fixes the proxy middleware concurrency issue of calling the Next() proxy target on Round Robin Balancer [#2409](https://github.com/labstack/echo/pull/2409) |
| 88 | +* Fix `group.RouteNotFound` not working when group has attached middlewares [#2411](https://github.com/labstack/echo/pull/2411) |
| 89 | +* Fix global error handler return error message when message is an error [#2456](https://github.com/labstack/echo/pull/2456) |
| 90 | +* Do not use global timeNow variables [#2477](https://github.com/labstack/echo/pull/2477) |
| 91 | + |
| 92 | + |
| 93 | +**Enhancements** |
| 94 | + |
| 95 | +* Added a optional config variable to disable centralized error handler in recovery middleware [#2410](https://github.com/labstack/echo/pull/2410) |
| 96 | +* refactor: use `strings.ReplaceAll` directly [#2424](https://github.com/labstack/echo/pull/2424) |
| 97 | +* Add support for Go1.20 `http.rwUnwrapper` to Response struct [#2425](https://github.com/labstack/echo/pull/2425) |
| 98 | +* Check whether is nil before invoking centralized error handling [#2429](https://github.com/labstack/echo/pull/2429) |
| 99 | +* Proper colon support in `echo.Reverse` method [#2416](https://github.com/labstack/echo/pull/2416) |
| 100 | +* Fix misuses of a vs an in documentation comments [#2436](https://github.com/labstack/echo/pull/2436) |
| 101 | +* Add link to slog.Handler library for Echo logging into README.md [#2444](https://github.com/labstack/echo/pull/2444) |
| 102 | +* In proxy middleware Support retries of failed proxy requests [#2414](https://github.com/labstack/echo/pull/2414) |
| 103 | +* gofmt fixes to comments [#2452](https://github.com/labstack/echo/pull/2452) |
| 104 | +* gzip response only if it exceeds a minimal length [#2267](https://github.com/labstack/echo/pull/2267) |
| 105 | +* Upgrade packages [#2475](https://github.com/labstack/echo/pull/2475) |
| 106 | + |
| 107 | + |
| 108 | +## v4.10.2 - 2023-02-22 |
| 109 | + |
| 110 | +**Security** |
| 111 | + |
| 112 | +* `filepath.Clean` behaviour has changed in Go 1.20 - adapt to it [#2406](https://github.com/labstack/echo/pull/2406) |
| 113 | +* Add `middleware.CORSConfig.UnsafeWildcardOriginWithAllowCredentials` to make UNSAFE usages of wildcard origin + allow cretentials less likely [#2405](https://github.com/labstack/echo/pull/2405) |
| 114 | + |
| 115 | +**Enhancements** |
| 116 | + |
| 117 | +* Add more HTTP error values [#2277](https://github.com/labstack/echo/pull/2277) |
| 118 | + |
| 119 | + |
| 120 | +## v4.10.1 - 2023-02-19 |
| 121 | + |
| 122 | +**Security** |
| 123 | + |
| 124 | +* Upgrade deps due to the latest golang.org/x/net vulnerability [#2402](https://github.com/labstack/echo/pull/2402) |
| 125 | + |
| 126 | + |
| 127 | +**Enhancements** |
| 128 | + |
| 129 | +* Add new JWT repository to the README [#2377](https://github.com/labstack/echo/pull/2377) |
| 130 | +* Return an empty string for ctx.path if there is no registered path [#2385](https://github.com/labstack/echo/pull/2385) |
| 131 | +* Add context timeout middleware [#2380](https://github.com/labstack/echo/pull/2380) |
| 132 | +* Update link to jaegertracing [#2394](https://github.com/labstack/echo/pull/2394) |
| 133 | + |
| 134 | + |
| 135 | +## v4.10.0 - 2022-12-27 |
| 136 | + |
| 137 | +**Security** |
| 138 | + |
| 139 | +* We are deprecating JWT middleware in this repository. Please use https://github.com/labstack/echo-jwt instead. |
| 140 | + |
| 141 | + JWT middleware is moved to separate repository to allow us to bump/upgrade version of JWT implementation (`github.com/golang-jwt/jwt`) we are using |
| 142 | +which we can not do in Echo core because this would break backwards compatibility guarantees we try to maintain. |
| 143 | + |
| 144 | +* This minor version bumps minimum Go version to 1.17 (from 1.16) due `golang.org/x/` packages we depend on. There are |
| 145 | + several vulnerabilities fixed in these libraries. |
| 146 | + |
| 147 | + Echo still tries to support last 4 Go versions but there are occasions we can not guarantee this promise. |
| 148 | + |
| 149 | + |
| 150 | +**Enhancements** |
| 151 | + |
| 152 | +* Bump x/text to 0.3.8 [#2305](https://github.com/labstack/echo/pull/2305) |
| 153 | +* Bump dependencies and add notes about Go releases we support [#2336](https://github.com/labstack/echo/pull/2336) |
| 154 | +* Add helper interface for ProxyBalancer interface [#2316](https://github.com/labstack/echo/pull/2316) |
| 155 | +* Expose `middleware.CreateExtractors` function so we can use it from echo-contrib repository [#2338](https://github.com/labstack/echo/pull/2338) |
| 156 | +* Refactor func(Context) error to HandlerFunc [#2315](https://github.com/labstack/echo/pull/2315) |
| 157 | +* Improve function comments [#2329](https://github.com/labstack/echo/pull/2329) |
| 158 | +* Add new method HTTPError.WithInternal [#2340](https://github.com/labstack/echo/pull/2340) |
| 159 | +* Replace io/ioutil package usages [#2342](https://github.com/labstack/echo/pull/2342) |
| 160 | +* Add staticcheck to CI flow [#2343](https://github.com/labstack/echo/pull/2343) |
| 161 | +* Replace relative path determination from proprietary to std [#2345](https://github.com/labstack/echo/pull/2345) |
| 162 | +* Remove square brackets from ipv6 addresses in XFF (X-Forwarded-For header) [#2182](https://github.com/labstack/echo/pull/2182) |
| 163 | +* Add testcases for some BodyLimit middleware configuration options [#2350](https://github.com/labstack/echo/pull/2350) |
| 164 | +* Additional configuration options for RequestLogger and Logger middleware [#2341](https://github.com/labstack/echo/pull/2341) |
| 165 | +* Add route to request log [#2162](https://github.com/labstack/echo/pull/2162) |
| 166 | +* GitHub Workflows security hardening [#2358](https://github.com/labstack/echo/pull/2358) |
| 167 | +* Add govulncheck to CI and bump dependencies [#2362](https://github.com/labstack/echo/pull/2362) |
| 168 | +* Fix rate limiter docs [#2366](https://github.com/labstack/echo/pull/2366) |
| 169 | +* Refactor how `e.Routes()` work and introduce `e.OnAddRouteHandler` callback [#2337](https://github.com/labstack/echo/pull/2337) |
| 170 | + |
| 171 | + |
3 | 172 | ## v4.9.1 - 2022-10-12
|
4 | 173 |
|
5 | 174 | **Fixes**
|
|
0 commit comments