Skip to content

Releases: gofiber/fiber

v1.9.1

20 Apr 14:35
be2f278
Compare
Choose a tag to compare

v1.9.0

13 Apr 13:26
776fb47
Compare
Choose a tag to compare

v1.8.43

31 Mar 08:23
feb7c59
Compare
Choose a tag to compare

🩹 Fixes

  • Reset status code #250

v1.8.42

31 Mar 08:23
feb7c59
Compare
Choose a tag to compare

🧹 Updates

  • c.JSON() & c.JSONP() now serialize 35% faster.
Benchmark_jsoniter-8         2283649    645 ns/op   128 B/op  2 allocs/op
Benchmark_jsoniter_pool-8    3540309    367 ns/op    48 B/op  1 allocs/op

v1.8.41

23 Mar 05:20
0b64373
Compare
Choose a tag to compare

🔥 New

v1.8.4

23 Mar 03:03
1ff2727
Compare
Choose a tag to compare

Some old deprecated functions are now removed and template engines are moved to a separate middleware .

🔥 New

app.Static("/", "./static", fiber.Static{
  Compress:   true, // Optional, default: false
  ByteRange:  true, // Optional, default: false
  Browse:     true, // Optional, default: false
  Index:      "john.html" // Optional, default: "index.html",
})

🧹 Updates

🩹 Fixes

  • Serve index.html on root paths using Static #222 (comment)
  • 1.11.x, 1.12.x, 1.13.x, 1.14.x Go version are now also tested
  • Internal optimizations / clean-up
  • Removed unused dependencies
  • Static case sensitive mis matches #227
  • Static Update file/folder changes #221
  • Static Fix iconfont files #222 (comment)
  • Add partial comments to all functions for faster development
  • Remove unused *Conn from *Ctx struct

🗑️ Removed

🧬 Middleware

index.mustache

<html>
<head>
  <title>Template Demo</title>
</head>
<body>
  Hi, my name is {{{name}}} and im {{{age}}} years old
</body>
</html>

server.go

package main

import (
  "github.com/gofiber/fiber"
  "github.com/gofiber/template"
)

func main() {
  app := fiber.New()

  app.Settings.TemplateEngine = template.Mustache()

  app.Get("/", func(c *fiber.Ctx) {
    bind := fiber.Map{
      "name": "John",
      "age":  "35",
    }
    if err := c.Render("./index.mustache", bind); err != nil {
      panic(err)
    }
  })

  app.Listen(3000)
}

v1.8.3

14 Mar 12:05
520d2ce
Compare
Choose a tag to compare
go get -u github.com/gofiber/fiber

All future middleware will be external so we can update/add features without updating the main version.

🔥 New

🩹 Fixes

🗑️ Deprecated

  • app.WebSocket()
  • settings.Compression
  • c.Compress()
  • middleware.BasicAuth()
  • middleware.Cors()
  • middleware.Helmet()
  • middleware.Limiter()
  • middleware.Logger()
  • middleware.Recover()
  • middleware.RequestID()

v1.8.2

04 Mar 13:08
51407bb
Compare
Choose a tag to compare

go get -u github.com/gofiber/fiber/...

🔥 New

🧹 Updates

🩹 Fixes

🗑️ Deprecated

  • app.Recover()
  • settings.GETOnly
  • settings.TCPKeepalive
  • settings.MaxConnsPerIP
  • settings.ReadBufferSize
  • settings.WriteBufferSize
  • settings.ConcurrencySleep
  • settings.DisableKeepAlive
  • settings.ReduceMemoryUsage
  • settings.MaxRequestsPerConn
  • settings.TCPKeepalivePeriod

v1.8.1

01 Mar 08:27
d6f5356
Compare
Choose a tag to compare

go get -u github.com/gofiber/fiber/...

[NEW] app.Settings.Immutable / https://fiber.wiki/application#settings
[NEW] app.Settings.Compression / https://fiber.wiki/application#settings

[NEW] Ctx.Compress / https://fiber.wiki/context#compress
[NEW] Ctx.Range / https://fiber.wiki/context#range (thx @hanFengSan)

[NEW] middleware.BasicAuth / https://fiber.wiki/middleware#basicauth
[NEW] middleware.CORS / https://fiber.wiki/middleware#cors
[NEW] middleware.Limiter / https://fiber.wiki/middleware#limiter
[NEW] middleware.Logger / https://fiber.wiki/middleware#logger
[NEW] middleware.RequestID / https://fiber.wiki/middleware#requestid
[NEW] middleware.Helmet / https://fiber.wiki/middleware#helmet

[FIX] Internal optimizations

v1.8.0

27 Feb 04:34
30a8b9b
Compare
Choose a tag to compare

[NEW] app.Settings.Immutable / https://fiber.wiki/application#settings

[RENAME] Settings.ViewFolder -> Settings.TemplateFolder https://fiber.wiki/context#render
[RENAME] Settings.ViewEngine -> Settings.TemplateEngine https://fiber.wiki/context#render
[RENAME] Settings.ViewExtension -> Settings.TemplateExtension https://fiber.wiki/context#render

[UPDATE] app.METHOD(path string, handlers ...func(*Ctx)) https://fiber.wiki/application#http-methods
[UPDATE] *Cookie https://fiber.wiki/context#cookie
[UPDATE] ctx.Cookie(*Cookie) https://fiber.wiki/context#cookie
[UPDATE] Removed path params for WebSocket https://fiber.wiki/application#websocket
[UPDATE] Update websocket to v1.4.2

[FIX] Immutable values #185
[FIX] Stronger typed API #178
[FIX] Argument conflict #159
[FIX] Convert Recover error
[FIX] Bundle template dependencies
[FIX] Many internal optimizations