Zum Inhalt springen

Fiber Release Notes

Einträge
34
Quellen
1
Zuletzt aktualisiert

Folge Fiber, um die Release Notes in deinen Feed zu holen.

Fiber

Fiber 2.52.9: Fixes bei Parsern, Embedded Structs und MIME-Vergleichen

Version 2.52.9 behebt Fehler mit einer oberen Indexgrenze für Parser, beim Parsen eingebetteter Structs sowie bei Content-Type-Vergleichen in Is() und MIME-Typ-Gleichheitsprüfungen.

🐛 Bug Fixes

Full Changelog: https://github.com/gofiber/fiber/compare/v2.52.8...v2.52.9

Originalquelle(öffnet in neuem Tab)Problem melden

Fiber

Fiber 2.52.8: Sicherheitsfix für BodyParser und Routing-Korrektur

Version 2.52.8 enthält einen Sicherheitsfix für BodyParser (GHSA-hg3g-gphw-5hhm), portiert ctx.String() aus v3 zurück und behebt Routing mit mount und static.

👮 Security

  • Fix for BodyParser - GHSA-hg3g-gphw-5hhm

🧹 Updates

🐛 Bug Fixes

📚 Documentation

Full Changelog: https://github.com/gofiber/fiber/compare/v2.52.6...v2.52.8

Originalquelle(öffnet in neuem Tab)Problem melden

Fiber

Fiber 3.0.0-beta.4: Startup Probe, TrustProxy, CBOR und AutoTLS

Version 3.0.0-beta.4 bringt unter anderem eine Startup Probe für healthcheck, RebuildTree, TrustProxy, CBOR-Encoding, AutoTLS/ACME, graceful-shutdown-Timeout in ListenConfig sowie Iterator-Methoden im Fiber-Client.

🚀 New Features

Originalquelle(öffnet in neuem Tab)Problem melden

Fiber

Fiber 2.52.6: Fehlerbehebungen bei Logger, Query-Parametern, CORS und Multipart

Version 2.52.6 behebt Fehler im Logger (Content-Length-Tags), bei nicht geschlossenen Klammern in Query-Parametern, der CORS-Schemabeschränkung, der Immutable-Konfiguration für Body() und der Square-Bracket-Notation in Multipart-Formdaten.

🐛 Bug Fixes

📚 Documentation

🛠️ Maintenance

Full Changelog: https://github.com/gofiber/fiber/compare/v2.52.5...v2.52.6

Originalquelle(öffnet in neuem Tab)Problem melden

Fiber

Fiber 3.0.0-beta.3: static-Middleware, zstd und Cache-Invalidierung

Version 3.0.0-beta.3 ergänzt eine static-Middleware, Cache-Invalidierung, eigene KeyLookup-Funktionen in keyauth, zstd-Kompression, Konfiguration für c.SendFile() und CHIPS-Cookie-Support sowie Fixes in session.

🚀 New Features

  • Middleware/static: add static middleware (#3006)
  • Middleware/cache: Add Cache Invalidation Option to Cache Middleware (#3036)
  • Middleware/keyauth: Add support for custom KeyLookup functions in the Keyauth middleware (#3028)
  • Add support for zstd compression (#3041)
  • Add configuration support to c.SendFile() (#3017)
  • Add support for longtests during CI (#3054)
  • Add CHIPS support to Cookie (#3047)

🧹 Updates

  • Middleware/cors: Config, lists as list types (#2962)
  • Middleware/session: Remove extra release and acquire ctx calls in session_test.go (#3044)
  • Optimize Cache middleware handler (#3031)
  • Adding a generator to generate the CTX interface (#3024)
  • Add Benchmarks for IsProxyTrusted() (#2933)

🐛 Bug Fixes

  • Fix some struct names in comments (#2974)
  • Fixes #3038 "v3 Flash Message with redirect is not working" (#3046)
  • Middleware/session: mutex for thread safety (#3049)
  • Middleware/session: fix data-race with sync.Pool (#3051)

🛠️ Maintenance

  • Bump github.com/valyala/fasthttp from 1.52.0 to 1.53.0 (#3000)
  • Bump github.com/valyala/fasthttp from 1.54.0 to 1.55.0 (#3037)
  • Updated fasthttp to 1.54.0 release (#3010)

📚 Documentation

  • Add docs for new client (#2991)
  • Consolidate and Document Core Changes in v3 (#2934)
  • Fix broken link to slim template in FAQ (#2969)
  • Fix merge conflict in documentation (#2957)
  • Fix some comments (#2983) …

Originalquelle(öffnet in neuem Tab)Problem melden

Fiber

Fiber 2.52.5: Sicherheitsfix für Session-Middleware und Fehlerbehebungen

Version 2.52.5 schließt eine Token-Injection-Schwachstelle in der Session-Middleware (GHSA-98j2-3j3p-fw2v) und behebt Fehler bei der CPU-Auslastungsanzeige der monitor-Middleware sowie bei der Thread-Sicherheit von session.

👮 Security

<details> <summary>Middleware/session: Session Middleware Token Injection Vulnerability - GHSA-98j2-3j3p-fw2v</summary>

https://docs.gofiber.io/api/middleware/session

</details>

🧹 Updates

  • Middleware/session: Remove extra release and aquire ctx calls in session_test.go (#3043)

🐛 Bug Fixes

  • Middleware/monitor: middleware reporting of CPU usage (#2984)
  • Middleware/session: mutex for thread safety (#3050)

📚 Documentation

  • Improve ctx.Locals method description and example (#3030)
  • Improve ctx.Locals method documentation (#3033)
  • Update README_id.md (#3045)

Full Changelog: https://github.com/gofiber/fiber/compare/v2.52.4...v2.52.5

Thank you @nyufeng, @PaulTitto and @sixcolors for making this update possible.

Originalquelle(öffnet in neuem Tab)Problem melden

Fiber

Fiber 3.0.0-beta.2: Binding, Client-Refactor und neues Mounting-System

Version 3.0.0-beta.2 bringt unter anderem erste Binding-Unterstützung, einen refaktorierten Client, Trusted Origins für csrf, ein neues Mounting-System, Ctx als Interface, benutzerdefinierte Constraints und neue Redirect-Methoden.

🚀 New

  • Binding: Initial support for binding (#1981)
  • Addon: add retry mechanism (#1972)
  • Client: client refactor (#1986)
  • Middleware/csrf: Add support for trusted origins (#2910)
  • Middleware/csrf: TrustedOrigins using https://*.example.com style subdomains (#2925)
  • Middleware/cors: Add support for Access-Control-Allow-Private-Network (#2908)
  • Middleware/proxy: Add DialDualStack option for upstream IPv6 support (#2900)
  • Convert fiber.Ctx type to interface (#1928)
  • Merge Listen methods & ListenConfig (#1930)
  • New Route method (#2065)
  • Router interface changes (#2176)
  • New redirection methods (#2014)
  • New mounting system (#2022)
  • Generate msgp tests (#2263)
  • Make app.Test accept a time.Duration timeout (#2269)
  • Add QueryParser for get query using generic (#2776)
  • Addition of Locals Function with Go Generics as an Alternative to c.Locals (#2813)
  • Add support for custom constraints (#2807)
  • Adding GetReqHeaders and GetRespHeaders (#2831)
  • Implement new generic functions: Params, Get and Convert (#2850)

🧹 Updates

  • Middleware/adpator: Add parallel benchmarks to adaptor middleware (#2870)
  • Middleware/csrf,limiter: Update CSRF and Limiter to remove repetitive names (#2846)
  • Middleware/earlydata (#2270)
  • Middleware/filesystem: Refactor filesystem middleware with io/fs (#2027)
  • Middleware/healthchecker: Migrate HealthChecker to v3 (#2884)
  • Middleware/idempotency (#2253) …

Originalquelle(öffnet in neuem Tab)Problem melden

Fiber

Fiber v2.52.4: Korrekturen an der CORS-Middleware

Version 2.52.4 behebt Fehler in der CORS-Behandlung und im Vary-Header bei OPTIONS-Anfragen, die keine CORS-Anfragen sind.

🐛 Fixes

Full Changelog: https://github.com/gofiber/fiber/compare/v2.52.3...v2.52.4

Originalquelle(öffnet in neuem Tab)Problem melden

Fiber

Fiber v2.52.3: CORS- und CSRF-Korrekturen

Version 2.52.3 korrigiert die CORS-Behandlung samt Wildcard-Subdomain-Abgleich, die richtige Einordnung von Anfragen sowie die Benchmark-Tests der csrf-Middleware.

🐛 Fixes

Full Changelog: https://github.com/gofiber/fiber/compare/v2.52.2...v2.52.3

Originalquelle(öffnet in neuem Tab)Problem melden

Fiber

Fiber v2.52.1: Sicherheitsfix für CORS und healthcheck-Korrektur

Version 2.52.1 behebt eine unsichere CORS-Konfiguration, die Wildcard-Origin mit Credentials erlaubte, sowie ein Problem der healthcheck-Middleware mit Routengruppen und korrigiert die Dokumentation.

👮 Security

<details> <summary>Middleware/cors: Insecure CORS Configuration Allowing Wildcard Origin with Credentials - GHSA-fmg4-x8pw-hjhg</summary>

https://docs.gofiber.io/api/middleware/cors

</details>

🐛 Fixes

  • Middleware/healthcheck: Not working with route group(#2863)

📚 Documentation

  • Fix default value to false in docs of QueryBool (#2811)
  • Fix code snippet indentation in /docs/api/middleware/keyauth.md (#2867)

Full Changelog: https://github.com/gofiber/fiber/compare/v2.52.0...v2.52.1

Thank you @luk3skyw4lker, @CAEL0, @grivera64, @gaby and @sixcolors for making this update possible.

Originalquelle(öffnet in neuem Tab)Problem melden

Fiber

Fiber v2.52.0: healthcheck-Middleware mit Liveness und Readiness

Version 2.52.0 führt Liveness- und Readiness-Checks in der healthcheck-Middleware ein, ändert Logger-Standards (u. a. Client-IP-Ausgabe), aktualisiert die encryptcookie-Standardkonfiguration und behebt mehrere Middleware-Fehler.

🚀 New

// Direct usage with default config
app.Use(healthcheck.New())

// Or extend your config for customization
app.Use(healthcheck.New(healthcheck.Config{
    LivenessEndpoint: "/live",
    LivenessProbe: func(c *fiber.Ctx) bool {
        return true
    },
    ReadinessEndpoint: "/ready",
    ReadinessProbe: func(c *fiber.Ctx) bool {
        return serviceA.Ready() && serviceB.Ready() && ...
    },
}))

🧹 Updates

  • Middlewares: don't constrain middlewares context-keys to strings (#2751)
  • Middleware/logger: colorize logger error message #2593 (#2773)
  • Middleware/logger: changing default log output (#2730)
  • Middleware/logger: log client IP address by default (#2755)
  • Middleware/encryptcookie: update default config (#2753)
  • Improve benchmarks for getOffer (#2739)

🛠️ Maintenance

  • Bump github/codeql-action from 2 to 3 (#2763)
  • Bump github.com/google/uuid from 1.4.0 to 1.5.0 (#2762)
  • Bump actions/setup-go from 4 to 5 (#2754)
  • Bump golang.org/x/sys from 0.14.0 to 0.15.0 (#2744)
  • Bump github.com/valyala/fasthttp from 1.50.0 to 1.51.0 (#2721)

🐛 Fixes

  • Middleware/redirect : fix for redirect with query params (#2748)
  • Middleware/adaptor: Adaptor + otelfiber issue #2641 (#2772)
  • Middleware/cors: Should use the defined AllowedOriginsFunc config when AllowedOrigins is empty (#2771) …

Originalquelle(öffnet in neuem Tab)Problem melden

Fiber

Fiber v2.51.0: Parameter in Content Negotiation und problem+json

Version 2.51.0 unterstützt Parameter in der Content Negotiation und application/problem+json und reduziert Allokationen in Ctx.Range sowie verbessert die Leistung der pprof-Middleware.

🚀 New

// Consideration of parameters in the accepted headers
// Accept: text/plain, application/json; version=1; foo=bar

app.Get("/", func(c *fiber.Ctx) error {
  // Extra parameters in the accept are ignored
  c.Accepts("text/plain;format=flowed") // "text/plain;format=flowed"

  // An offer must contain all parameters present in the Accept type
  c.Accepts("application/json") // ""

  // Parameter order and capitalization does not matter. Quotes on values are stripped.
  c.Accepts(`application/json;foo="bar";VERSION=1`) // "application/json;foo="bar";VERSION=1"
})
// Passing a custom json type
ctx.JSON(fiber.Map{
    "type": "https://example.com/probs/out-of-credit",
    "title": "You do not have enough credit.",
    "status": 403,
    "detail": "Your current balance is 30, but that costs 50.",
    "instance": "/account/12345/msgs/abc",
  }, fiber.)

🧹 Updates

  • Ctx.Range: reduce allocations (#2705)
  • Middleware/pprof: improve performance (#2709)

🛠️ Maintenance

  • Bump golang.org/x/sys from 0.13.0 to 0.14.0 (#2707)
  • Bump github.com/google/uuid from 1.3.1 to 1.4.0 (#2693) …

Originalquelle(öffnet in neuem Tab)Problem melden

Fiber

Fiber v2.50.0: Breaking Change bei Header-Methoden und CSRF-Verbesserungen

Version 2.50.0 ändert die Rückgabetypen von GetReqHeaders und GetRespHeaders auf map[string][]string, verbessert die csrf-Middleware gegen Token-Schwachstellen und ergänzt einen Cookie-Parser.

❗ Breaking Changes

  • Change signatures of GetReqHeaders and GetRespHeaders (#2650)

To allow single and list values under headers according to the rfc standard

- func (c *Ctx) GetReqHeaders() map[string]string
+ func (c *Ctx) GetReqHeaders() map[string][]string
- func (c *Ctx) GetRespHeaders() map[string]string
+ func (c *Ctx) GetRespHeaders() map[string][]string

👮 Security

<details> <summary>Middleware/csrf: Token Vulnerability (GHSA-mv73-f69x-444p, GHSA-94w9-97p3-p368)</summary>

https://docs.gofiber.io/api/middleware/csrf

🚀 Improvements to the CSRF middleware:

  • Added support for single-use tokens through the SingleUseToken configuration option.
  • Optional integration with GoFiber session middleware through the Session and SessionKey configuration options.
  • Introduction of origin checks for HTTPS connections to verify referer headers.
  • Implementation of a Double Submit Cookie approach for CSRF token generation and validation when used without Session.
  • Enhancement of error handling with more descriptive error messages.
  • The documentation for the CSRF middleware has been enhanced with the addition of the new options and best practices to improve security.

Thank you @sixcolors

</details>

🚀 New

Originalquelle(öffnet in neuem Tab)Problem melden