Releases: gofiber/fiber
Releases · gofiber/fiber
v1.14.4
v1.14.3
v1.14.2
v1.14.1
v1.13.3
⚠ Deprecated
- Both app & group route registers will finally return the long-promised Router interface to enable chaining and passing groups to separate functions. -- #641 @ReneWerner87 @kiyonlin @Fenny @thomasvvugt @koddr
// Old signature
func (app *App) Get(path string, handlers ...Handler) *Route {}
// New signature
func (app *App) Get(path string, handlers ...Handler) Router {}
app.Routes()
will no longer be supported, to access routes from the stack, please use app.Stack()Name
is removed from the Route struct, did had no more purpose after we decided to compress our router stack in #651
🔥 New
- Add access to original router stack using app.Stack() #660 @Fenny @ReneWerner87
- Add
TimeFormat
tomiddleware.Logger
#652 #654 @kallydev @Fenny
🧹 Updates
- Allow route method chaining -- #641 @ReneWerner87
- Update supporter list -- #645 @Fenny
- Add Pull Request template #656 @Fenny
- Sync method metadata in routes with actual HTTP method #661 @ReneWerner87 @Fenny
🚀 Improvements
- Compress router stack #651 @ReneWerner87 @kiyonlin
- Improve ctx.Is #657 @ReneWerner87
- Improve ctx.BodyParser #659 @ReneWerner87
🩹 Fixes
v1.13.1
v1.13.0
Special thanks to @kiyonlin, @ReneWerner87, @thomasvvugt for their input behind the scenes!
And I want to thank all the contributors for their awesome work, this community is awesome! ❤️
🔥 New
- ctx.QueryParser() -- #585 #572 @renanbastos93
QueryParser is a method to parse query parameters into a struct.
🧹 Updates
- Bump fasthttp to
v1.15.1
-- #620 @Fenny - app.Listen will automatically listen on
tcp4
ortcp6
depending on the address input -- #633 @Fenny - StartupMessage renamed
Cores
toThreads
-- #632 @Fenny - Separate OS logic for prefork utils -- #628 @kiyonlin
- Fix data race in ctx.SendFile() -- #622 @kiyonlin
- Update Chinese readme -- #605
- Change some core values to constants -- #603 @renanbastos93
-prefork
flag is removed -- #580 @kiyonlin- Update 404 statuscode in Router to constant -- #603 @renanbastos93
- Colors for
method
,status
are supported by default inmiddleware.Logger()
-- #565 #607 #586 @YuilTripathee @Fenny
🚀 Improvements
- Improve code comments -- #593 #592 @kinbiko
- Improve test coverage to
97.5%
-- @kiyonlin - Improve ctx.BodyParser() performance -- #616 @kiyonlin
- Improve ctx.IPs() -- #612 @kiyonlin
- Improve ctx.Links() & ctx.Render() -- #626 @ReneWerner87
- Improve ctx.QueryParser() & ctx.Render() -- #610 @kiyonlin
- Improve ctx.Attachment() -- #591 @kiyonlin
- Improve ctx.JSON() -- #583 #583 @Fenny @kiyonlin
🩹 Fixes
- Escape filename -- #579 @Fenny
- Change
PPID
->PID
for master process -- #582 @kiyonlin - Kill child procs when master gets killed -- #601 @Fenny
- Fix duplicates in ctx.Append() -- #606 @ReneWerner87
- Buffer collision using ctx.Render() -- #625 #630 @kiyonlin
- Reset match flag in router-- #629 @kiyonlin
- Fix typo -- #609 @songjiayang
- Golint naming fixes -- #588 @songjiayang
v1.12.6
🔥 New
- ctx.IsChild()
A method to determine if the current process is a result of Prefork and defines as a child process, this method can be useful when Prefork is enabled. #575 @Fenny
🧹 Updates
- Response headers are not reset when ErrorHandler is triggered #562 #566 @Fenny
- Publish AWS Lambda proxy #536 @Fenny @kiyonlin
- Improve JSON response #583 @kiyonlin
- Clarify signatures in code comments where is due #570 @Fenny
- Improve
path.go
coverage #568 @kiyonlin - Improve MethodNotAllowed process #563 @ReneWerner87
- Improve middleware coverage #558 @kiyonlin
- Improve
ctx.Send
&ctx.SendBytes
performance #567 @kiyonlin
🩹 Fixes
- Escape
ctx.Attachment()
input #579 @Fenny @boolooper @abdshaleh - Respond with 405 when middleware is used #556 @Fenny @kiyonlin @ReneWerner87
- Fix incorrect static example in readme #573 @Fenny
v1.12.5
🔥 New
- ctx.Route().Params are now public #545 @zerbitx
🧹 Updates
- Improve
app.Listen
documentation #561 - Improve code coverage #558 @kiyonlin
- Emoji Commits are now default #552
- Improve PT translation #553 @fsmiamoto
- Optimize
MethodNotAllowed
process #563 @ReneWerner87
🩹 Fixes
- Respond with
405
forUse
cases #556 - Hide the
-prefork-child
flag fromflag.Usage
#522 #542 @doingodswork
v1.12.4
🧹 Updates
- c.Cookies(key string, defaultValue ...string) pass an optional default value that returns if cookie is not found #541
- c.Params(key string, defaultValue ...string) pass an optional default value that returns if param is not found #541
- c.Query(key string, defaultValue ...string) pass an optional default value that returns if query is not found #541
- Add more middleware test cases, coverage 84% #538
🩹 Fixes
- Default to 0.0.0.0 host addr if non is given ( docker had issue's with this ) #539
- Allow Config files inside the default RequestID & Compress middleware initiators #537