Stridsvagn69420 / Cyrkensia

Music Repository Server
https://crates.io/crates/cyrkensia
GNU Affero General Public License v3.0
2 stars 0 forks source link

Bump github.com/gofiber/fiber/v2 from 2.38.1 to 2.40.0 #28

Closed dependabot[bot] closed 1 year ago

dependabot[bot] commented 1 year ago

Bumps github.com/gofiber/fiber/v2 from 2.38.1 to 2.40.0.

Release notes

Sourced from github.com/gofiber/fiber/v2's releases.

v2.40.0

❗ BreakingChange

  • Bump github.com/valyala/fasthttp from 1.40.0 to 1.41.0 (#2171)
  • Deprecate: go 1.14 & go 1.15 support deprecation (#2172)

Due to the fact that fasthttp, which fiber is based on in release 1.41.0, does not support go versions 1.14 & 1.15 anymore, we had to remove them from our package as well.

🚀 New

// now you can add your own custom methods
app := fiber.New(fiber.Config{
    RequestMethods: append(fiber.DefaultMethods, "LOAD", "TEST"),
})

app.Add("LOAD", "/hello", func(c *fiber.Ctx) error { return c.SendString("Hello, World 👋!") })

// declaration of multiple paths for the ".Use" method as in express is now possible
app.Use([]string{"/john", "/doe"}, func(c *Ctx) error {
    return c.SendString(c.Path())
})
app.Get("/:userId<int>?", func(c *fiber.Ctx) error {
    return c.SendString(c.Params("userId"))
})
// curl -X GET http://localhost:3000/42
// 42

// curl -X GET http://localhost:3000/ //

app := fiber.New()
micro := fiber.New()
// order when registering the mounted apps no longer plays a role
app.Mount("/john", micro)
// before there was problem when after mounting routes were registered
</tr></table> 

... (truncated)

Commits
  • c8baa61 prepare release v2.40.0
  • e4b3b5c Improve interface for custom logger func (#2225)
  • 92ce4aa :memo: Update middleware/logger docs (#2224)
  • 3d39b82 logger: adjustment for the new Done function - use nil instead of empty func
  • e8f8cb6 :sparkles: Add customTags in logger middleware Config (#2188)
  • 3157fb5 :sparkles: Add callback function for middleware/logger (#2219)
  • 61b4496 Track Configured Values (#2221)
  • 235cd9d ctx: simplify Protocol() (#2217)
  • b288a9f ctx: make Secure() also report whether a secure connection was established to...
  • a0645af Fix and optimize memory storage (#2207)
  • 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.


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[bot] commented 1 year ago

Superseded by #29.