leonklingele
167a8b5e94
🚀 Feature: Add and apply more stricter golangci-lint linting rules ( #2286 )
...
* golangci-lint: add and apply more stricter linting rules
* github: drop security workflow now that we use gosec linter inside golangci-lint
* github: use official golangci-lint CI linter
* Add editorconfig and gitattributes file
2023-01-27 09:01:37 +01:00
pan93412
7327a17951
📚 Docs: Rework Chinese (Taiwan) translation of documentation ( #2310 )
...
* 📚 Doc: Reset zh_TW translation
* 📚 Doc: 1st revision of Chinese (Taiwan) translation
* 📚 Doc: Language Flag
* 📚 Doc: 2nd rev. of Chinese (Taiwan) translation
* 📚 Doc: Translated the middlewares list
* Docs: Fixup space
* 📚 Doc: Correct the figure link in READMEs
* 📚 Doc: Update according to review suggestions
* 📚 Doc: Update according to review suggestions
2023-01-27 00:30:49 +08:00
pan93412
b564f94401
📚 Doc: Correct the figure link in READMEs ( #2312 )
2023-01-26 11:57:25 +03:00
Limux
e2cb81ddd3
🚨 added testcases and minor algorithm improvment ( #2308 )
...
* Deleted redundant check for an ipv4 address octet block that is bigger than 255 in utils/ip.go. Also added a testcase for octetblocks that are bigger than 255.
* Added extra testcases
2023-01-25 20:38:29 +01:00
pan93412
66cc869b1f
Doc: Remove the redundant space beside a comma ( #2309 )
...
📚 Doc: Remove the redundant space beside a comma
2023-01-25 20:35:00 +01:00
Iliya
a0004cf8a8
🔥 write integer Query Parser. ( #2306 )
...
* Feature: write integer Query Parser.
* request changes on https://github.com/gofiber/fiber/pull/2306#discussion_r1082171003
* ref(test): separate test cases for QueryInt
2023-01-23 19:06:12 +01:00
René Werner
c5691c7de5
change output folder for the benchmarks result (gh-pages)
2023-01-19 21:41:33 +01:00
Rendi Putra Pradana
1c3140c021
📝 Docs: Add discord channel link (ID) ( #2303 )
...
* docs: translate some words to bahasa
Translate:
download -> unduh
WebSocket support -> Mendukung WebSocket
Route Naming -> Penamaan Route
default -> bawaan
* 📝 docs: translate some words to bahasa(ID)
* 📝 Docs: Add discord channel link
2023-01-19 13:54:56 +01:00
Xiaoyue Lin
07ab88278b
📝 docs(filesystem): fix statik filesystem middleware example typo ( #2302 )
...
docs(filesystem): fix statik filesystem middleware example typo
2023-01-18 08:23:19 +01:00
M. Efe Çetin
5406560033
🧹 chore: make most tests parallel ( #2299 )
...
* 🧹 chore: make most tests parallel
* revert some tests
* revert some tests
* revert some tests
2023-01-15 23:21:37 +08:00
M. Efe Çetin
8a605c67d1
🩹 bug: use `app.getString, app.GetBytes` instead of `utils.UnsafeString, utils.UnsafeBytes` in `ctx.go` ( #2297 )
...
* 🩹 bug: use `app.getString, app.GetBytes` instead of `utils.UnsafeString, utils.UnsafeBytes` in `ctx.go`
* fix Test_Client_Debug
2023-01-15 20:56:53 +08:00
M. Efe Çetin
1898c1f9a7
🐛 bug: fix gopsutil compilation ( #2298 )
...
* 🐛 bug: fix gopsutil compilation
* nolint
2023-01-15 15:39:04 +03:00
cloudwindy
0628b95a3d
Fix: logger color output ( #2296 )
2023-01-14 20:18:57 +08:00
leonklingele
adcf92dec1
🚀 Feature: Add idempotency middleware (v2 backport) ( #2288 )
...
* 🚀 Feature: Add idempotency middleware (#2253 )
* middleware: add idempotency middleware
* middleware/idempotency: use fiber.Storage instead of custom storage
* middleware/idempotency: only allocate data if really required
* middleware/idempotency: marshal response using msgp
* middleware/idempotency: add msgp tests
* middleware/idempotency: do not export response
* middleware/idempotency: disable msgp's -io option to disable generating unused methods
* middleware/idempotency: switch to time.Duration based app.Test
* middleware/idempotency: only create closure once
* middleware/idempotency: add benchmarks
* middleware/idempotency: optimize strings.ToLower when making comparison
The real "strings.ToLower" still needs to be used when storing the data.
* middleware/idempotency: safe-copy body
* middleware/idempotency: backport to v2
2023-01-13 08:38:50 +01:00
dependabot[bot]
9c5dfdbe5d
Bump github.com/valyala/fasthttp from 1.43.0 to 1.44.0 ( #2292 )
...
Bumps [github.com/valyala/fasthttp](https://github.com/valyala/fasthttp ) from 1.43.0 to 1.44.0.
- [Release notes](https://github.com/valyala/fasthttp/releases )
- [Commits](https://github.com/valyala/fasthttp/compare/v1.43.0...v1.44.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>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-12 13:47:15 +08:00
TwiN
ad5250a6ff
📝 docs(middleware): fix alignment in limiter example ( #2283 )
...
docs(middleware): Fix indentation in limiter example
Noticed a small formatting issue while going through the docs.
2023-01-05 12:32:28 +08:00
RW
c13a7e3918
prepare release v2.41.0
2023-01-03 15:31:22 +01:00
TAKAHASHI Shuuji
f6b0a07db0
📝 docs: fix ci badge errors ( #2282 )
...
* 📝 docs: fix ci badge errors
* 📝 docs: fix ci badge errors on translated README files
2023-01-02 20:54:48 +03:00
Serhat Şevki Dinçer
9dfdea45c1
🧹 🐛 fix some warnings, go-ole on mac os ( #2280 )
...
* 🧹 fix some warnings
* 🐛 fix go-ole on mac os
2023-01-01 15:16:38 +03:00
dependabot[bot]
4d43db0c79
Bump github.com/mattn/go-isatty from 0.0.16 to 0.0.17 ( #2279 )
...
Bumps [github.com/mattn/go-isatty](https://github.com/mattn/go-isatty ) from 0.0.16 to 0.0.17.
- [Release notes](https://github.com/mattn/go-isatty/releases )
- [Commits](https://github.com/mattn/go-isatty/compare/v0.0.16...v0.0.17 )
---
updated-dependencies:
- dependency-name: github.com/mattn/go-isatty
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-30 19:40:42 +03:00
pj
8889cea116
feat: add ShutdownWithTimeout function ( #2228 )
...
* add ShutdownWithTimeout function
* no message
* fix func documentation
* test: add Test_App_ShutdownWithTimeout
Co-authored-by: rocketlaunchr-cto <rocketlaunchr.cloud@gmail.com>
Co-authored-by: kinggo <lilong.21@bytedance.com>
2022-12-19 23:40:43 +08:00
pj
f13c948e36
Match function ( #2142 )
...
Add matching function
Co-authored-by: rocketlaunchr-cto <rocketlaunchr.cloud@gmail.com>
2022-12-11 17:37:35 +01:00
kinggo
efeea7a4b5
optimize: latency use lowest time unit in logger middleware ( #2261 )
2022-12-10 21:56:43 +01:00
kinggo
a9ddef7a20
optimize: add more detail error message in serverErrorHandler ( #2267 )
2022-12-11 02:28:39 +08:00
kinggo
2e3f73cb4d
optimize: use fasthttp.AddMissingPort ( #2268 )
2022-12-10 15:58:18 +03:00
M. Efe Çetin
affa759477
📝 docs: replace `1.14` with `1.16` in READMEs ( #2265 )
2022-12-08 19:07:32 +03:00
Angel ILIEV
356448cb66
Update docstring for FormValue() ( #2262 )
...
Include the other places that are searched for the provided form value key
2022-12-05 15:02:18 +01:00
leonklingele
d9d2153fcc
🩹 Fix: Properly handle error of "net.ParseCIDR" in "(*App).handleTrustedProxy" ( #2243 )
...
* app: do not use empty *net.IPNet in case of an error of "net.ParseCIDR"
* app: expose error returned by "net.ParseCIDR"
* ctx: do not repeatedly call method in loop
* ctx: add test for "IsProxyTrusted" func
2022-12-05 08:27:51 +01:00
M. Efe Çetin
077a5dc3d4
🐛 bug: fix regex constraints that contain comma ( #2256 )
2022-12-05 08:27:31 +01:00
V1def
6b9601fb99
Added Ukrainian README translation ( #2249 )
...
Added ukrainian localization
2022-12-01 09:21:44 +01:00
kinggo
075dfc5a8a
optimize: set byteSent log to 0 when use SetBodyStreamWriter ( #2239 )
2022-12-01 09:19:26 +01:00
Clark Winters
f3679167ff
🩹 Fix: Unintended overwritten bind variables ( #2240 )
...
* bindMap key value should only be set when not already present
* add comment
Co-authored-by: Clark Winters <clwinters8@gmail.com>
2022-12-01 09:18:23 +01:00
leonklingele
17dfcc756b
middleware/requestid: mention that the default UUID generator exposes the number of requests made to the server ( #2241 )
2022-12-01 09:11:14 +01:00
Xaver Fischer
6d798dbda9
📝 middleware/filesystem does not handle url encoded values on it's own ( #2247 )
...
* 📝 middleware/filesystem does not handle url encoded values
* Update README.md
add newline after first warning
Co-authored-by: Xaver Fischer <xaverfischer@mail.de>
2022-12-01 08:53:40 +01:00
dependabot[bot]
3629947c3d
Bump github.com/valyala/fasthttp from 1.42.0 to 1.43.0 ( #2245 )
...
Bumps [github.com/valyala/fasthttp](https://github.com/valyala/fasthttp ) from 1.42.0 to 1.43.0.
- [Release notes](https://github.com/valyala/fasthttp/releases )
- [Commits](https://github.com/valyala/fasthttp/compare/v1.42.0...v1.43.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>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-28 19:48:07 +08:00
dependabot[bot]
f8457f2eea
Bump github.com/valyala/fasthttp from 1.41.0 to 1.42.0 ( #2237 )
...
Bumps [github.com/valyala/fasthttp](https://github.com/valyala/fasthttp ) from 1.41.0 to 1.42.0.
- [Release notes](https://github.com/valyala/fasthttp/releases )
- [Commits](https://github.com/valyala/fasthttp/compare/v1.41.0...v1.42.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>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-24 16:32:17 +01:00
RW
8952d170fe
prepare release v2.40.1
2022-11-23 09:05:31 +01:00
RW
0d038cba46
fix typo
2022-11-21 08:54:34 +01:00
M. Efe Çetin
291fb6e444
🐛 bug: fix mounting when mount prefix is `/` ( #2227 )
2022-11-20 14:26:42 +01:00
RW
82db2963be
Update vulncheck.yml
2022-11-20 14:26:32 +01:00
RW
fc35dbf927
Update linter.yml
2022-11-20 14:05:03 +01:00
RW
70403aa120
Update security.yml
2022-11-20 14:04:46 +01:00
RW
c8baa613ae
prepare release v2.40.0
2022-11-18 16:21:47 +01:00
RW
e4b3b5c708
Improve interface for custom logger func ( #2225 )
...
* - logger: fix custom tag
- use real bytebufferpool dependency instead of the internal
* - logger: fix custom tag
- use real bytebufferpool dependency instead of the internal
* - logger: fix custom tag
- use real bytebufferpool dependency instead of the internal
* - logger: fix custom tag
- use real bytebufferpool dependency instead of the internal
2022-11-18 15:32:56 +01:00
Andy Pan
92ce4aac77
📝 Update middleware/logger docs ( #2224 )
...
* 📝 Update middleware/logger docs
Update #2219
* Update middleware/logger/README.md
Co-authored-by: RW <rene@gofiber.io>
2022-11-18 14:29:53 +01:00
René Werner
3d39b82aad
logger: adjustment for the new Done function - use nil instead of empty func
2022-11-18 13:23:57 +01:00
skyenought
e8f8cb647b
✨ Add customTags in logger middleware Config ( #2188 )
...
* ✨ Add customTags in logger middleware Config
* improve tags with parameter
* improve logger performance
* improve logger performance
* improve logger performance
* improve logger performance
Co-authored-by: René Werner <rene@gofiber.io>
2022-11-18 13:10:43 +01:00
Andy Pan
3157fb5f1c
✨ Add callback function for middleware/logger ( #2219 )
...
* ✨ Add callback function for middleware/logger
* Refine test code
2022-11-15 12:14:32 +01:00
Caleb Case
61b4496067
Track Configured Values ( #2221 )
...
* WIP: Use Parent Error Handler on Mount
* Add suggested boolean guard
* Move flag to App
* Move to copy of config as configured
* Apply the same trick to customMethod
2022-11-15 12:13:11 +01:00
leonklingele
235cd9df82
ctx: simplify Protocol() ( #2217 )
...
* ctx: simplify Protocol()
* ctx: also mention "X-Url-Scheme" header in Protocol()
* ctx: use the same warning comment about enabling Config.EnableTrustedProxyCheck everywhere
2022-11-14 08:32:48 +01:00