gofiber/fiber (github.com/gofiber/fiber/v2)
### [`v2.49.1`](https://togithub.com/gofiber/fiber/releases/tag/v2.49.1)
[Compare Source](https://togithub.com/gofiber/fiber/compare/v2.49.0...v2.49.1)
#### π§Ή Updates
- Bump github.com/valyala/fasthttp from 1.48.0 to 1.49.0 ([#2615](https://togithub.com/gofiber/fiber/issues/2615))
#### π Fixes
- Rollback changes to go.mod file ([#2614](https://togithub.com/gofiber/fiber/issues/2614))
#### π Documentation
- Add Polish translation - README_pl.md ([#2613](https://togithub.com/gofiber/fiber/issues/2613))
- Update README_ko.md ([#2605](https://togithub.com/gofiber/fiber/issues/2605))
**Full Changelog**: https://github.com/gofiber/fiber/compare/v2.49.0...v2.49.1
Thank you [@KompocikDot](https://togithub.com/KompocikDot), [@LimJiAn](https://togithub.com/LimJiAn) and [@gaby](https://togithub.com/gaby) for making this update possible.
### [`v2.49.0`](https://togithub.com/gofiber/fiber/releases/tag/v2.49.0)
[Compare Source](https://togithub.com/gofiber/fiber/compare/v2.48.0...v2.49.0)
#### β Breaking Changes
- Add config to enable splitting by comma in parsers ([#2560](https://togithub.com/gofiber/fiber/issues/2560))
https://docs.gofiber.io/api/fiber#config
> EnableSplittingOnParsers splits the query/body/header parameters by comma when it's true (default: false).
>
> For example, you can use it to parse multiple values from a query parameter like this:
> /api?foo=bar,baz == foo\[]=bar\&foo\[]=baz
#### π New
- Add custom data property to favicon middleware config ([#2579](https://togithub.com/gofiber/fiber/issues/2579))
https://docs.gofiber.io/api/middleware/favicon#config
> This allows the user to use //go:embed flags to load favicon data during build-time, and supply it to the middleware instead of reading the file every time the application starts.
#### π§Ή Updates
- Middleware/logger: Latency match gin-gonic/gin formatter ([#2569](https://togithub.com/gofiber/fiber/issues/2569))
- Middleware/filesystem: Refactor: use `errors.Is` instead of `os.IsNotExist` ([#2558](https://togithub.com/gofiber/fiber/issues/2558))
- Use Global vars instead of local vars for isLocalHost ([#2595](https://togithub.com/gofiber/fiber/issues/2595))
- Remove redundant nil check ([#2584](https://togithub.com/gofiber/fiber/issues/2584))
- Bump github.com/mattn/go-runewidth from 0.0.14 to 0.0.15 ([#2551](https://togithub.com/gofiber/fiber/issues/2551))
- Bump github.com/google/uuid from 1.3.0 to 1.3.1 ([#2592](https://togithub.com/gofiber/fiber/issues/2592))
- Bump golang.org/x/sys from 0.10.0 to 0.11.0 ([#2563](https://togithub.com/gofiber/fiber/issues/2563))
- Add go 1.21 to ci and readmes ([#2588](https://togithub.com/gofiber/fiber/issues/2588))
#### π Fixes
- Middleware/logger: Default latency output format ([#2580](https://togithub.com/gofiber/fiber/issues/2580))
- Decompress request body when multi Content-Encoding sent on request headers ([#2555](https://togithub.com/gofiber/fiber/issues/2555))
#### π Documentation
- Fix wrong JSON docs ([#2554](https://togithub.com/gofiber/fiber/issues/2554))
- Update io/ioutil package to io package ([#2589](https://togithub.com/gofiber/fiber/issues/2589))
- Replace EG flag with the proper and smaller SVG ([#2585](https://togithub.com/gofiber/fiber/issues/2585))
- Added Egyptian Arabic readme file ([#2565](https://togithub.com/gofiber/fiber/issues/2565))
- Translate README to Portuguese ([#2567](https://togithub.com/gofiber/fiber/issues/2567))
- Improve \*fiber.Client section ([#2553](https://togithub.com/gofiber/fiber/issues/2553))
- Improved the config section of the middleware readmeΒ΄s ([#2552](https://togithub.com/gofiber/fiber/issues/2552))
- Added documentation about ctx Fresh ([#2549](https://togithub.com/gofiber/fiber/issues/2549))
- Update intro.md ([#2550](https://togithub.com/gofiber/fiber/issues/2550))
- Fixed link to slim template engine ([#2547](https://togithub.com/gofiber/fiber/issues/2547))
**Full Changelog**: https://github.com/gofiber/fiber/compare/v2.48.0...v2.49.0
Thank you [@Jictyvoo](https://togithub.com/Jictyvoo), [@Juneezee](https://togithub.com/Juneezee), [@Kirari04](https://togithub.com/Kirari04), [@LimJiAn](https://togithub.com/LimJiAn), [@PassTheMayo](https://togithub.com/PassTheMayo), [@andersonmiranda-com](https://togithub.com/andersonmiranda-com), [@bigpreshy](https://togithub.com/bigpreshy), [@efectn](https://togithub.com/efectn), [@renanbastos93](https://togithub.com/renanbastos93), [@scandar](https://togithub.com/scandar), [@sixcolors](https://togithub.com/sixcolors) and [@stefanb](https://togithub.com/stefanb) for making this update possible.
### [`v2.48.0`](https://togithub.com/gofiber/fiber/releases/tag/v2.48.0)
[Compare Source](https://togithub.com/gofiber/fiber/compare/v2.47.0...v2.48.0)
#### π New
- Add ability to print custom message on startup ([#2491](https://togithub.com/gofiber/fiber/issues/2491))
https://docs.gofiber.io/guide/hooks#onlisten
```go
app := fiber.New(fiber.Config{
DisableStartupMessage: true,
})
app.Hooks().OnListen(func(listenData fiber.ListenData) error {
if fiber.IsChild() {
return nil
}
scheme := "http"
if data.TLS {
scheme = "https"
}
log.Println(scheme + "://" + listenData.Host + ":" + listenData.Port)
return nil
})
app.Listen(":5000")
```
- Add Logger interface and fiberlog ([#2499](https://togithub.com/gofiber/fiber/issues/2499))
https://docs.gofiber.io/api/log
#### π§Ή Updates
- Dictpool is not completely gone ([#2540](https://togithub.com/gofiber/fiber/issues/2540))
- Bump golang.org/x/sys from 0.9.0 to 0.10.0 ([#2530](https://togithub.com/gofiber/fiber/issues/2530))
- Bump github.com/valyala/fasthttp from 1.47.0 to 1.48.0 ([#2511](https://togithub.com/gofiber/fiber/issues/2511))
#### π Fixes
- Middleware/logger: Default logger color behaviour ([#2513](https://togithub.com/gofiber/fiber/issues/2513))
#### π Documentation
- Fix link ([#2542](https://togithub.com/gofiber/fiber/issues/2542))
- Fix bad documentation on queries function ([#2522](https://togithub.com/gofiber/fiber/issues/2522))
- Fix validation-guide ([#2517](https://togithub.com/gofiber/fiber/issues/2517))
- Fix bad documentation on queries function ([#2522](https://togithub.com/gofiber/fiber/issues/2522))
- Add a warning on security implications when using X-Forwarded-For improperly ([#2520](https://togithub.com/gofiber/fiber/issues/2520))
- Fix typo ([#2518](https://togithub.com/gofiber/fiber/issues/2518))
- Typo in ctx.md ([#2516](https://togithub.com/gofiber/fiber/issues/2516))
- Fix comment in client.go ([#2514](https://togithub.com/gofiber/fiber/issues/2514))
- Fix docs api fiber custom config ([#2510](https://togithub.com/gofiber/fiber/issues/2510))
**Full Changelog**: https://github.com/gofiber/fiber/compare/v2.47.0...v2.48.0
Thank you [@ForAeons](https://togithub.com/ForAeons), [@RHeynsZa](https://togithub.com/RHeynsZa), [@Saman-Safaei](https://togithub.com/Saman-Safaei), [@Skyenought](https://togithub.com/Skyenought), [@Z3NTL3](https://togithub.com/Z3NTL3), [@andre-dasilva](https://togithub.com/andre-dasilva), [@cmd777](https://togithub.com/cmd777), [@dozheiny](https://togithub.com/dozheiny), [@efectn](https://togithub.com/efectn), [@f1rstmehul](https://togithub.com/f1rstmehul), [@gaby](https://togithub.com/gaby), [@itcuihao](https://togithub.com/itcuihao) and [@mo1ein](https://togithub.com/mo1ein) for making this update possible.
### [`v2.47.0`](https://togithub.com/gofiber/fiber/releases/tag/v2.47.0)
[Compare Source](https://togithub.com/gofiber/fiber/compare/v2.46.0...v2.47.0)
#### π New
- Add queries function ([#2475](https://togithub.com/gofiber/fiber/issues/2475))
https://docs.gofiber.io/api/ctx#queries
```go
// 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://togithub.com/gofiber/fiber/issues/2493))
https://docs.gofiber.io/api/middleware/logger#config
```go
// Disable colors when outputting to default format
app.Use(logger.New(logger.Config{
DisableColors: true,
}))
```
#### π§Ή Updates
- Update getOffer to consider quality and specificity ([#2486](https://togithub.com/gofiber/fiber/issues/2486))
- Use c.app.getString instead of string(...) ([#2489](https://togithub.com/gofiber/fiber/issues/2489))
- Bump github.com/mattn/go-isatty from 0.0.18 to 0.0.19 ([#2474](https://togithub.com/gofiber/fiber/issues/2474))
- Bump golang.org/x/sys from 0.8.0 to 0.9.0 ([#2508](https://togithub.com/gofiber/fiber/issues/2508))
#### π Fixes
- Middleware/limiter: Fix Sliding Window limiter when SkipSuccessfulRequests/SkipFailedRequests is used. ([#2484](https://togithub.com/gofiber/fiber/issues/2484))
- Fix onListen hooks when they are used with prefork mode ([#2504](https://togithub.com/gofiber/fiber/issues/2504))
- Fix middleware naming and returned values of group methods ([#2477](https://togithub.com/gofiber/fiber/issues/2477))
- Treat case for possible timer memory leak ([#2488](https://togithub.com/gofiber/fiber/issues/2488))
- Reset terminal colors after print routes ([#2481](https://togithub.com/gofiber/fiber/issues/2481))
#### π Documentation
- Update version of html template ([#2505](https://togithub.com/gofiber/fiber/issues/2505))
- Translate README_fa.md ([#2496](https://togithub.com/gofiber/fiber/issues/2496))
- Correcting a syntax error in the README ([#2473](https://togithub.com/gofiber/fiber/issues/2473))
**Full Changelog**: https://github.com/gofiber/fiber/compare/v2.46.0...v2.47.0
Thank you [@Kamandlou](https://togithub.com/Kamandlou), [@Satont](https://togithub.com/Satont), [@Skyenought](https://togithub.com/Skyenought), [@cmd777](https://togithub.com/cmd777), [@dozheiny](https://togithub.com/dozheiny), [@efectn](https://togithub.com/efectn), [@gaby](https://togithub.com/gaby), [@kaazedev](https://togithub.com/kaazedev), [@luk3skyw4lker](https://togithub.com/luk3skyw4lker), [@obakumen](https://togithub.com/obakumen), [@sixcolors](https://togithub.com/sixcolors) and [@ytsruh](https://togithub.com/ytsruh) for making this update possible.
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 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, check this box
This PR has been generated by Mend Renovate. View repository job log here.
This PR contains the following updates:
v2.46.0
->v2.49.1
Release Notes
gofiber/fiber (github.com/gofiber/fiber/v2)
### [`v2.49.1`](https://togithub.com/gofiber/fiber/releases/tag/v2.49.1) [Compare Source](https://togithub.com/gofiber/fiber/compare/v2.49.0...v2.49.1) #### π§Ή Updates - Bump github.com/valyala/fasthttp from 1.48.0 to 1.49.0 ([#2615](https://togithub.com/gofiber/fiber/issues/2615)) #### π Fixes - Rollback changes to go.mod file ([#2614](https://togithub.com/gofiber/fiber/issues/2614)) #### π Documentation - Add Polish translation - README_pl.md ([#2613](https://togithub.com/gofiber/fiber/issues/2613)) - Update README_ko.md ([#2605](https://togithub.com/gofiber/fiber/issues/2605)) **Full Changelog**: https://github.com/gofiber/fiber/compare/v2.49.0...v2.49.1 Thank you [@KompocikDot](https://togithub.com/KompocikDot), [@LimJiAn](https://togithub.com/LimJiAn) and [@gaby](https://togithub.com/gaby) for making this update possible. ### [`v2.49.0`](https://togithub.com/gofiber/fiber/releases/tag/v2.49.0) [Compare Source](https://togithub.com/gofiber/fiber/compare/v2.48.0...v2.49.0) #### β Breaking Changes - Add config to enable splitting by comma in parsers ([#2560](https://togithub.com/gofiber/fiber/issues/2560)) https://docs.gofiber.io/api/fiber#config > EnableSplittingOnParsers splits the query/body/header parameters by comma when it's true (default: false). > > For example, you can use it to parse multiple values from a query parameter like this: > /api?foo=bar,baz == foo\[]=bar\&foo\[]=baz #### π New - Add custom data property to favicon middleware config ([#2579](https://togithub.com/gofiber/fiber/issues/2579)) https://docs.gofiber.io/api/middleware/favicon#config > This allows the user to use //go:embed flags to load favicon data during build-time, and supply it to the middleware instead of reading the file every time the application starts. #### π§Ή Updates - Middleware/logger: Latency match gin-gonic/gin formatter ([#2569](https://togithub.com/gofiber/fiber/issues/2569)) - Middleware/filesystem: Refactor: use `errors.Is` instead of `os.IsNotExist` ([#2558](https://togithub.com/gofiber/fiber/issues/2558)) - Use Global vars instead of local vars for isLocalHost ([#2595](https://togithub.com/gofiber/fiber/issues/2595)) - Remove redundant nil check ([#2584](https://togithub.com/gofiber/fiber/issues/2584)) - Bump github.com/mattn/go-runewidth from 0.0.14 to 0.0.15 ([#2551](https://togithub.com/gofiber/fiber/issues/2551)) - Bump github.com/google/uuid from 1.3.0 to 1.3.1 ([#2592](https://togithub.com/gofiber/fiber/issues/2592)) - Bump golang.org/x/sys from 0.10.0 to 0.11.0 ([#2563](https://togithub.com/gofiber/fiber/issues/2563)) - Add go 1.21 to ci and readmes ([#2588](https://togithub.com/gofiber/fiber/issues/2588)) #### π Fixes - Middleware/logger: Default latency output format ([#2580](https://togithub.com/gofiber/fiber/issues/2580)) - Decompress request body when multi Content-Encoding sent on request headers ([#2555](https://togithub.com/gofiber/fiber/issues/2555)) #### π Documentation - Fix wrong JSON docs ([#2554](https://togithub.com/gofiber/fiber/issues/2554)) - Update io/ioutil package to io package ([#2589](https://togithub.com/gofiber/fiber/issues/2589)) - Replace EG flag with the proper and smaller SVG ([#2585](https://togithub.com/gofiber/fiber/issues/2585)) - Added Egyptian Arabic readme file ([#2565](https://togithub.com/gofiber/fiber/issues/2565)) - Translate README to Portuguese ([#2567](https://togithub.com/gofiber/fiber/issues/2567)) - Improve \*fiber.Client section ([#2553](https://togithub.com/gofiber/fiber/issues/2553)) - Improved the config section of the middleware readmeΒ΄s ([#2552](https://togithub.com/gofiber/fiber/issues/2552)) - Added documentation about ctx Fresh ([#2549](https://togithub.com/gofiber/fiber/issues/2549)) - Update intro.md ([#2550](https://togithub.com/gofiber/fiber/issues/2550)) - Fixed link to slim template engine ([#2547](https://togithub.com/gofiber/fiber/issues/2547)) **Full Changelog**: https://github.com/gofiber/fiber/compare/v2.48.0...v2.49.0 Thank you [@Jictyvoo](https://togithub.com/Jictyvoo), [@Juneezee](https://togithub.com/Juneezee), [@Kirari04](https://togithub.com/Kirari04), [@LimJiAn](https://togithub.com/LimJiAn), [@PassTheMayo](https://togithub.com/PassTheMayo), [@andersonmiranda-com](https://togithub.com/andersonmiranda-com), [@bigpreshy](https://togithub.com/bigpreshy), [@efectn](https://togithub.com/efectn), [@renanbastos93](https://togithub.com/renanbastos93), [@scandar](https://togithub.com/scandar), [@sixcolors](https://togithub.com/sixcolors) and [@stefanb](https://togithub.com/stefanb) for making this update possible. ### [`v2.48.0`](https://togithub.com/gofiber/fiber/releases/tag/v2.48.0) [Compare Source](https://togithub.com/gofiber/fiber/compare/v2.47.0...v2.48.0) #### π New - Add ability to print custom message on startup ([#2491](https://togithub.com/gofiber/fiber/issues/2491)) https://docs.gofiber.io/guide/hooks#onlisten ```go app := fiber.New(fiber.Config{ DisableStartupMessage: true, }) app.Hooks().OnListen(func(listenData fiber.ListenData) error { if fiber.IsChild() { return nil } scheme := "http" if data.TLS { scheme = "https" } log.Println(scheme + "://" + listenData.Host + ":" + listenData.Port) return nil }) app.Listen(":5000") ``` - Add Logger interface and fiberlog ([#2499](https://togithub.com/gofiber/fiber/issues/2499)) https://docs.gofiber.io/api/log #### π§Ή Updates - Dictpool is not completely gone ([#2540](https://togithub.com/gofiber/fiber/issues/2540)) - Bump golang.org/x/sys from 0.9.0 to 0.10.0 ([#2530](https://togithub.com/gofiber/fiber/issues/2530)) - Bump github.com/valyala/fasthttp from 1.47.0 to 1.48.0 ([#2511](https://togithub.com/gofiber/fiber/issues/2511)) #### π Fixes - Middleware/logger: Default logger color behaviour ([#2513](https://togithub.com/gofiber/fiber/issues/2513)) #### π Documentation - Fix link ([#2542](https://togithub.com/gofiber/fiber/issues/2542)) - Fix bad documentation on queries function ([#2522](https://togithub.com/gofiber/fiber/issues/2522)) - Fix validation-guide ([#2517](https://togithub.com/gofiber/fiber/issues/2517)) - Fix bad documentation on queries function ([#2522](https://togithub.com/gofiber/fiber/issues/2522)) - Add a warning on security implications when using X-Forwarded-For improperly ([#2520](https://togithub.com/gofiber/fiber/issues/2520)) - Fix typo ([#2518](https://togithub.com/gofiber/fiber/issues/2518)) - Typo in ctx.md ([#2516](https://togithub.com/gofiber/fiber/issues/2516)) - Fix comment in client.go ([#2514](https://togithub.com/gofiber/fiber/issues/2514)) - Fix docs api fiber custom config ([#2510](https://togithub.com/gofiber/fiber/issues/2510)) **Full Changelog**: https://github.com/gofiber/fiber/compare/v2.47.0...v2.48.0 Thank you [@ForAeons](https://togithub.com/ForAeons), [@RHeynsZa](https://togithub.com/RHeynsZa), [@Saman-Safaei](https://togithub.com/Saman-Safaei), [@Skyenought](https://togithub.com/Skyenought), [@Z3NTL3](https://togithub.com/Z3NTL3), [@andre-dasilva](https://togithub.com/andre-dasilva), [@cmd777](https://togithub.com/cmd777), [@dozheiny](https://togithub.com/dozheiny), [@efectn](https://togithub.com/efectn), [@f1rstmehul](https://togithub.com/f1rstmehul), [@gaby](https://togithub.com/gaby), [@itcuihao](https://togithub.com/itcuihao) and [@mo1ein](https://togithub.com/mo1ein) for making this update possible. ### [`v2.47.0`](https://togithub.com/gofiber/fiber/releases/tag/v2.47.0) [Compare Source](https://togithub.com/gofiber/fiber/compare/v2.46.0...v2.47.0) #### π New - Add queries function ([#2475](https://togithub.com/gofiber/fiber/issues/2475)) https://docs.gofiber.io/api/ctx#queries ```go // 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://togithub.com/gofiber/fiber/issues/2493)) https://docs.gofiber.io/api/middleware/logger#config ```go // Disable colors when outputting to default format app.Use(logger.New(logger.Config{ DisableColors: true, })) ``` #### π§Ή Updates - Update getOffer to consider quality and specificity ([#2486](https://togithub.com/gofiber/fiber/issues/2486)) - Use c.app.getString instead of string(...) ([#2489](https://togithub.com/gofiber/fiber/issues/2489)) - Bump github.com/mattn/go-isatty from 0.0.18 to 0.0.19 ([#2474](https://togithub.com/gofiber/fiber/issues/2474)) - Bump golang.org/x/sys from 0.8.0 to 0.9.0 ([#2508](https://togithub.com/gofiber/fiber/issues/2508)) #### π Fixes - Middleware/limiter: Fix Sliding Window limiter when SkipSuccessfulRequests/SkipFailedRequests is used. ([#2484](https://togithub.com/gofiber/fiber/issues/2484)) - Fix onListen hooks when they are used with prefork mode ([#2504](https://togithub.com/gofiber/fiber/issues/2504)) - Fix middleware naming and returned values of group methods ([#2477](https://togithub.com/gofiber/fiber/issues/2477)) - Treat case for possible timer memory leak ([#2488](https://togithub.com/gofiber/fiber/issues/2488)) - Reset terminal colors after print routes ([#2481](https://togithub.com/gofiber/fiber/issues/2481)) #### π Documentation - Update version of html template ([#2505](https://togithub.com/gofiber/fiber/issues/2505)) - Translate README_fa.md ([#2496](https://togithub.com/gofiber/fiber/issues/2496)) - Correcting a syntax error in the README ([#2473](https://togithub.com/gofiber/fiber/issues/2473)) **Full Changelog**: https://github.com/gofiber/fiber/compare/v2.46.0...v2.47.0 Thank you [@Kamandlou](https://togithub.com/Kamandlou), [@Satont](https://togithub.com/Satont), [@Skyenought](https://togithub.com/Skyenought), [@cmd777](https://togithub.com/cmd777), [@dozheiny](https://togithub.com/dozheiny), [@efectn](https://togithub.com/efectn), [@gaby](https://togithub.com/gaby), [@kaazedev](https://togithub.com/kaazedev), [@luk3skyw4lker](https://togithub.com/luk3skyw4lker), [@obakumen](https://togithub.com/obakumen), [@sixcolors](https://togithub.com/sixcolors) and [@ytsruh](https://togithub.com/ytsruh) for making this update possible.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 becomes conflicted, or you tick the rebase/retry checkbox.
π Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.