Releases: gofiber/fiber
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.
v2.20.2
v2.20.1
v2.20.0
🚀 New
- Support for sub fiber's error handlers (#1560)
- Add function to override form decoder setting (#1100, #1555)
https://docs.gofiber.io/api/ctx#setparserdecoder - Support logging color for custom logging formats (#1513)
- Feature: limiter middleware new skip options implemented (#1542)
https://docs.gofiber.io/api/middleware/limiter - Add one minute load avg for monitor middleware (#1530)
🧹 Updates
- Add test case for QueryParser for SetParserDecoder (#1562)
🐛 Fixes
- Register static file routing with trailing slash (#1556)
- Static file routing path rewrite. (#1538)
- Fix
c.OriginalURL()
changed afterSendFile
(#1553) - File opening path and directory browsing path of filesystem (#1547)
📚 Documentation
- Update Spanish documentation (#1554)
- Fix language mistakes in Turkish (#1552)
- Translated some sentences for ja-version (#1551)
- Update README with elastic/apmfiber middleware (#1540)
Thank you @Perniciosius, @unickorn, @aliereno, @amalshaji, @efectn, @fufuok, @ivanvc, @josebalius, @ppmasa8 and @rockcreation7 for making this update possible.
v2.19.0
🚀 New
- Add next support for Monitor middleware. (#1527)
🐛 Fixes
- Get unexpected results from cache #1529 (#1531)
- Fix Mutability issue of UserContext in fiber.Ctx (#1522)
- Corrects ipv6 loopback ip shown on UI (#1517)
📚 Documentation
- fixed translation issues and translate more area in turkish readme (#1525)
- Translate
External Middleware
section of README to Chinese. (#1523) - Add Chinese translation for internal middleware (#1511)
- Translate
Limitations
section of README to Chinese (#1510) - Translated limitation section (#1509)
- Add Limitations section to README (#1508)
Thank you @Ja7ad, @lynicis, @Thammachart, @ZACHSTRIVES, @efectn, @hi019, @j178, @techytoes and @ut-zero for making this update possible.