
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| github.com/gofiber/fiber/v2 | require | minor | v2.21.0
-> v2.32.0
|
Release Notes
gofiber/fiber
Compare Source
🚀 New
- Support adding queries to RedirectToRoute (#1858)
https://docs.gofiber.io/api/ctx#redirecttoroute
- Add AllParams method (#1853)
https://docs.gofiber.io/api/ctx#allparams
- Add context Writef feature function (#1841)
https://docs.gofiber.io/api/ctx#writef
🧹 Updates
- Use encoding/json (#1851)
https://docs.gofiber.io/guide/faster-fiber
- Bump github.com/valyala/fasthttp from 1.34.0 to 1.35.0 (#1849)
- RFC: Return an instance of
*fiber.Error
when no handler found (#1847)
https://docs.gofiber.io/extra/faq#how-do-i-handle-custom-404-responses
🐛 Fixes
- "Sub fiber's error handlers not working #1839" and "Mount sub fiber app on '/' #1842" (#1848)
📚 Documentation
Thank you @asyslinux, @codemicro, @efectn and @jfcg for making this update possible.
Compare Source
🚀 New
- Allow parsing of square bracket query param (#1818)
- Change name to get URL from (#1831)
https://docs.gofiber.io/api/ctx#getrouteurl
🧹 Updates
- EqualFold and docs (#1833)
- Bump goccy/go-json to 0.9.6 (#1832)
Thank you @jfcg, @ninadingole and @sujit-baniya for making this update possible.
Compare Source
🚀 New
- Add initial support for hooks (#1777)
https://docs.gofiber.io/guide/hooks
🧹 Updates
- Add go1.18 to tests and docs (#1819)
🐛 Fixes
- Limiter middleware db connection (#1813)
Thank you @efectn and @qracer for making this update possible.
Compare Source
🚀 New
- Cache middleware: Store e2e headers. (#1807)
https://docs.gofiber.io/api/middleware/cache#config
🧹 Updates
- Bump github.com/valyala/fasthttp from 1.33.0 to 1.34.0 (#1811)
- Bump goccy/go-json to v0.9.5 (#1808)
- Optimize App.buildTree() (#1809)
🐛 Fixes
📚 Documentation
- Update some translation (#1815)
- Cache middleware: Fix comment typo in manager.go. (#1804)
- Fix goreportcard & pkg.go.dev links in READMEs (#1798)
- Update turkish readme (#1800)
- Update readme - cleanup (#1794)
Thank you @FlameMida, @efectn, @jfcg and @thylong for making this update possible.
Compare Source
🚀 New
- Update TLS Config & Add ListenMutualTLS (#1761)
https://docs.gofiber.io/api/app#listentls
https://docs.gofiber.io/api/app#listenmutualtls
🐛 Fixes
- Restore Original URL of the context after changing it (#1788)
- Fix for "Why net.Addr is fiber.testAddr, not *net.TCPAddr?🤗 #1574" (#1784)
- utils.TrimBytes should trim all content (#1779)
📚 Documentation
- Inconsistents of storage (#1787)
- Fixing a mistake of the comment in the limiter package (#1790)
- Translate some words to bahasa(ID) (#1780)
- Add SSE example (#1776)
Thank you @efectn, @fufuok, @geet, @qracer and @rendiputra for making this update possible.
Compare Source
🚀 New
- Bind support for render (#1754)
https://docs.gofiber.io/api/ctx#bind
- Add RedirectToRoute and RedirectBack (#1750)
https://docs.gofiber.io/api/ctx#redirecttoroute
https://docs.gofiber.io/api/ctx#redirectback
- Session Only Cookies (#1752)
https://docs.gofiber.io/api/ctx#cookie
https://docs.gofiber.io/api/middleware/csrf
- Add ability to restart route handling (#1739)
https://docs.gofiber.io/api/ctx#restartrouting
- Add direct download option when serving static files (#1729)
https://docs.gofiber.io/api/app#static
- SaveFile to default External Storage (#1557)
https://docs.gofiber.io/api/ctx#savefiletostorage
🔙 Reverted ⚠️
- Backwards incompatible change to fiber.Error (#1768)
⚠️ We have decided to remove the
fiber.Errors
method and set the fiber.Error
to the state before 2.25.0 due to the not downward compatible changes added in the last versions
🧹 Updates
- Bump: goccy/go-json to 0.9.4 (#1771)
- Change default gc interval of internal/memory (#1756)
- middleware/limiter: Fix file names (#1747) (#1748)
- Bump github.com/valyala/fasthttp from 1.32.0 to 1.33.0 (#1744)
🐛 Fixes
utils.Trim
should trim all string content (#1775)
- middleware/proxy: Incorrect scheme on proxy.Do (#1762) (#1765)
- middleware/cache: Mutex lock (#1764)
- Add missing json errors (#1755)
- Mounted app views (#1749)
📚 Documentation
Thank you @Aliqyan, @Lian1230, @NorbertHauriel, @Trim21, @abhi12299, @apoq, @balcieren, @bigflood, @efectn, @liaohongxing, @mtneug and @sujit-baniya for making this update possible.
Compare Source
🚀 New
- Add Next to Pprof and Expvar middlewares. (#1737)
https://docs.gofiber.io/api/middleware/pprof
https://docs.gofiber.io/api/middleware/expvar
- Add retryIf function to client agent (#1726)
https://docs.gofiber.io/api/client#retryif
- Add ReqHeaderParser. (#1721)
https://docs.gofiber.io/api/ctx#reqheaderparser
- Add Route() method like Chi router. (#1713)
https://docs.gofiber.io/api/app#route
- Pass all locals to ctx.Render (#1693)
https://docs.gofiber.io/api/fiber#config -
PassLocalsToViews
🧹 Updates
- limiter: clarify variable name 'expire' (#1742)
- Added HEAD method to caching (#1730)
🐛 Fixes
- Fix route naming when to use group in group. (#1736)
- Fix NewErrors() and Improve NewError() (#1728)
https://docs.gofiber.io/api/fiber#newerror
https://docs.gofiber.io/api/fiber#newerrors
📚 Documentation
- Add 3rd party middleware eozer/fiber_ldapauth (#1743)
- Fix: typo (#1741)
Thank you @NorbertHauriel, @balcieren, @cenkkoroglu, @efectn, @eozer, @jessequinn, @kingdevnl and @vecpeng for making this update possible.
Compare Source
🚀 New
- Add function NewErrors to create multiple new errors (#1701)
https://docs.gofiber.io/api/fiber#newerrors
🧹 Updates
- Bump github.com/valyala/fasthttp from 1.31.0 to 1.32.0 (#1700)
- Update goccy/go-json to 0.9.3. (#1709, #1719)
- Change json tag for EnablePrintRoutes (#1702)
https://docs.gofiber.io/api/fiber#config
🐛 Fixes
- Add
csrf_
to default encrypt cookie exception (#1631) (#1698)
📚 Documentation
- Translate some English to zh-TW (#1725)
- Translate some words to bahasa(ID) (#1717)
- Fix typos in middleware (#1714)
- Add Central Kurdish README (#1694)
- Fix ID translation typo (#1691)
- Update Turkish translation (#1689)
- Tweaks README_id.md (#1690)
- Add emoji for limitations (#1682)
Thank you @ahmethakanbesel, @amir9480, @bl0cknumber, @clickthisnick, @efectn, @rendiputra, @roj1512 and @vecpeng for making this update possible.
Compare Source
🚀 New
- Add GetRespHeader, GetReqHeaders and TagReqHeaders for logger mw (#1678)
https://docs.gofiber.io/api/ctx#getreqheaders
https://docs.gofiber.io/api/ctx#getrespheaders
https://docs.gofiber.io/api/middleware/logger#constants - TagReqHeaders
- Print all routes message when server starts (#1677)
https://docs.gofiber.io/api/fiber#config - EnablePrintRoutes
- Add method the get registered handler count. (#1672)
https://docs.gofiber.io/api/app#handlerscount
- Add function to check if request came from localhost (#1671)
https://docs.gofiber.io/api/ctx#isfromlocal
- Add route naming feature. (#1650)
https://docs.gofiber.io/api/app#name
🧹 Updates
- Improve printRoutesMessage (#1681)
- Rename handlerCount to handlersCount (#1674)
- Add no-color compatibility (#1646)
🐛 Fixes
- Fix using IP ranges in config.TrustedProxies (#1607) (#1614)
- Middleware/csrf: unmatched token returns nil error (#1667)
- goccy/go-json for go1.18-beta1. (#1673)
- Error handler of app not saved when mounted in group (#1649)
📚 Documentation
Thank you @efectn, @hi019, @ichxxx, @sangjinsu, @sixcolors and @vecpeng for making this update possible.
Compare Source
🚀 New
- Add disable html support to monitor middleware. (#1620)
https://docs.gofiber.io/api/middleware/monitor#config
- Recover middleware: Added, fiber.Ctx as a first paremeter to StackTrace (#1623)
https://docs.gofiber.io/api/middleware/recover#config
breaking change to be aware of
🧹 Updates
- Improvements for logger middleware (#1645)
- middleware/session: CookieSameSite default "Lax" (#1638)
https://docs.gofiber.io/api/middleware/session#config
breaking change to be aware of
- middleware/csrf: CookieSameSite default "Lax" (#1640)
https://docs.gofiber.io/api/middleware/csrf#config
breaking change to be aware of
🐛 Fixes
- Update goccy/go-json to 0.8.1 (#1644)
Thank you @efectn, @sixcolors and @turgayozgur for making this update possible.
Compare Source
🚀 New
- [Cache] add ExpirationGenerator for generate custom Expiration (#1618)
🧹 Updates
📚 Documentation
Thank you @Gusted, @djunny, @liaohongxing and @mancix for making this update possible.
Configuration
📅 Schedule: At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
- [ ] If you want to rebase/retry this PR, click this checkbox.
This PR has been generated by WhiteSource Renovate. View repository job log here.