4296 Commits

Author SHA1 Message Date
Juan Calderon-Perez
3e0632de0d
Update proxy.go 2025-07-28 23:27:09 -04:00
Juan Calderon-Perez
914f3c77d8
Merge branch 'main' into 2025-07-25-04-55-34 2025-07-28 23:19:42 -04:00
René
deabee41e9 update whats_new.md 2025-07-28 17:15:38 +02:00
Jason McNeil
979e7cd6b1
feat(middleware/session): Introduce Extractor pattern for session ID retrieval (#3625)
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2025-07-28 16:48:22 +02:00
RW
9bcf8125f5
Fix timing for streaming test (#3628) 2025-07-28 14:29:20 +02:00
RW
5bc44677ce
Fix race in cookie tests (#3629) 2025-07-28 13:28:21 +02:00
Copilot
8444880dd1
🐛 Fix limiter middleware not counting fiber.NewErrorf responses as failed requests (#3623)
Co-authored-by: ReneWerner87 <7063188+ReneWerner87@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
2025-07-28 09:21:37 +02:00
Juan Calderon-Perez
85e91e6f21
Merge branch 'main' into 2025-07-25-04-55-34 2025-07-27 22:55:55 -04:00
Juan Calderon-Perez
fc07c795b2
Remove some of the new options 2025-07-27 22:53:21 -04:00
Copilot
c0b2617e07
Fix Cookie SameSite constants to Pascal case per RFC specification (#3608)
Co-authored-by: sixcolors <6501251+sixcolors@users.noreply.github.com>
Co-authored-by: gaby <835733+gaby@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Jason McNeil <sixcolors@mac.com>
2025-07-27 17:12:57 +02:00
Juan Calderon-Perez
b839032cf2
🔥 feat: Add HeaderLimit option to BasicAuth middleware (#3620)
Co-authored-by: RW <rene@gofiber.io>
2025-07-27 16:56:15 +02:00
Juan Calderon-Perez
96674dc591
🔥 feat: Add Fiber Context to BasicAuth Authorizer (#3621) 2025-07-27 16:25:31 +02:00
Juan Calderon-Perez
5566b59ed7
Update middleware/proxy/proxy.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-07-25 10:35:40 -04:00
Copilot
7e1f653f8d
🔧 Fix Makefile to install tools before running them (#3612)
Co-authored-by: sixcolors <6501251+sixcolors@users.noreply.github.com>
Co-authored-by: ReneWerner87 <7063188+ReneWerner87@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Jason McNeil <sixcolors@mac.com>
Co-authored-by: RW <rene@gofiber.io>
2025-07-25 16:23:40 +02:00
Juan Calderon-Perez
a809afb542 Run betteralign on proxy config 2025-07-25 10:12:30 -04:00
RW
856fdf2e66
Enable govet shadow (#3617) 2025-07-25 14:43:02 +02:00
Juan Calderon-Perez
56b5e6bb76
🔥 feat: Support for disabling response headers in Limiter Middleware (#3618) 2025-07-25 14:38:41 +02:00
Juan Calderon-Perez
b533ac7792 docs: note proxy KeepConnectionHeader 2025-07-25 00:55:40 -04:00
Juan Calderon-Perez
aa87c11903
🧹 chore: Replace math/rand with crypto/rand (#3508)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-07-23 16:28:16 +02:00
Copilot
36d9f394a0
🔥 feat: Add default UTF-8 charset (#3583)
Co-authored-by: ReneWerner87 <7063188+ReneWerner87@users.noreply.github.com>
Co-authored-by: gaby <835733+gaby@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: RW <rene@gofiber.io>
2025-07-23 16:27:03 +02:00
RW
30dee26ac1
Skip unstable GenericParseType benchmarks (#3614) 2025-07-21 15:38:09 +02:00
Juan Calderon-Perez
b090e16592
🧹 chore: Add tests for quoteRawString (#3613) 2025-07-21 15:23:43 +02:00
Juan Calderon-Perez
7da56030db
🐛 bug: Fix retry config handling (#3609) 2025-07-21 13:14:01 +02:00
Juan Calderon-Perez
361d76c37d
🐛 bug: Fix MIME type equality checks (#3602) v3.0.0-beta.5 2025-07-20 16:38:31 +02:00
RW
ea66fe2497
Update app.go
prepare release v3.0.0-beta.5
2025-07-20 16:10:33 +02:00
RW
05f8ac0255
🔥 feat: Add config for Timeout middleware (#3604)
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
2025-07-20 15:22:08 +02:00
RW
5dffcb6d84
[Static]: Improve sanitizePath performance (#3601) 2025-07-20 13:50:44 +02:00
Juan Calderon-Perez
93be63c229
🧹 chore: Improve static middleware security (#3595) 2025-07-20 10:35:53 +02:00
RW
f4ad1185ff
Update whats_new.md 2025-07-19 20:59:14 +02:00
Jason McNeil
e17bab7946
Refactor CSRF middleware and enhance documentation (#3598)
Co-authored-by: RW <rene@gofiber.io>
2025-07-19 20:11:33 +02:00
Juan Calderon-Perez
35e707b3d5
🐛 bug: Fix handling of negative BodyLimit (#3599) 2025-07-19 19:21:42 +02:00
René
d5842860eb fix Benchmark_MemoryLock
panic: runtime error: index out of range [1] with length 1

goroutine 67 [running]:
github.com/gofiber/fiber/v3/middleware/idempotency_test.Benchmark_MemoryLock(0xc00012c2c8)
	/home/runner/work/fiber/fiber/middleware/idempotency/locker_test.go:74 +0x23d
testing.(*B).runN(0xc00012c2c8, 0x1)
	/opt/hostedtoolcache/go/1.24.4/x64/src/testing/benchmark.go:219 +0x190
testing.(*B).run1.func1()
	/opt/hostedtoolcache/go/1.24.4/x64/src/testing/benchmark.go:245 +0x48
created by testing.(*B).run1 in goroutine 1
	/opt/hostedtoolcache/go/1.24.4/x64/src/testing/benchmark.go:238 +0x90
exit status 2
2025-07-18 08:55:06 +02:00
René
16fd8edbf1 fix Benchmark_MemoryLock
panic: runtime error: index out of range [1] with length 1

goroutine 67 [running]:
github.com/gofiber/fiber/v3/middleware/idempotency_test.Benchmark_MemoryLock(0xc00012c2c8)
	/home/runner/work/fiber/fiber/middleware/idempotency/locker_test.go:74 +0x23d
testing.(*B).runN(0xc00012c2c8, 0x1)
	/opt/hostedtoolcache/go/1.24.4/x64/src/testing/benchmark.go:219 +0x190
testing.(*B).run1.func1()
	/opt/hostedtoolcache/go/1.24.4/x64/src/testing/benchmark.go:245 +0x48
created by testing.(*B).run1 in goroutine 1
	/opt/hostedtoolcache/go/1.24.4/x64/src/testing/benchmark.go:238 +0x90
exit status 2
2025-07-18 08:53:53 +02:00
M. Efe Çetin
192d1dff0d
feat: add context methods to fiber.Storage interface (#3566)
* feat: add context methods to fiber.Storage interface

* fix linter

* create new file for storage interface (storage_interface.go)

* add simple context check to internal storage

* update docs

* add fallback context for session

---------

Co-authored-by: René <rene@gofiber.io>
2025-07-18 03:19:50 +02:00
RW
2f8fdc454b
Add modernize lint (#3590) 2025-07-17 14:48:43 +02:00
Juan Calderon-Perez
09eaaf3be8
🐛 bug: Fix CookieJar domain logic (#3564) 2025-07-17 14:48:08 +02:00
Aarav Arora
2832ae32d0
🧹 chore: Simplify generic function calls (#3578) 2025-07-16 14:50:15 +02:00
dependabot[bot]
93de9c59eb
build(deps): bump github.com/valyala/fasthttp from 1.63.0 to 1.64.0 (#3586)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-07-15 21:16:23 +02:00
Juan Calderon-Perez
cc19248552
Merge pull request #3581 from gofiber/dependabot/go_modules/github.com/fxamacker/cbor/v2-2.9.0
build(deps): bump github.com/fxamacker/cbor/v2 from 2.8.0 to 2.9.0
2025-07-15 09:37:50 -04:00
RW
41a19e010b
🧹 chore: Refactor Opt-in support for CBOR (#3580)
Co-authored-by: M. Efe Çetin <efectn@protonmail.com>
2025-07-15 14:19:02 +02:00
RW
2fafc10194
Update Copilot docs and setup (#3585) 2025-07-15 13:02:39 +02:00
René
8503eeffca remove unneeded benchmark "Benchmark_SlashRecognition" 2025-07-15 10:35:47 +02:00
dependabot[bot]
e9f2e87d35
build(deps): bump github.com/fxamacker/cbor/v2 from 2.8.0 to 2.9.0
Bumps [github.com/fxamacker/cbor/v2](https://github.com/fxamacker/cbor) from 2.8.0 to 2.9.0.
- [Release notes](https://github.com/fxamacker/cbor/releases)
- [Commits](https://github.com/fxamacker/cbor/compare/v2.8.0...v2.9.0)

---
updated-dependencies:
- dependency-name: github.com/fxamacker/cbor/v2
  dependency-version: 2.9.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-14 15:46:59 +00:00
Juan Calderon-Perez
c1e9ae3ff9
🐛 bug: Fix static/favicon middlewares file descriptor leaks (#3579) 2025-07-14 15:16:57 +02:00
Kudou Sterain
8f02e0176b
🔥 feat: Add support for Msgpack (#3565) 2025-07-14 14:55:22 +02:00
RW
87370cfee6
Update utils dependency (#3576) 2025-07-14 08:45:19 +02:00
RW
0d03102542
📒 docs: Update utils guide documentation (#3575) 2025-07-13 14:12:15 +02:00
Juan Calderon-Perez
77540e2100
Merge pull request #3574 from gofiber/dependabot/go_modules/github.com/gofiber/schema-1.6.0
build(deps): bump github.com/gofiber/schema from 1.5.0 to 1.6.0
2025-07-13 01:38:10 -04:00
dependabot[bot]
163902979d
build(deps): bump github.com/gofiber/schema from 1.5.0 to 1.6.0
Bumps [github.com/gofiber/schema](https://github.com/gofiber/schema) from 1.5.0 to 1.6.0.
- [Release notes](https://github.com/gofiber/schema/releases)
- [Commits](https://github.com/gofiber/schema/compare/v1.5.0...v1.6.0)

---
updated-dependencies:
- dependency-name: github.com/gofiber/schema
  dependency-version: 1.6.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-12 17:07:50 +00:00
dependabot[bot]
2d3229aa44
build(deps): bump golang.org/x/net from 0.41.0 to 0.42.0 (#3572)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-07-11 20:02:16 +02:00