Bump github.com/gofiber/fiber/v2 from 2.43.0 to 2.50.0 in /contrib/gofiber/fiber/v2
Bumps github.com/gofiber/fiber/v2 from 2.43.0 to 2.50.0.
Release notes
Sourced from github.com/gofiber/fiber/v2's releases.
v2.50.0
❗ Breaking Changes
- Change signatures of GetReqHeaders and GetRespHeaders (#2650)
To allow single and list values under headers according to the rfc standard
- func (c *Ctx) GetReqHeaders() map[string]string + func (c *Ctx) GetReqHeaders() map[string][]string- func (c *Ctx) GetRespHeaders() map[string]string + func (c *Ctx) GetRespHeaders() map[string][]string👮 Security
https://docs.gofiber.io/api/middleware/csrf
🚀 Improvements to the CSRF middleware:
- Added support for single-use tokens through the
SingleUseTokenconfiguration option.- Optional integration with GoFiber session middleware through the
SessionandSessionKeyconfiguration options.- Introduction of origin checks for HTTPS connections to verify referer headers.
- Implementation of a Double Submit Cookie approach for CSRF token generation and validation when used without
Session.- Enhancement of error handling with more descriptive error messages.
- The documentation for the CSRF middleware has been enhanced with the addition of the new options and best practices to improve security.
Thank you
@sixcolors🚀 New
- Cookie parser (#2656) https://docs.gofiber.io/api/ctx#cookieparser
// Field names should start with an uppercase letter type Person struct { Name string `cookie:"name"` Age int `cookie:"age"` Job bool `cookie:"job"` } // Example route app.Get("/", func(c *fiber.Ctx) error { p := new(Person) // This method is similar to BodyParser, but for cookie parameters if err := c.CookieParser(p); err != nil { </tr></table>
... (truncated)
Commits
af39998Add more description to GetClientInfoc864da0prepare release v2.50.08c3916dMerge pull request from GHSA-94w9-97p3-p368d736d3a:bug: bug: fix path checking on route naming (#2676)cb89cceMerge pull request #2675 from jscappini/patch-1d974cf3Fix typo in requestid.mde70b2e2Cookie parser (#2656)bb90fc1fix lint errorsb50d91dMerge pull request from GHSA-94w9-97p3-p3689292a36:bug: bug: fix nil pointer dereference issue on idempotency middleware (#2668)- Additional commits viewable in compare view
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.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill 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 versionwill 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 dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) You can disable automated security fix PRs for this repo from the Security Alerts page.
Codecov Report
All modified lines are covered by tests :white_check_mark:
Comparison is base (
102a9fb) 80.40% compared to head (18d0933) 80.40%.
Additional details and impacted files
@@ Coverage Diff @@
## master #51 +/- ##
=======================================
Coverage 80.40% 80.40%
=======================================
Files 18 18
Lines 592 592
=======================================
Hits 476 476
Misses 66 66
Partials 50 50
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Superseded by #61.