fix(deps): update module github.com/gofiber/fiber/v2 to v3#436
Conversation
WalkthroughThis PR implements a dual-version dependency strategy for the GoFiber web framework, enabling simultaneous support for both v2 and v3. The changes introduce Fiber v3.0.0 alongside the existing v2 dependency (downgraded from v2.52.11 to v2.44.0) to facilitate incremental migration. Several new indirect dependencies are added to support Fiber v3, including message pack serialization libraries (tinylib/msgp, philhofer/fwd) and utility packages (savsgio/dictpool, savsgio/gotils). The go.sum file is updated accordingly with checksums for all new transitive dependencies and alternative versions of existing packages, ensuring reproducible builds during the migration period. Changes
Sequence DiagramThis diagram shows the interactions between components: sequenceDiagram
participant App as Application
participant FiberV2 as Fiber v2.44.0
participant FiberV3 as Fiber v3.0.0
participant Helmet as Helmet Middleware
participant MsgP as MessagePack (msgp)
participant DictPool as Dictionary Pool
participant FastHTTP as FastHTTP
Note over App,FastHTTP: Dual Fiber Version Support Architecture
App->>FiberV2: Initialize v2 routes/handlers
activate FiberV2
FiberV2->>Helmet: Apply security middleware
FiberV2->>FastHTTP: Use HTTP engine
deactivate FiberV2
App->>FiberV3: Initialize v3 routes/handlers
activate FiberV3
FiberV3->>MsgP: Serialize/deserialize data
Note over MsgP: Binary serialization<br/>for performance
FiberV3->>DictPool: Pool dictionary objects
Note over DictPool: Memory optimization<br/>for request/response
FiberV3->>FastHTTP: Use HTTP engine
deactivate FiberV3
Note over App: Migration Strategy:<br/>Run both versions concurrently<br/>Gradual endpoint migration
alt Request to v2 endpoint
App->>FiberV2: Handle request
FiberV2-->>App: Response
else Request to v3 endpoint
App->>FiberV3: Handle request
FiberV3->>MsgP: Encode response
MsgP-->>FiberV3: Binary data
FiberV3-->>App: Response
end
🔗 Cross-Repository Impact AnalysisEnable automatic detection of breaking changes across your dependent repositories. → Set up now Learn more about Cross-Repository AnalysisWhat It Does
How to Enable
Benefits
Note for WindsurfPlease change the default marketplace provider to the following in the windsurf settings:Marketplace Extension Gallery Service URL: https://marketplace.visualstudio.com/_apis/public/gallery Marketplace Gallery Item URL: https://marketplace.visualstudio.com/items Entelligence.ai can learn from your feedback. Simply add 👍 / 👎 emojis to teach it your preferences. More shortcuts belowEmoji Descriptions:
Interact with the Bot:
Also you can trigger various commands with the bot by doing The current supported commands are
More commands to be added soon. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #436 +/- ##
=======================================
Coverage 45.58% 45.58%
=======================================
Files 14 14
Lines 702 702
=======================================
Hits 320 320
Misses 365 365
Partials 17 17
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
|
Released in v1.2.0 |
This PR contains the following updates:
v2.52.11→v3.0.0Release Notes
gofiber/fiber (github.com/gofiber/fiber/v2)
v3.0.0Compare Source
For a detailed view of all changes and the migration guide, visit:
https://docs.gofiber.io/whats_new
Try our new migration tool to help you upgrade from v2 to v3:
What's Changed
🚀 New Features
Rename WithTlsConfigmethod toWithTLSConfigin (#2570)https://*.example.comstyle subdomains in (#2925)c.SendFile()in (#3017)app.Test()for configurable testing in (#3161)NewErrorfin (#3463)Convert fiber.Ctxtype to interface in (#1928)End()method toCtxin (#3280)ShutdownWithContextFunc in (#3162)context.Contextin keyauth middleware in (#3287)Fiber.Contextimplementcontext.Contextin (#3382)Merge Listenmethods &ListenConfigin (#1930)BodyStream()logic toadaptor.FiberHandlermiddleware in (#3799)Keys()in session middleware in (#3517)net/httpand fasthttp handlers in (#3769)🧹 Updates
[]bytesupport toutils.EqualFoldin (#2029)interface{}to any in (#2796)methodinDefaultCtxin (#3372)c.Redirect()default status in (#3415)Cookie()validation in (#3546)Accept*compliance with RFC 9110 in (#3548)reflect.TypeAssertin (#3698)Client::Param()in (#3782)FullPath()helper to context in (#3837)(Docs)
io/fsin (#2027) (Docs)utils.Trim*because stdlib has same performance in go1.19 in (#2030)c.Body()by 125% in (#3090)IsFromLocal()performance in (#3140)RebuildTree()by 68% in (#3895)🐛 Bug Fixes
DefaultCtx.Freshwhen 'Last-Modified' and 'If-Modified-Since' are equal in (#3150)Subdomains()parsing for IDNs in (#3538)Range()parsing of bytes unit in (#3541)Range()handling of HTTP 416 per RFC 9110 in (#3552)Body()handling of Content-Encoding per RFC 9110 in (#3543)All()merging logic in (#3659)🛠️ Maintenance
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.