Fiber 3.4.0
Fiber 3.4.0 has been released on July 2, 2026, bringing significant new features and improvements to this popular Go web framework. This release focuses on protocol support, developer experience, and operational control.
Overview
Version 3.4.0 introduces complete HTTP QUERY method support per RFC 10008, new context-aware session storage operations, a unified constraint handler interface, and enhanced prefork configuration options. The release also includes several bug fixes and performance optimizations.
New Features
- HTTP QUERY Method Support — Fiber now fully supports the HTTP QUERY method (RFC 10008), including
fiber.MethodQuery,app.Query()routing, and safe/idempotent handling across CSRF, idempotency, early data, and cache middlewares. The HTTP client also includesclient.Query()shorthands. - WithContext Session Storage — New
SaveWithContext,DestroyWithContext,RegenerateWithContext, andResetWithContextmethods propagate deadlines and cancellation to session storage backends, enabling better timeout control. - Unified Constraint Interface — Built-in and custom route constraints now share a single
ConstraintHandlerinterface. An optionalConstraintAnalyzerprecomputes constraint data at route registration, eliminating per-request parsing overhead. - Prefork Configuration — New
ListenConfigoptions:PreforkRecoverIntervalcontrols the delay before respawning a crashed child process, andPreforkShutdownGracePeriodsets the grace period between SIGTERM and forced SIGKILL during shutdown.
Deprecations
- The older
CustomConstraintinterface remains functional but is superseded by the unifiedConstraintHandlerinterface. Users are encouraged to migrate.
Upgrade Notes
This release is fully backward compatible with Fiber v3.3.x. Run go get github.com/gofiber/fiber/[email protected] to upgrade. Review the updated routing documentation if you use custom constraints.
Fiber 3.4.0 is available now. Visit the official documentation at docs.gofiber.io for the full changelog and migration guides.