v2.47.0
🚀 New
- Add queries function (#2475)
https://docs.gofiber.io/api/ctx#queries
// GET /api/posts?filters.author.name=John&filters.category.name=Technology
app.Get("/", func(c *fiber.Ctx) error {
m := c.Queries()
m["filters.author.name"] // John
m["filters.category.name"] // Technology
})
- Middleware/logger: Add DisableColors to set the default output format (#2493)
https://docs.gofiber.io/api/middleware/logger#config
// Disable colors when outputting to default format
app.Use(logger.New(logger.Config{
DisableColors: true,
}))
🧹 Updates
- Update getOffer to consider quality and specificity (#2486)
- Use c.app.getString instead of string(...) (#2489)
- Bump github.com/mattn/go-isatty from 0.0.18 to 0.0.19 (#2474)
- Bump golang.org/x/sys from 0.8.0 to 0.9.0 (#2508)
🐛 Fixes
- Middleware/limiter: Fix Sliding Window limiter when SkipSuccessfulRequests/SkipFailedRequests is used. (#2484)
- Fix onListen hooks when they are used with prefork mode (#2504)
- Fix middleware naming and returned values of group methods (#2477)
- Treat case for possible timer memory leak (#2488)
- Reset terminal colors after print routes (#2481)
📚 Documentation
- Update version of html template (#2505)
- Translate README_fa.md (#2496)
- Correcting a syntax error in the README (#2473)
Full Changelog: v2.46.0...v2.47.0
Thank you @Kamandlou, @Satont, @Skyenought, @cmd777, @dozheiny, @efectn, @gaby, @kaazedev, @luk3skyw4lker, @obakumen, @sixcolors and @ytsruh for making this update possible.