Releases: gofiber/fiber
v2.28.0
🚀 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.
v2.27.0
🚀 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 thefiber.Errors
method and set thefiber.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
- fix cache docs error (#1769)
Thank you @Aliqyan, @Lian1230, @NorbertHauriel, @trim21, @abhi12299, @apoq, @balcieren, @bigflood, @efectn, @liaohongxing, @mtneug and @sujit-baniya for making this update possible.
v2.26.0
🚀 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
🐛 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
Thank you @NorbertHauriel, @balcieren, @cenkkoroglu, @efectn, @eozer, @jessequinn, @kingdevnl and @vecpeng for making this update possible.
v2.25.0
🚀 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
📚 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.
v2.24.0
🚀 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
- Indentions for READMEs (#1680)
- Improve Chinese translation (#1679)
- Update README_ko.md (#1653, #1656)
- Change some Chinese translation (#1648)
Thank you @efectn, @hi019, @ichxxx, @sangjinsu, @sixcolors and @vecpeng for making this update possible.
v2.23.0
🚀 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.
v2.22.0
v2.21.0
🚀 New
- Add IP ranges support to config.TrustedProxies (#1602)
https://docs.gofiber.io/api/fiber#config - Add sliding window as option for limiter middleware (#1580)
https://docs.gofiber.io/api/middleware/limiter#sliding-window
🧹 Updates
- Update fasthttp from v1.29.0 to v1.31.0 (#1603)
🐛 Fixes
- Session Id immutable (#1601)
- Prevent panic on GetTrimmedParam (#1593)
- ParseVendorSpecificContentType for dart content type (#1594)
- Remove
Test_Limiter_Cheat
test (#1595)
📚 Documentation
- Cache Middleware - Fix comment (#1597)
- Etag README.md (#1584)
- Fix example encoding issue in READMD.md of logger middle… (#1576)
- Fix "Signaures" (expect "Signatures") word in middleware/encryptcookie/README.md (#1577)
Thank you @Ci-Jie, @Gusted, @MiWeiss, @alibaraneser and @ivankprod for making this update possible.