Skip to content

Releases: gin-gonic/gin

v1.10.0

07 May 03:48
75ccf94
Compare
Choose a tag to compare

Changelog

Features

Bug fixes

Enhancements

Build process updates

Documentation updates

Others

v1.9.1

01 Jun 02:33
4ea0e64
Compare
Choose a tag to compare

Changelog

BUG FIXES

  • fix Request.Context() checks #3512

SECURITY

  • fix lack of escaping of filename in Content-Disposition #3556

ENHANCEMENTS

  • refactor: use bytes.ReplaceAll directly #3455
  • convert strings and slices using the officially recommended way #3344
  • improve render code coverage #3525

DOCS

  • docs: changed documentation link for trusted proxies #3575
  • chore: improve linting, testing, and GitHub Actions setup #3583

v1.9.0

21 Feb 09:22
ea03e10
Compare
Choose a tag to compare

Changelog

BREAK CHANGES

  • Stop useless panicking in context and render #2150

BUG FIXES

  • fix(router): tree bug where loop index is not decremented. #3460
  • fix(context): panic on NegotiateFormat - index out of range #3397
  • Add escape logic for header #3500 and #3503

SECURITY

  • Fix the GO-2022-0969 and GO-2022-0288 vulnerabilities #3333
  • fix(security): vulnerability GO-2023-1571 #3505

ENHANCEMENTS

  • feat: add sonic json support #3184
  • chore(file): Creates a directory named path #3316
  • fix: modify interface check way #3327
  • remove deprecated of package io/ioutil #3395
  • refactor: avoid calling strings.ToLower twice #3343
  • console logger HTTP status code bug fixed #3453
  • chore(yaml): upgrade dependency to v3 version #3456
  • chore(router): match method added to routergroup for multiple HTTP methods supporting #3464
  • chore(http): add support for go1.20 http.rwUnwrapper to gin.responseWriter #3489

DOCS

  • docs: update markdown format #3260
  • docs(readme): Add the TOML rendering example #3400
  • docs(readme): move more example to docs/doc.md #3449
  • docs: update markdown format #3446

v1.8.2

22 Dec 13:42
Compare
Choose a tag to compare

Changelog

Bug fixes

Others

v1.8.1

06 Jun 16:03
ed049dd
Compare
Choose a tag to compare

Changelog

Features

v1.8.0

30 May 07:17
38eb5ac
Compare
Choose a tag to compare

Changelog

Break Changes

  • TrustedProxies: Add default IPv6 support and refactor #2967. Please replace RemoteIP() (net.IP, bool) with RemoteIP() net.IP
  • gin.Context with fallback value from gin.Context.Request.Context() #2751

BUGFIXES

  • Fixed SetOutput() panics on go 1.17 #2861
  • Fix: wrong when wildcard follows named param #2983
  • Fix: missing sameSite when do context.reset() #3123

ENHANCEMENTS

  • Use Header() instead of deprecated HeaderMap #2694
  • RouterGroup.Handle regular match optimization of http method #2685
  • Add support go-json, another drop-in json replacement #2680
  • Use errors.New to replace fmt.Errorf will much better #2707
  • Use Duration.Truncate for truncating precision #2711
  • Get client IP when using Cloudflare #2723
  • Optimize code adjust #2700
  • Optimize code and reduce code cyclomatic complexity #2737
  • gin.Context with fallback value from gin.Context.Request.Context() #2751
  • Improve sliceValidateError.Error performance #2765
  • Support custom struct tag #2720
  • Improve router group tests #2787
  • Fallback Context.Deadline() Context.Done() Context.Err() to Context.Request.Context() #2769
  • Some codes optimize #2830 #2834 #2838 #2837 #2788 #2848 #2851 #2701
  • Test(route): expose performRequest func #3012
  • Support h2c with prior knowledge #1398
  • Feat attachment filename support utf8 #3071
  • Feat: add StaticFileFS #2749
  • Feat(context): return GIN Context from Value method #2825
  • Feat: automatically SetMode to TestMode when run go test #3139
  • Add TOML bining for gin #3081
  • IPv6 add default trusted proxies #3033

DOCS

  • Add note about nomsgpack tag to the readme #2703

Release v1.7.7

24 Nov 13:57
Compare
Choose a tag to compare

BUGFIXES

  • Fixed X-Forwarded-For unsafe handling of CVE-2020-28483 #2844, closed issue #2862
  • Tree: updated the code logic for latestNode #2897, closed issue #2894 #2878
  • Tree: fixed the misplacement of adding slashes #2847, closed issue #2843
  • Tree: fixed tsr with mixed static and wildcard paths #2924, closed issue #2918

ENHANCEMENTS

  • TrustedProxies: make it backward-compatible #2887, closed issue #2819
  • TrustedPlatform: provide custom options for another CDN services #2906

DOCS

  • NoMethod: added usage annotation (#2832)

Release v1.7.6

23 Nov 05:28
Compare
Choose a tag to compare

Handle pre release v1.7.5 error, so release v1.7.6 but still use v1.7.4 codes.

bump new release to fix checksum mismatch

15 Aug 08:10
Compare
Choose a tag to compare
docs: release v1.7.3 (#2802)

* docs: release v1.7.3

Signed-off-by: Bo-Yi Wu <[email protected]>

* fix: format

Signed-off-by: Bo-Yi Wu <[email protected]>

docs: release v1.7.3 (#2802)

03 Aug 02:41
Compare
Choose a tag to compare

BUGFIXES