Eren BALCI
7cf1886df5
Fix NewErrors() and Improve NewError() ( #1728 )
...
* fix new errors
* fix tests
* removed new errors tests
* changed error message type
* fixed NewError test
* added NewErrors function
* added Test_NewErrors
* added comment line
* refactor: Sprintf changed with Sprint
2022-01-27 12:41:10 +01:00
M. Efe Çetin
a51ec9bc69
🔥 Feature: Add ReqHeaderParser. ( #1721 )
...
* Add ReqHeaderParser.
* Cleanup and tidy up parser codes.
Co-authored-by: RW <rene@gofiber.io>
* Add benchmark for ReqHeaderParser.
* Revert collectVisitAllData
Co-authored-by: RW <rene@gofiber.io>
2022-01-24 20:41:37 +01:00
M. Efe Çetin
559f59f198
Add Route() method like Chi router. ( #1713 )
2022-01-24 16:37:28 +01:00
Jesse Quinn
d411ec10d6
added HEAD method to caching ( #1730 )
...
* added HEAD method to caching
* changed key due to head and get sharing same key
* Update cache.go
- add a improvement task for later
* Update cache.go
correct comment
Co-authored-by: Jesse Quinn <jesse.quinn@zpesystems.com>
Co-authored-by: RW <rene@gofiber.io>
2022-01-24 16:36:46 +01:00
kingdevnl
82d1039416
✨ feature: Pass all locals to ctx.Render ( #1693 )
...
* ✨ feature: Pass all locals to ctx.Render
* add test case for render using locals
* Added option PassLocalsToViews to enable pass locals to render
The option PassLocalsToViews is set to disabled by default
* Added a check to see if the ctx bind already contains the value
* Added a test for ctx render with locals and binds.
2022-01-24 08:29:46 +01:00
dependabot[bot]
d59f1af9c8
Bump github.com/valyala/fasthttp from 1.31.0 to 1.32.0 ( #1700 )
...
Bumps [github.com/valyala/fasthttp](https://github.com/valyala/fasthttp ) from 1.31.0 to 1.32.0.
- [Release notes](https://github.com/valyala/fasthttp/releases )
- [Commits](https://github.com/valyala/fasthttp/compare/v1.31.0...v1.32.0 )
---
updated-dependencies:
- dependency-name: github.com/valyala/fasthttp
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
v2.25.0
2022-01-21 09:24:11 +01:00
RW
8bcce5bba6
prepare release 2.25.0
2022-01-21 09:11:38 +01:00
vecpeng
24b645c779
📝 docs: translate English to zh-TW ( #1725 )
2022-01-21 08:59:42 +01:00
Rendi Putra Pradana
2e1d425d4e
docs: translate some words to bahasa ( #1717 )
...
Translate:
download -> unduh
WebSocket support -> Mendukung WebSocket
Route Naming -> Penamaan Route
default -> bawaan
2022-01-18 09:54:19 +01:00
M. Efe Çetin
3663c70f6c
📦 Update goccy/go-json to 0.9.3. ( #1719 )
...
* Update goccy/go-json to 0.9.3.
* Remove test
2022-01-18 09:48:11 +01:00
Nick Smith
1b00264385
Fix typos in middleware ( #1714 )
...
Co-authored-by: GitHub Actions <41898282+github-actions[bot]@users.noreply.github.com>
2022-01-14 22:31:44 -05:00
M. Efe Çetin
6f34de511e
Update goccy/go-json to 0.9.1. ( #1709 )
...
* Update goccy/go-json to 0.9.1.
* fix lint error
2022-01-11 15:23:59 +01:00
vecpeng
2e697a6e9b
🐛 fix: json tag ( #1702 )
2022-01-10 14:22:44 +01:00
vecpeng
5fe95c2579
✨ feat: add function NewErrors to create multiple new errors ( #1701 )
2022-01-10 14:22:34 +01:00
amir
4f1a712498
🩹 Fix: Add csrf_
to default encrypt cookie exception ( #1631 ) ( #1698 )
2022-01-09 22:21:49 +01:00
Roj
48acc21117
Add Central Kurdish README ( #1694 )
2022-01-08 14:30:26 +01:00
fncolon
9eab0c5cac
📝 docs: fix ID translation typo ( #1691 )
...
Fix review in #1690
2022-01-07 11:32:03 +01:00
Ahmet Hakan Beşel
2c9410cb9c
Update Turkish translation ( #1689 )
2022-01-07 08:14:35 +01:00
fncolon
e964adae91
docs: tweaks README_id.md ( #1690 )
...
* translate untranslated words
* fix unconsistent translate of `project`, every project word should be `proyek` instead of `projek` or the original one `project`
* fix wrong translation of Authentication, it should be `Autentikasi` instead of `Authentikasi`
2022-01-07 07:44:07 +01:00
vecpeng
d96664dab4
📝 docs: add emoji for limitations ( #1682 )
...
* 📝 docs: add emoji for limations
* 🐛 fix: remove debug info
2022-01-01 10:15:39 +01:00
RW
8f2a841db9
prepare release 2.24.0
v2.24.0
2021-12-31 18:33:49 +01:00
hi019
eee279bdb3
Fix using IP ranges in config.TrustedProxies ( #1607 ) ( #1614 )
...
* Fix using IP ranges in config.TrustedProxies (#1607 )
* Add tests
* Remove debugging var
* Remove tests
* Update test
Co-authored-by: RW <rene@gofiber.io>
2021-12-31 18:32:39 +01:00
M. Efe Çetin
59240b5493
Add GetRespHeader, GetReqHeaders and TagReqHeaders for logger mw ( #1678 )
...
* Add GetRespHeader & GetReqHeaders methods.
* Add TagReqHeaders for logger middleware.
* Update README.md
2021-12-31 13:03:08 +01:00
M. Efe Çetin
e26ed83166
Improve printRoutesMessage ( #1681 )
2021-12-30 23:03:44 +01:00
M. Efe Çetin
894fa9db5e
fix indentions ( #1680 )
...
Fix indention for READMEs.
2021-12-30 23:02:49 +01:00
vecpeng
f98a9ba405
✨ feature: print all routes message when server starts ( #1677 )
...
* ✨ feature: print all routes message when server starts
* ✨ feature: print all routes message when server starts
* ✨ feature: print all routes message when server starts
* 🐛 fix: errors unhandled
* 🐛 fix: ignore child process and add some "-" to the table head
* 🐛 fix: add printRoutesMessage for listener and listenTLS
2021-12-30 14:13:31 +01:00
vecpeng
244d5a5450
📝 docs(zh-CN): improve Chinese tanslation ( #1679 )
2021-12-30 08:10:42 +01:00
vecpeng
ef3a689600
🐛 fix: rename handlerCount to handlersCount ( #1674 )
2021-12-29 10:26:50 +01:00
M. Efe Çetin
fbee8fb274
Add method the get registered handler count. ( #1672 )
2021-12-29 07:23:14 +01:00
Jason McNeil
59e4bf6cc5
🔧 fix(middleware/csrf): unmatched token returns nil error ( #1667 )
...
* Update csrf.go
* Update csrf_test.go
* fix(middleware/csrf): missing token return and unit test
* Update csrf_test.go
2021-12-29 02:13:20 +01:00
M. Efe Çetin
f04ddd41ff
Fix goccy/go-json for go1.18-beta1. ( #1673 )
2021-12-29 02:12:29 +01:00
vecpeng
bd19adc2c7
🔥 Feature: add function to check if request came from localhost ( #1671 )
...
* 🔥 Feature: add function to check if request came from localhost
* 🔥 Feature: add function to check if request came from localhost
2021-12-28 16:02:25 +01:00
ichx
637f0c1bba
Fix: error handler of app and its sub apps not saved when mounted in group ( #1649 )
2021-12-28 14:05:35 +01:00
M. Efe Çetin
68d3b773bc
Add route naming feature. ( #1650 )
...
* Add route naming feature.
* Update basicauth_test.go
* Fix gosec issues.
* Change RoutaName -> Name
* Fix race conditions.
* Update READMEs.
2021-12-28 14:04:04 +01:00
sangjinsu
03c9598f6e
Update README_ko.md ( #1653 )
...
translated limitation into Korean.
Co-authored-by: RW <rene@gofiber.io>
2021-12-14 13:26:21 +01:00
sangjinsu
9efd1ba687
Update README_ko.md ( #1656 )
...
I translated English into Korean.
2021-12-14 12:50:56 +01:00
vecpeng
6f46e93ae1
📚 Doc: Change some Chinese translation ( #1648 )
...
* 📚 Doc: improve Chinese translation
* 📚 Doc: improve Chinese translation
2021-12-08 08:42:53 +01:00
M. Efe Çetin
f74dd882ea
Add no-color compatibility ( #1646 )
2021-12-07 12:50:29 +01:00
wernerr
a5b2b8989b
fix middleware/session README.md
2021-12-06 13:35:47 +01:00
RW
ad98f5e807
prepare release 2.23.0
v2.23.0
2021-12-06 12:39:54 +01:00
M. Efe Çetin
10aa7f7f3b
Update goccy/go-json to 0.8.1 ( #1644 )
...
* Update goccy/go-json to 0.8.1
* Fix linter.
* Update error.go
2021-12-06 08:24:57 +01:00
M. Efe Çetin
5e37126352
Improvements for logger middleware ( #1645 )
...
* Add NO_COLOR compatibility.
* Use /dev/stdout as default output stream.
* Fix coloring with custom formats.
* Fix tests.
2021-12-06 08:21:36 +01:00
M. Efe Çetin
b74676704d
Add disable html support to monitor middleware. ( #1620 )
...
* Add disable html support to monitor middleware.
* Change field.
* Update README.md
* Update middleware/monitor/config.go
* Fix tests.
Co-authored-by: hi019 <65871571+hi019@users.noreply.github.com>
2021-12-05 19:28:50 +01:00
Jason McNeil
693f3c5118
fix(middleware/session): CookieSameSite default "Lax" ( #1638 )
...
* CookieSameSite default "Lax"
* Update README.md
* CookieSameSite default "Lax"
* Revert "CookieSameSite default "Lax""
This reverts commit 414187704b6173481f992ad96bb1a6df1094bd4d.
2021-12-02 07:44:03 +01:00
Jason McNeil
af6b204e50
CookieSameSite default "Lax" ( #1640 )
2021-12-02 07:41:44 +01:00
Turgay
c9e959c4d4
Recover middleware: Added, fiber.Ctx as a first paremeter to StackTraceHandler. ( #1623 )
2021-11-29 08:31:43 +01:00
RW
5ff3bc88a3
prepare release 2.22.0
v2.22.0
2021-11-15 08:39:58 +01:00
mancix
8ad81d57f6
📚 Doc: italian translation ( #1621 )
2021-11-15 08:37:57 +01:00
djunny
f9d5f787af
Feature: [Cache] add ExpirationGenerator for generate custom Expiration ( #1618 )
...
* Feature: [Cache] add ExpirationGenerator for generate custom Expiration
* fix: add document and code snippet for README
Co-authored-by: dj <github@djunny.com>
2021-11-11 11:30:38 +01:00
Gusted
7b7dcf29f7
♻️ Tidy up the codebase ( #1613 )
...
* run gofmt
* add t.Helper()
* Simplify assigns
* Simplify make operation
* Remove unused field in struct
* Fix typo
* Run gofumpt ./
* Consistent spacing
* len(...) can never be negative
* Use ReplaceAll
* Simplify operation
* Remove deadcode
* Fix typo
* Tidy up `} else { if ...`
* Fix AssertEqual
* Remove t.Helper() to fix go1.14.15
2021-11-05 08:00:03 +01:00