Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🚀 v1.9.x changelog #323

Closed
Fenny opened this issue Apr 28, 2020 · 0 comments
Closed

🚀 v1.9.x changelog #323

Fenny opened this issue Apr 28, 2020 · 0 comments
Assignees

Comments

@Fenny
Copy link
Member

Fenny commented Apr 28, 2020

🚀 Fiber v1.9.7

🔥 New

  • app.Use now supports /:params & /:optionals? inside the prefix path.
app.Use("/api/:method", func(c *fiber.Ctx) {
  if c.Params("method") == "register" {
    c.Next()
  }
})
app.Post("/api/register/user, handler)

🩹 Fixes

  • Remove some old comments and debugging code
  • c.Append(key, ...values) sometimes added duplicates on case-sensitive values

🧬 Official Middlewares

🌱 Third Party Middlewares

🧹 Updates

  • Fiber docs are 100% translated in Russian & Chinese
  • Less code by replacing some obvious if / else logic
  • Added more tests & benchmarks
  • Add new supporters to README's
  • Add new media articles to README's
  • Improved some Ctx methods
Ctx_Cookie             5708793    211 ns/op    48 B/op   5 allocs/op
Ctx_Cookie            11542256    102 ns/op     0 B/op   0 allocs/op 

Ctx_XHR               13073632     89 ns/op    16 B/op   1 allocs/op
Ctx_XHR               17396901     66 ns/op     0 B/op   0 allocs/op

Ctx_Links              3916314    316 ns/op   320 B/op   4 allocs/op
Ctx_Links              7542226    157 ns/op   112 B/op   1 allocs/op

Ctx_Vary               6743277    170 ns/op     8 B/op   1 allocs/op
Ctx_Vary              10687052    108 ns/op     8 B/op   1 allocs/op

Ctx_JSONP              2313968    504 ns/op   120 B/op   5 allocs/op
Ctx_JSONP              2719581    440 ns/op    80 B/op   3 allocs/op

Ctx_Append             1686417    704 ns/op    64 B/op   6 allocs/op
Ctx_Append             2321828    518 ns/op    16 B/op   3 allocs/op

Ctx_Accepts            5355220    215 ns/op    48 B/op   1 allocs/op
Ctx_Accepts            6461912    180 ns/op    48 B/op   1 allocs/op

Ctx_AcceptsCharsets    8104269    152 ns/op    32 B/op   1 allocs/op
Ctx_AcceptsCharsets    9477771    126 ns/op    32 B/op   1 allocs/op

Ctx_AcceptsEncodings   6762634    179 ns/op    48 B/op   1 allocs/op
Ctx_AcceptsEncodings   7804028    155 ns/op    48 B/op   1 allocs/op

Ctx_AcceptsLanguages   6358273    189 ns/op    67 B/op   1 allocs/op
Ctx_AcceptsLanguages   7458234    137 ns/op    67 B/op   1 allocs/op

============================================

🚀 Fiber v1.9.6

Special thanks to @renanbastos93 & @ReneWerner87 for optimizing the current router.
Help use translate our API documentation by clicking here

🔥 New

  • AcquireCtx / ReleaseCtx
    The Ctx pool is now accessible for third-party packages
  • Fiber docs merged Russian translations 84%
  • Fiber docs merged Spanish translations 65%
  • Fiber docs merged French translations 40%
  • Fiber docs merged German translations 32%
  • Fiber docs merged Portuguese translations 24%

🩹 Fixes

  • Hotfix for interpolated params in nested routes 🐞 Nested routing not working, id interpolated incorrectly #354
  • Some Ctx methods didn't work correctly when called without an *App pointer.
  • ctx.Vary sometimes added duplicates to the response header
  • Improved router by ditching regexp and increased performance by 817% without allocations.
// Tested with 350 github API routes
Benchmark_Router_OLD-4      614   2467460 ns/op   68902 B/op   600 allocs/op
Benchmark_Router_NEW-4     3429    302033 ns/op       0 B/op     0 allocs/op

🧹 Updates

  • Add context benchmarks
  • Remove some unnecessary functions from utils
  • Add router & param test cases
  • Add new coffee supporters to readme
  • Add third party middlewares to readme
  • Add more comments to source code
  • Cleanup some old helper functions

🧬 Middleware

============================================

🚀 Fiber v1.9.3

Special thanks to @monzarrugh, @renanbastos93, @glaucia86, @bestgopher, @ofirrock, @jozsefsallai, @thomasvvugt, @elliotforbes, @Khaibin, @tianhongw, @arsmn, @da-z and everyone else who helped contribute to make this tag possible.

🔥 New

🧹 Updates

🧬 Middleware

🩹 Fixes

@Fenny Fenny closed this as completed Apr 28, 2020
@Fenny Fenny pinned this issue Apr 28, 2020
@Fenny Fenny changed the title 🔥 v1.9.3 changelog 🔥 v1.9.x changelog May 11, 2020
@Fenny Fenny changed the title 🔥 v1.9.x changelog 🚀 v1.9.x changelog May 11, 2020
@Fenny Fenny unpinned this issue May 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants