All Versions
14
Latest Version
Avg Release Cycle
1 days
Latest Release
49 days ago

Changelog History
Page 1

  • v2.0.0

    February 21, 2020

    Fiber v2 #92
    ➕ Add multiple handlers inside routes & groups.

    func main() { // ... app.Get("/", middleware(), middleware(), handler()) }
    

    Pass optional settings in the app initiation.

    func main() { app := fiber.New(&fiber.Settings{ Prefork: true, CaseSensitive: true, StrictRouting: true, ServerHeader: "Go", // etc... }) }
    

    Chain groups

    func main() { app := fiber.New() api := app.Group("/api", cors()) // /apiv1 := api.Group("/v1", mysql()) // /api/v1 v1.Get("/list", handler) // /api/v1/list v1.Get("/user", handler) // /api/v1/userv2 := api.Group("/v2", mongodb()) // /api/v2 v2.Get("/list", handler) // /api/v2/list v2.Get("/user", handler) // /api/v2/user app.Listen(3000) }
    

    Recover from panics

    func main() { app := fiber.New() app.Get("/", func(c \*fiber.Ctx) { panic("Something went wrong!") }) app.Recover(func(c \*fiber.Ctx) { c.Status(500).Send(c.Error()) // =\> 500 "Something went wrong!" }) app.Listen(3000) }
    

    👍 Websocket support using gorilla *Conn

    func main() { app := fiber.New() app.WebSocket("/ws/:name", func(c \*fiber.Conn) { log.Println(c.Params("name")) for { mt, msg, err := c.ReadMessage() if err != nil { log.Println("read:", err) break } log.Printf("recv: %s", msg) err = c.WriteMessage(mt, msg) if err != nil { log.Println("write:", err) break } } }) // ws://localhost:3000/ws/john app.Listen(3000) }
    

    🆕 New features
    📜 ctx.BodyParser / https://fiber.wiki/context#bodyparser
    ctx.Error / https://fiber.wiki/context#error
    ctx.Next / https://fiber.wiki/context#next
    ctx.Render / https://fiber.wiki/context#render

    app.New / https://fiber.wiki/application#settings
    app.Recover / https://fiber.wiki/application#recover
    app.Group / https://fiber.wiki/application#group
    🍱 🎉 app.WebSocket / https://fiber.wiki/application#websocket
    app.Settings / https://fiber.wiki/application#settings

    🗄 Deprecated
    ctx.BasicAuth
    ctx.Json
    ctx.JsonBytes
    ctx.JSONBytes
    ctx.JsonString
    ctx.JSONString
    ctx.Xml
    ctx.XML

    app.Prefork
    app.Engine
    app.Banner

  • v1.7.0

    February 16, 2020

    Preparing Fiber for v2

  • v1.6.1

    February 16, 2020

    ➕ Add deprecated messages to un-used functions going towards v2

  • v1.5.0

    February 12, 2020
    • ➕ Add Recover & Next(err ...error) & c.Error
      #128
  • v1.4.4

    February 12, 2020
    • ♻️ Refactor root directory
    • ♻️ Refactor code
    • 🐎 Faster performance on static handlers
  • v1.4.3

    February 11, 2020
    • 🛠 Fix bug in BodyParser
    • ➕ Add 5 languages to Documentation
    • Minor patches
    • ➕ Add more tests
    • 🛠 Fix colors on windows
  • v1.4.2

    February 10, 2020

    ➕ Add grouping #92

  • v1.4.1

    February 10, 2020
  • v1.4.0

    February 06, 2020