[PR #184] [MERGED] chore(deps): bump github.com/gofiber/fiber/v2 from 2.39.0 to 2.40.0 #218

Closed
opened 2026-03-03 11:56:46 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Finb/bark-server/pull/184
Author: @dependabot[bot]
Created: 11/21/2022
Status: Merged
Merged: 11/22/2022
Merged by: @mritd

Base: masterHead: dependabot/go_modules/github.com/gofiber/fiber/v2-2.40.0


📝 Commits (1)

  • b2e84df chore(deps): bump github.com/gofiber/fiber/v2 from 2.39.0 to 2.40.0

📊 Changes

2 files changed (+13 additions, -13 deletions)

View changed files

📝 go.mod (+4 -4)
📝 go.sum (+9 -9)

📄 Description

Bumps github.com/gofiber/fiber/v2 from 2.39.0 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 📝 Update middleware/logger docs (#2224)
  • 3d39b82 logger: adjustment for the new Done function - use nil instead of empty func
  • e8f8cb6 Add customTags in logger middleware Config (#2188)
  • 3157fb5 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)

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Finb/bark-server/pull/184 **Author:** [@dependabot[bot]](https://github.com/apps/dependabot) **Created:** 11/21/2022 **Status:** ✅ Merged **Merged:** 11/22/2022 **Merged by:** [@mritd](https://github.com/mritd) **Base:** `master` ← **Head:** `dependabot/go_modules/github.com/gofiber/fiber/v2-2.40.0` --- ### 📝 Commits (1) - [`b2e84df`](https://github.com/Finb/bark-server/commit/b2e84df87dfbf66f3cbc14239361873f9154c630) chore(deps): bump github.com/gofiber/fiber/v2 from 2.39.0 to 2.40.0 ### 📊 Changes **2 files changed** (+13 additions, -13 deletions) <details> <summary>View changed files</summary> 📝 `go.mod` (+4 -4) 📝 `go.sum` (+9 -9) </details> ### 📄 Description Bumps [github.com/gofiber/fiber/v2](https://github.com/gofiber/fiber) from 2.39.0 to 2.40.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/gofiber/fiber/releases">github.com/gofiber/fiber/v2's releases</a>.</em></p> <blockquote> <h2>v2.40.0</h2> <h2>❗ BreakingChange</h2> <ul> <li>Bump github.com/valyala/fasthttp from 1.40.0 to 1.41.0 (<a href="https://github-redirect.dependabot.com/gofiber/fiber/issues/2171">#2171</a>)</li> <li>Deprecate: go 1.14 &amp; go 1.15 support deprecation (<a href="https://github-redirect.dependabot.com/gofiber/fiber/issues/2172">#2172</a>)</li> </ul> <p><strong>Due to the fact that fasthttp, which fiber is based on in release <a href="https://github.com/valyala/fasthttp/releases/tag/v1.41.0">1.41.0</a>, does not support go versions 1.14 &amp; 1.15 anymore, we had to remove them from our package as well.</strong></p> <h2>🚀 New</h2> <ul> <li>Register custom methods (<a href="https://github-redirect.dependabot.com/gofiber/fiber/issues/2107">#2107</a>) <a href="https://docs.gofiber.io/api/fiber#config">https://docs.gofiber.io/api/fiber#config</a></li> </ul> <pre lang="go"><code>// now you can add your own custom methods app := fiber.New(fiber.Config{ RequestMethods: append(fiber.DefaultMethods, &quot;LOAD&quot;, &quot;TEST&quot;), }) <p>app.Add(&quot;LOAD&quot;, &quot;/hello&quot;, func(c *fiber.Ctx) error { return c.SendString(&quot;Hello, World 👋!&quot;) }) </code></pre></p> <ul> <li>Add multiple-prefix support to app.Use() and group.Use() (<a href="https://github-redirect.dependabot.com/gofiber/fiber/issues/2205">#2205</a>) <a href="https://docs.gofiber.io/api/app#route-handlers">https://docs.gofiber.io/api/app#route-handlers</a> - More like <a href="https://expressjs.com/en/5x/api.html#path-examples">Express</a></li> </ul> <pre lang="go"><code>// declaration of multiple paths for the &quot;.Use&quot; method as in express is now possible app.Use([]string{&quot;/john&quot;, &quot;/doe&quot;}, func(c *Ctx) error { return c.SendString(c.Path()) }) </code></pre> <ul> <li>Allow optional params with route constraints (<a href="https://github-redirect.dependabot.com/gofiber/fiber/issues/2179">#2179</a>) <a href="https://docs.gofiber.io/guide/routing#constraints">https://docs.gofiber.io/guide/routing#constraints</a></li> </ul> <pre lang="go"><code>app.Get(&quot;/:userId&lt;int&gt;?&quot;, func(c *fiber.Ctx) error { return c.SendString(c.Params(&quot;userId&quot;)) }) // curl -X GET http://localhost:3000/42 // 42 <p>// curl -X GET <a href="http://localhost:3000/">http://localhost:3000/</a> // </code></pre></p> <ul> <li>Improve mounting behavior (<a href="https://github-redirect.dependabot.com/gofiber/fiber/issues/2120">#2120</a>) <a href="https://docs.gofiber.io/api/app#mount">https://docs.gofiber.io/api/app#mount</a> <a href="https://docs.gofiber.io/api/app#mountpath">https://docs.gofiber.io/api/app#mountpath</a></li> </ul> <pre lang="go"><code>app := fiber.New() micro := fiber.New() // order when registering the mounted apps no longer plays a role app.Mount(&quot;/john&quot;, micro) // before there was problem when after mounting routes were registered &lt;/tr&gt;&lt;/table&gt; </code></pre> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/gofiber/fiber/commit/c8baa613aebe3d11cd3850f4f632cb8c6b69779a"><code>c8baa61</code></a> prepare release v2.40.0</li> <li><a href="https://github.com/gofiber/fiber/commit/e4b3b5c70899d62db42d82b318beb583a4fefe91"><code>e4b3b5c</code></a> Improve interface for custom logger func (<a href="https://github-redirect.dependabot.com/gofiber/fiber/issues/2225">#2225</a>)</li> <li><a href="https://github.com/gofiber/fiber/commit/92ce4aac7749485b3ae64a0e37828d73e191559a"><code>92ce4aa</code></a> :memo: Update middleware/logger docs (<a href="https://github-redirect.dependabot.com/gofiber/fiber/issues/2224">#2224</a>)</li> <li><a href="https://github.com/gofiber/fiber/commit/3d39b82aad8be450cfbdc5352cdb36f5a9d76bd9"><code>3d39b82</code></a> logger: adjustment for the new Done function - use nil instead of empty func</li> <li><a href="https://github.com/gofiber/fiber/commit/e8f8cb647b6400260e2c70ad380f97cc8f4f99c8"><code>e8f8cb6</code></a> :sparkles: Add customTags in logger middleware Config (<a href="https://github-redirect.dependabot.com/gofiber/fiber/issues/2188">#2188</a>)</li> <li><a href="https://github.com/gofiber/fiber/commit/3157fb5f1c45616173da443866e778d8e7c9a3ca"><code>3157fb5</code></a> :sparkles: Add callback function for middleware/logger (<a href="https://github-redirect.dependabot.com/gofiber/fiber/issues/2219">#2219</a>)</li> <li><a href="https://github.com/gofiber/fiber/commit/61b449606716cb1da1a78f9ffaf81d5395ca61b2"><code>61b4496</code></a> Track Configured Values (<a href="https://github-redirect.dependabot.com/gofiber/fiber/issues/2221">#2221</a>)</li> <li><a href="https://github.com/gofiber/fiber/commit/235cd9df826849d51d47528026ffdb9ca88f8df4"><code>235cd9d</code></a> ctx: simplify Protocol() (<a href="https://github-redirect.dependabot.com/gofiber/fiber/issues/2217">#2217</a>)</li> <li><a href="https://github.com/gofiber/fiber/commit/b288a9f54e6454543b7a12754ab55bfc982d7a70"><code>b288a9f</code></a> ctx: make Secure() also report whether a secure connection was established to...</li> <li><a href="https://github.com/gofiber/fiber/commit/a0645af1ed365a7fbfd605f3ad880ee9336ad2e3"><code>a0645af</code></a> Fix and optimize memory storage (<a href="https://github-redirect.dependabot.com/gofiber/fiber/issues/2207">#2207</a>)</li> <li>Additional commits viewable in <a href="https://github.com/gofiber/fiber/compare/v2.39.0...v2.40.0">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/gofiber/fiber/v2&package-manager=go_modules&previous-version=2.39.0&new-version=2.40.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) 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-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> 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) </details> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-03 11:56:46 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/bark-server#218
No description provided.