Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(deps): bump github.com/labstack/echo/v4 from 4.1.17 to 4.2.0 #220

Conversation

dependabot-preview[bot]
Copy link
Contributor

Bumps github.com/labstack/echo/v4 from 4.1.17 to 4.2.0.

Release notes

Sourced from github.com/labstack/echo/v4's releases.

v4.2.0

Important notes

The behavior for binding data has been reworked for compatibility with echo before v4.1.11 by enforcing explicit tagging for processing parameters. This may break your code if you expect combined handling of query/path/form params. Please see the updated documentation for request and binding

The handling for rewrite rules has been slightly adjusted to expand * to a non-greedy (.*?) capture group. This is only relevant if multiple asterisks are used in your rules. Please see rewrite and proxy for details.

Security

  • Fix directory traversal vulnerability for Windows (#1718, little-cui)
  • Fix open redirect vulnerability with trailing slash (#1771,#1775 aldas,GeoffreyFrogeye)

Enhancements

  • Add Echo#ListenerNetwork as configuration (#1667, pafuent)
  • Add ability to change the status code using response beforeFuncs (#1706, RashadAnsari)
  • Echo server startup to allow data race free access to listener address
  • Binder: Restore pre v4.1.11 behaviour for c.Bind() to use query params only for GET or DELETE methods (#1727, aldas)
  • Binder: Add separate methods to bind only query params, path params or request body (#1681, aldas)
  • Binder: New fluent binder for query/path/form parameter binding (#1717, #1736, aldas)
  • Router: Performance improvements for missed routes (#1689, pafuent)
  • Router: Improve performance for Real-IP detection using IndexByte instead of Split (#1640, imxyb)
  • Middleware: Support real regex rules for rewrite and proxy middleware (#1767)
  • Middleware: New rate limiting middleware (#1724, iambenkay)
  • Middleware: New timeout middleware implementation for go1.13+ (#1743, )
  • Middleware: Allow regex pattern for CORS middleware (#1623, KlotzAndrew)
  • Middleware: Add IgnoreBase parameter to static middleware (#1701, lnenad, iambenkay)
  • Middleware: Add an optional custom function to CORS middleware to validate origin (#1651, curvegrid)
  • Middleware: Support form fields in JWT middleware (#1704, rkfg)
  • Middleware: Use sync.Pool for (de)compress middleware to improve performance (#1699, #1672, pafuent)
  • Middleware: Add decompress middleware to support gzip compressed requests (#1687, arun0009)
  • Middleware: Add ErrJWTInvalid for JWT middleware (#1627, juanbelieni)
  • Middleware: Add SameSite mode for CSRF cookies to support iframes (#1524, pr0head)

Fixes

  • Fix handling of special trailing slash case for partial prefix (#1741, stffabi)
  • Fix handling of static routes with trailing slash (#1747)
  • Fix Static files route not working (#1671, pwli0755, lammel)
  • Fix use of caret(^) in regex for rewrite middleware (#1588, chotow)
  • Fix Echo#Reverse for Any type routes (#1695, pafuent)
  • Fix Router#Find panic with infinite loop (#1661, pafuent)
  • Fix Router#Find panic fails on Param paths (#1659, pafuent)
  • Fix DefaultHTTPErrorHandler with Debug=true (#1477, lammel)
  • Fix incorrect CORS headers (#1669, ulasakdeniz)
  • Fix proxy middleware rewritePath to use url with updated tests (#1630, arun0009)
  • Fix rewritePath for proxy middleware to use escaped path in (#1628, arun0009)
  • Remove unless defer (#1656, imxyb)

... (truncated)

Changelog

Sourced from github.com/labstack/echo/v4's changelog.

v4.2.0 - 2020-02-11

Important notes

The behaviour for binding data has been reworked for compatibility with echo before v4.1.11 by enforcing explicit tagging for processing parameters. This may break your code if you expect combined handling of query/path/form params. Please see the updated documentation for request and binding

The handling for rewrite rules has been slightly adjusted to expand * to a non-greedy (.*?) capture group. This is only relevant if multiple asterisks are used in your rules. Please see rewrite and proxy for details.

Security

  • Fix directory traversal vulnerability for Windows (#1718, little-cui)
  • Fix open redirect vulnerability with trailing slash (#1771,#1775 aldas,GeoffreyFrogeye)

Enhancements

  • Add Echo#ListenerNetwork as configuration (#1667, pafuent)
  • Add ability to change the status code using response beforeFuncs (#1706, RashadAnsari)
  • Echo server startup to allow data race free access to listener address
  • Binder: Restore pre v4.1.11 behaviour for c.Bind() to use query params only for GET or DELETE methods (#1727, aldas)
  • Binder: Add separate methods to bind only query params, path params or request body (#1681, aldas)
  • Binder: New fluent binder for query/path/form parameter binding (#1717, #1736, aldas)
  • Router: Performance improvements for missed routes (#1689, pafuent)
  • Router: Improve performance for Real-IP detection using IndexByte instead of Split (#1640, imxyb)
  • Middleware: Support real regex rules for rewrite and proxy middleware (#1767)
  • Middleware: New rate limiting middleware (#1724, iambenkay)
  • Middleware: New timeout middleware implementation for go1.13+ (#1743, )
  • Middleware: Allow regex pattern for CORS middleware (#1623, KlotzAndrew)
  • Middleware: Add IgnoreBase parameter to static middleware (#1701, lnenad, iambenkay)
  • Middleware: Add an optional custom function to CORS middleware to validate origin (#1651, curvegrid)
  • Middleware: Support form fields in JWT middleware (#1704, rkfg)
  • Middleware: Use sync.Pool for (de)compress middleware to improve performance (#1699, #1672, pafuent)
  • Middleware: Add decompress middleware to support gzip compressed requests (#1687, arun0009)
  • Middleware: Add ErrJWTInvalid for JWT middleware (#1627, juanbelieni)
  • Middleware: Add SameSite mode for CSRF cookies to support iframes (#1524, pr0head)

Fixes

  • Fix handling of special trailing slash case for partial prefix (#1741, stffabi)
  • Fix handling of static routes with trailing slash (#1747)
  • Fix Static files route not working (#1671, pwli0755, lammel)
  • Fix use of caret(^) in regex for rewrite middleware (#1588, chotow)
  • Fix Echo#Reverse for Any type routes (#1695, pafuent)
  • Fix Router#Find panic with infinite loop (#1661, pafuent)
  • Fix Router#Find panic fails on Param paths (#1659, pafuent)
  • Fix DefaultHTTPErrorHandler with Debug=true (#1477, lammel)
  • Fix incorrect CORS headers (#1669, ulasakdeniz)

... (truncated)

Commits
  • b0f56ea Update version to v4.2.0
  • a170896 Add CHANGELOG.md for historic tracking of changes (#1764)
  • f09f2bd Fix open redirect vulnerability with AddTrailingSlashWithConfig and RemoveTra...
  • 932976d Support real regex rules for rewrite and proxy middleware (#1767)
  • 7c8592a adds middleware for rate limiting (#1724)
  • 9b0e630 Fluent Binder for Query/Path/Form binding (#1717) (#1736)
  • 67263b5 Timeout middleware implementation for go1.13+ (#1743)
  • 02ed3f3 Fix #1729 Binding query/path params and form fields to struct only works for ...
  • f718079 Update README.md
  • a9df830 Do not handle special trailing slash case for partial prefix (#1741)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.

If all status checks pass Dependabot will automatically merge this pull request.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language
  • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in your Dependabot dashboard:

  • Update frequency (including time of day and day of week)
  • Pull request limits (per update run and/or open at any time)
  • Automerge options (never/patch/minor, and dev/runtime dependencies)
  • Out-of-range updates (receive only lockfile updates, if desired)
  • Security updates (receive only security updates, if desired)

@dependabot-preview dependabot-preview bot added dependencies Pull requests that update a dependency file go Pull requests that update Go code labels Feb 14, 2021
@codecov
Copy link

codecov bot commented Feb 14, 2021

Codecov Report

Merging #220 (8f6e90d) into master (cba1d52) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #220   +/-   ##
=======================================
  Coverage   47.61%   47.61%           
=======================================
  Files          33       33           
  Lines        1491     1491           
=======================================
  Hits          710      710           
  Misses        735      735           
  Partials       46       46           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5c4f09e...92b2c8b. Read the comment docs.

@dependabot-preview dependabot-preview bot merged commit 0efbb58 into master Feb 14, 2021
@dependabot-preview dependabot-preview bot deleted the dependabot/go_modules/github.com/labstack/echo/v4-4.2.0 branch February 14, 2021 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file go Pull requests that update Go code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants