1
0
mirror of https://github.com/gofiber/fiber.git synced 2025-02-23 10:44:02 +00:00

76 Commits

Author SHA1 Message Date
ReneWerner87
b81126d3d7 Reduce pre allocated memory, fix Etag benchmark, cleanup unused stuff 2020-05-23 14:56:52 +02:00
Fenny
cd624101cb utils.AssertEqual
Co-Authored-By: RW <renewerner87@googlemail.com>
2020-05-23 09:25:49 +02:00
Fenny
69d24b8579 Remove parallel 2020-05-16 05:03:23 +02:00
hendratommy
d6d73f42d0
Update app_test.go (#377)
testStatus200 for PUT mistaken with CONNECT
2020-05-13 20:30:59 +02:00
Fenny
e0b13d9ca4
Update test & benchmark (#374)
Co-Authored-By: RW <renewerner87@googlemail.com>

* Add nosec for WriteByte

* test persistens for benchmark results

* Add tests & benchmark

* Update app_test.go

* Update benchmark.yml
2020-05-13 20:21:49 +02:00
Fenny
31f65aa842 Update app_test.go 2020-05-13 02:54:35 +02:00
Fenny
8bfc40a1e9 Add linter to workflows 2020-05-12 23:05:07 +02:00
Fenny
e719fa00bf
Use param support + optimizations (#361)
* Benchmark workflow

* Update router.go

* Clean root

* Add mutex

* Benchmark workflow

* Benchmark workflow
* Add mutex
* Enable benchmark tests
* Enable race testing

Co-Authored-By: ReneWerner87 <renewerner87@users.noreply.github.com>

* Benchmark Workflow

* Benchmark workflow
* Add mutex
* Enable benchmark tests
* Enable race testing

Co-Authored-By: ReneWerner87 <renewerner87@users.noreply.github.com>

* Update security workflow

* Benchmark workflow
* Add mutex
* Enable benchmark tests
* Enable race testing

Co-Authored-By: ReneWerner87 <renewerner87@users.noreply.github.com>

* Make Ctx pool accessible

- Add ctx benchmarks

* v1.9.6

* v1.9.6

Co-Authored-By: ReneWerner87 <renewerner87@googlemail.com>

* Improve context functions

* Add utils benchmarks

* Update benchmarks & tests

* Add utils tests

* New tests

* update test

* Move fastpath tests

* offer negotiation

* Cleanup

* Update Vary

Co-Authored-By: RW <renewerner87@googlemail.com>

* Optimize Append

Co-Authored-By: RW <renewerner87@googlemail.com>

* Optimize more methods

Co-Authored-By: RW <renewerner87@googlemail.com>
Co-Authored-By: Vic Shóstak <vikkyshostak@gmail.com>

* Add param support to Use

Co-Authored-By: RW <renewerner87@googlemail.com>
Co-Authored-By: Vic Shóstak <vikkyshostak@gmail.com>

* Add use_params tests

Co-Authored-By: RW <renewerner87@googlemail.com>
Co-Authored-By: Vic Shóstak <vikkyshostak@gmail.com>

* v1.9.7

Co-Authored-By: RW <renewerner87@googlemail.com>
Co-Authored-By: Vic Shóstak <vikkyshostak@gmail.com>

* Tests

Co-Authored-By: RW <renewerner87@googlemail.com>
Co-Authored-By: Vic Shóstak <vikkyshostak@gmail.com>

* v1.9.7

Co-Authored-By: RW <renewerner87@googlemail.com>
Co-Authored-By: Vic Shóstak <vikkyshostak@gmail.com>
Co-Authored-By: József Sallai <jozsef@sallai.me>
Co-Authored-By: Thomas van Vugt <thomasvvugt@users.noreply.github.com>

* Update app_test.go

Co-Authored-By: RW <renewerner87@googlemail.com>
Co-Authored-By: Vic Shóstak <vikkyshostak@gmail.com>
Co-Authored-By: József Sallai <jozsef@sallai.me>
Co-Authored-By: Thomas van Vugt <thomasvvugt@users.noreply.github.com>
Co-Authored-By: Nifty255 <nifty255@users.noreply.github.com>

* Rename argument

Co-Authored-By: RW <renewerner87@googlemail.com>

* Add nosec for WriteByte

Co-Authored-By: RW <renewerner87@googlemail.com>

* Add media article

* Update media articles

* Fix typo

Co-Authored-By: Thomas van Vugt <thomasvvugt@users.noreply.github.com>

* Fix typo

Co-authored-by: ReneWerner87 <renewerner87@users.noreply.github.com>
Co-authored-by: ReneWerner87 <renewerner87@googlemail.com>
Co-authored-by: Vic Shóstak <vikkyshostak@gmail.com>
Co-authored-by: József Sallai <jozsef@sallai.me>
Co-authored-by: Thomas van Vugt <thomasvvugt@users.noreply.github.com>
Co-authored-by: Nifty255 <nifty255@users.noreply.github.com>
2020-05-12 19:24:04 +02:00
Fenny
99f95b2561
v1.9.6 (#360)
**🚀 Fiber `v1.9.6`**

Special thanks to @renanbastos93 & @renewerner87 for optimizing the current router.
Help use translate our API documentation by [clicking here](https://crowdin.com/project/gofiber)

🔥 New
- `AcquireCtx` / `ReleaseCtx`
The Ctx pool is now accessible for third-party packages
- Fiber docs merged [Russian](https://docs.gofiber.io/v/ru/) translations **84%**
- Fiber docs merged [Spanish](https://docs.gofiber.io/v/es/) translations  **65%**
- Fiber docs merged [French](https://docs.gofiber.io/v/fr/) translations  **40%**
- Fiber docs merged [German](https://docs.gofiber.io/v/de/) translations  **32%**
- Fiber docs merged [Portuguese](https://docs.gofiber.io/v/pt/) translations  **24%**

🩹 Fixes
- Hotfix for interpolated params in nested routes https://github.com/gofiber/fiber/issues/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.
```go
// 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
- [gofiber/adaptor](https://github.com/gofiber/adaptor) `v0.0.1` Converter for net/http handlers to/from Fiber handlers
- [gofiber/session](https://github.com/gofiber/session) `v1.0.0` big improvements and support for storage providers
- [gofiber/logger](https://github.com/gofiber/logger) `v0.0.6` supports `${error}` param
- [gofiber/embed](https://github.com/gofiber/embed) `v0.0.9` minor improvements and support for directory browsing 

Co-authored-by: ReneWerner87 <renewerner87@googlemail.com>
2020-05-11 13:42:42 +02:00
Fenny
e2cc8106bb
Benchmark workflow (#351)
* Benchmark workflow
* Add mutex
* Enable benchmark tests
* Enable race testing

Co-authored-by: ReneWerner87 <renewerner87@users.noreply.github.com>
2020-05-09 15:15:34 +02:00
Fenny
e3b777bacf
🤖 v1.9.5 (#344)
* 🤖 v1.9.5

Co-authored-by: Fenny <fenny@protonmail.com>
2020-05-07 20:22:26 +02:00
Fenny
8ea25a79b9
💥 v1.9.4 (#341)
* Update router.go

Co-authored-by: Fenny <fenny@protonmail.com>
2020-05-07 19:28:21 +02:00
Fenny
0419d089e9
🧹 PR for 1.9.3 (#321)
* Add crowdin

* Update media links

* Update README_de.md

* Update README_de.md

* Update README_de.md

* Add crowdin link

* Print addr when listening

* Print addr on listening

* Add DisableStartupMessage

* Fix typo

* Update Test_BodyParser

* Support ETags

* v1.9.3
2020-04-28 21:34:34 +02:00
Fenny
4242901c92 v1.9.2 2020-04-23 00:33:36 +02:00
Fenny
673bd61fa1 BodyParser supports Query params 2020-04-13 09:01:27 +02:00
Fenny
79c378c384 v1.8.431 2020-03-31 10:03:39 +02:00
Fenny
f40d786caa v1.8.4
- Remove middleware folder
- Extend travis testing
2020-03-22 01:51:53 +01:00
Fenny
21590dffe9 v1.8.2 2020-03-04 12:30:29 +01:00
Fenny
d547d441a3 New internal router alpha 2020-03-03 12:21:34 -05:00
Fenny
bf66978a7f Fix comments 2020-02-22 17:03:30 -05:00
Fenny
1991d8db32 🎉 Official v1 Release 2020-02-21 18:07:43 +01:00
Fenny
b01e74187c v0.7.0 2020-02-21 18:06:08 +01:00
Fenny
813850c83c v2.0.0 2020-02-21 16:56:32 +01:00
Fenny
bdaac2d116 v1.7.0 2020-02-21 16:54:14 +01:00
Fenny
26ea13cac0 fix static 2020-02-21 03:54:36 +01:00
Fenny
21b77bf03e 😲 2020-02-21 01:54:50 +01:00