Skip to content

Commit ea03e10

Browse files
authored
docs(readme): release v1.9.0 version (#3474)
1 parent 4cee78f commit ea03e10

File tree

4 files changed

+73
-24
lines changed

4 files changed

+73
-24
lines changed

CHANGELOG.md

Lines changed: 65 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,49 @@
11
# Gin ChangeLog
22

3+
## Gin v1.9.0
4+
5+
### BREAK CHANGES
6+
7+
* Stop useless panicking in context and render [#2150](https://github.com/gin-gonic/gin/pull/2150)
8+
9+
### BUG FIXES
10+
11+
* fix(router): tree bug where loop index is not decremented. [#3460](https://github.com/gin-gonic/gin/pull/3460)
12+
* fix(context): panic on NegotiateFormat - index out of range [#3397](https://github.com/gin-gonic/gin/pull/3397)
13+
* Add escape logic for header [#3500](https://github.com/gin-gonic/gin/pull/3500) and [#3503](https://github.com/gin-gonic/gin/pull/3503)
14+
15+
### SECURITY
16+
17+
* Fix the GO-2022-0969 and GO-2022-0288 vulnerabilities [#3333](https://github.com/gin-gonic/gin/pull/3333)
18+
* fix(security): vulnerability GO-2023-1571 [#3505](https://github.com/gin-gonic/gin/pull/3505)
19+
20+
### ENHANCEMENTS
21+
22+
* feat: add sonic json support [#3184](https://github.com/gin-gonic/gin/pull/3184)
23+
* chore(file): Creates a directory named path [#3316](https://github.com/gin-gonic/gin/pull/3316)
24+
* fix: modify interface check way [#3327](https://github.com/gin-gonic/gin/pull/3327)
25+
* remove deprecated of package io/ioutil [#3395](https://github.com/gin-gonic/gin/pull/3395)
26+
* refactor: avoid calling strings.ToLower twice [#3343](https://github.com/gin-gonic/gin/pull/3433)
27+
* console logger HTTP status code bug fixed [#3453](https://github.com/gin-gonic/gin/pull/3453)
28+
* chore(yaml): upgrade dependency to v3 version [#3456](https://github.com/gin-gonic/gin/pull/3456)
29+
* chore(router): match method added to routergroup for multiple HTTP methods supporting [#3464](https://github.com/gin-gonic/gin/pull/3464)
30+
* chore(http): add support for go1.20 http.rwUnwrapper to gin.responseWriter [#3489](https://github.com/gin-gonic/gin/pull/3489)
31+
32+
### DOCS
33+
34+
* docs: update markdown format [#3260](https://github.com/gin-gonic/gin/pull/3260)
35+
* docs(readme): Add the TOML rendering example [#3400](https://github.com/gin-gonic/gin/pull/3400)
36+
* docs(readme): move more example to docs/doc.md [#3449](https://github.com/gin-gonic/gin/pull/3449)
37+
* docs: update markdown format [#3446](https://github.com/gin-gonic/gin/pull/3446)
38+
339
## Gin v1.8.2
440

5-
### Bugs
41+
### BUG FIXES
642

743
* fix(route): redirectSlash bug ([#3227]((https://github.com/gin-gonic/gin/pull/3227)))
844
* fix(engine): missing route params for CreateTestContext ([#2778]((https://github.com/gin-gonic/gin/pull/2778))) ([#2803]((https://github.com/gin-gonic/gin/pull/2803)))
945

10-
### Security
46+
### SECURITY
1147

1248
* Fix the GO-2022-1144 vulnerability ([#3432]((https://github.com/gin-gonic/gin/pull/3432)))
1349

@@ -19,12 +55,12 @@
1955

2056
## Gin v1.8.0
2157

22-
## Break Changes
58+
### BREAK CHANGES
2359

2460
* TrustedProxies: Add default IPv6 support and refactor [#2967](https://github.com/gin-gonic/gin/pull/2967). Please replace `RemoteIP() (net.IP, bool)` with `RemoteIP() net.IP`
2561
* gin.Context with fallback value from gin.Context.Request.Context() [#2751](https://github.com/gin-gonic/gin/pull/2751)
2662

27-
### BUGFIXES
63+
### BUG FIXES
2864

2965
* Fixed SetOutput() panics on go 1.17 [#2861](https://github.com/gin-gonic/gin/pull/2861)
3066
* Fix: wrong when wildcard follows named param [#2983](https://github.com/gin-gonic/gin/pull/2983)
@@ -61,7 +97,7 @@
6197

6298
## Gin v1.7.7
6399

64-
### BUGFIXES
100+
### BUG FIXES
65101

66102
* Fixed X-Forwarded-For unsafe handling of CVE-2020-28483 [#2844](https://github.com/gin-gonic/gin/pull/2844), closed issue [#2862](https://github.com/gin-gonic/gin/issues/2862).
67103
* Tree: updated the code logic for `latestNode` [#2897](https://github.com/gin-gonic/gin/pull/2897), closed issue [#2894](https://github.com/gin-gonic/gin/issues/2894) [#2878](https://github.com/gin-gonic/gin/issues/2878).
@@ -79,37 +115,37 @@
79115

80116
## Gin v1.7.6
81117

82-
### BUGFIXES
118+
### BUG FIXES
83119

84120
* bump new release to fix v1.7.5 release error by using v1.7.4 codes.
85121

86122
## Gin v1.7.4
87123

88-
### BUGFIXES
124+
### BUG FIXES
89125

90126
* bump new release to fix checksum mismatch
91127

92128
## Gin v1.7.3
93129

94-
### BUGFIXES
130+
### BUG FIXES
95131

96132
* fix level 1 router match [#2767](https://github.com/gin-gonic/gin/issues/2767), [#2796](https://github.com/gin-gonic/gin/issues/2796)
97133

98134
## Gin v1.7.2
99135

100-
### BUGFIXES
136+
### BUG FIXES
101137

102138
* Fix conflict between param and exact path [#2706](https://github.com/gin-gonic/gin/issues/2706). Close issue [#2682](https://github.com/gin-gonic/gin/issues/2682) [#2696](https://github.com/gin-gonic/gin/issues/2696).
103139

104140
## Gin v1.7.1
105141

106-
### BUGFIXES
142+
### BUG FIXES
107143

108144
* fix: data race with trustedCIDRs from [#2674](https://github.com/gin-gonic/gin/issues/2674)([#2675](https://github.com/gin-gonic/gin/pull/2675))
109145

110146
## Gin v1.7.0
111147

112-
### BUGFIXES
148+
### BUG FIXES
113149

114150
* fix compile error from [#2572](https://github.com/gin-gonic/gin/pull/2572) ([#2600](https://github.com/gin-gonic/gin/pull/2600))
115151
* fix: print headers without Authorization header on broken pipe ([#2528](https://github.com/gin-gonic/gin/pull/2528))
@@ -148,33 +184,44 @@
148184

149185
## Gin v1.6.2
150186

151-
### BUGFIXES
187+
### BUG FIXES
188+
152189
* fix missing initial sync.RWMutex [#2305](https://github.com/gin-gonic/gin/pull/2305)
190+
153191
### ENHANCEMENTS
192+
154193
* Add set samesite in cookie. [#2306](https://github.com/gin-gonic/gin/pull/2306)
155194

156195
## Gin v1.6.1
157196

158-
### BUGFIXES
197+
### BUG FIXES
198+
159199
* Revert "fix accept incoming network connections" [#2294](https://github.com/gin-gonic/gin/pull/2294)
160200

161201
## Gin v1.6.0
162202

163203
### BREAKING
204+
164205
* chore(performance): Improve performance for adding RemoveExtraSlash flag [#2159](https://github.com/gin-gonic/gin/pull/2159)
165206
* drop support govendor [#2148](https://github.com/gin-gonic/gin/pull/2148)
166207
* Added support for SameSite cookie flag [#1615](https://github.com/gin-gonic/gin/pull/1615)
208+
167209
### FEATURES
210+
168211
* add yaml negotiation [#2220](https://github.com/gin-gonic/gin/pull/2220)
169212
* FileFromFS [#2112](https://github.com/gin-gonic/gin/pull/2112)
170-
### BUGFIXES
213+
214+
### BUG FIXES
215+
171216
* Unix Socket Handling [#2280](https://github.com/gin-gonic/gin/pull/2280)
172217
* Use json marshall in context json to fix breaking new line issue. Fixes #2209 [#2228](https://github.com/gin-gonic/gin/pull/2228)
173218
* fix accept incoming network connections [#2216](https://github.com/gin-gonic/gin/pull/2216)
174219
* Fixed a bug in the calculation of the maximum number of parameters [#2166](https://github.com/gin-gonic/gin/pull/2166)
175220
* [FIX] allow empty headers on DataFromReader [#2121](https://github.com/gin-gonic/gin/pull/2121)
176221
* Add mutex for protect Context.Keys map [#1391](https://github.com/gin-gonic/gin/pull/1391)
222+
177223
### ENHANCEMENTS
224+
178225
* Add mitigation for log injection [#2277](https://github.com/gin-gonic/gin/pull/2277)
179226
* tree: range over nodes values [#2229](https://github.com/gin-gonic/gin/pull/2229)
180227
* tree: remove duplicate assignment [#2222](https://github.com/gin-gonic/gin/pull/2222)
@@ -189,7 +236,9 @@
189236
* upgrade go-validator to v10 [#2149](https://github.com/gin-gonic/gin/pull/2149)
190237
* Refactor redirect request in gin.go [#1970](https://github.com/gin-gonic/gin/pull/1970)
191238
* Add build tag nomsgpack [#1852](https://github.com/gin-gonic/gin/pull/1852)
239+
192240
### DOCS
241+
193242
* docs(path): improve comments [#2223](https://github.com/gin-gonic/gin/pull/2223)
194243
* Renew README to fit the modification of SetCookie method [#2217](https://github.com/gin-gonic/gin/pull/2217)
195244
* Fix spelling [#2202](https://github.com/gin-gonic/gin/pull/2202)
@@ -202,7 +251,9 @@
202251
* Add project to README [#2165](https://github.com/gin-gonic/gin/pull/2165)
203252
* docs(benchmarks): for gin v1.5 [#2153](https://github.com/gin-gonic/gin/pull/2153)
204253
* Changed wording for clarity in README.md [#2122](https://github.com/gin-gonic/gin/pull/2122)
254+
205255
### MISC
256+
206257
* ci support go1.14 [#2262](https://github.com/gin-gonic/gin/pull/2262)
207258
* chore: upgrade depend version [#2231](https://github.com/gin-gonic/gin/pull/2231)
208259
* Drop support go1.10 [#2147](https://github.com/gin-gonic/gin/pull/2147)

go.mod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module github.com/gin-gonic/gin
33
go 1.18
44

55
require (
6-
github.com/bytedance/sonic v1.7.1
6+
github.com/bytedance/sonic v1.8.0
77
github.com/gin-contrib/sse v0.1.0
88
github.com/go-playground/validator/v10 v10.11.2
99
github.com/goccy/go-json v0.10.0
@@ -22,14 +22,14 @@ require (
2222
github.com/davecgh/go-spew v1.1.1 // indirect
2323
github.com/go-playground/locales v0.14.1 // indirect
2424
github.com/go-playground/universal-translator v0.18.1 // indirect
25-
github.com/klauspost/cpuid/v2 v2.0.14 // indirect
25+
github.com/klauspost/cpuid/v2 v2.0.9 // indirect
2626
github.com/kr/text v0.2.0 // indirect
2727
github.com/leodido/go-urn v1.2.1 // indirect
2828
github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421 // indirect
2929
github.com/modern-go/reflect2 v1.0.2 // indirect
3030
github.com/pmezard/go-difflib v1.0.0 // indirect
3131
github.com/twitchyliquid64/golang-asm v0.15.1 // indirect
32-
golang.org/x/arch v0.0.0-20220412001346-fc48f9fe4c15 // indirect
32+
golang.org/x/arch v0.0.0-20210923205945-b76863e36670 // indirect
3333
golang.org/x/crypto v0.5.0 // indirect
3434
golang.org/x/sys v0.5.0 // indirect
3535
golang.org/x/text v0.7.0 // indirect

go.sum

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
github.com/bytedance/sonic v1.5.0/go.mod h1:ED5hyg4y6t3/9Ku1R6dU/4KyJ48DZ4jPhfY1O2AihPM=
2-
github.com/bytedance/sonic v1.7.1 h1:UYWEKUHQDye89c2U6zvrvuxWdGCI/wCrZITFQmKGtGc=
3-
github.com/bytedance/sonic v1.7.1/go.mod h1:i736AoUSYt75HyZLoJW9ERYxcy6eaN6h4BZXU064P/U=
2+
github.com/bytedance/sonic v1.8.0 h1:ea0Xadu+sHlu7x5O3gKhRpQ1IKiMrSiHttPF0ybECuA=
3+
github.com/bytedance/sonic v1.8.0/go.mod h1:i736AoUSYt75HyZLoJW9ERYxcy6eaN6h4BZXU064P/U=
44
github.com/chenzhuoyu/base64x v0.0.0-20211019084208-fb5309c8db06/go.mod h1:DH46F32mSOjUmXrMHnKwZdA8wcEefY7UVqBKYGjpdQY=
55
github.com/chenzhuoyu/base64x v0.0.0-20221115062448-fe3a3abad311 h1:qSGYFH7+jGhDF8vLC+iwCD4WpbV1EBDSzWkJODFLams=
66
github.com/chenzhuoyu/base64x v0.0.0-20221115062448-fe3a3abad311/go.mod h1:b583jCggY9gE99b6G5LEC39OIiVsWj+R97kbl5odCEk=
@@ -25,9 +25,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/
2525
github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=
2626
github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM=
2727
github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo=
28+
github.com/klauspost/cpuid/v2 v2.0.9 h1:lgaqFMSdTdQYdZ04uHyN2d/eKdOMyi2YLSvlQIBFYa4=
2829
github.com/klauspost/cpuid/v2 v2.0.9/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg=
29-
github.com/klauspost/cpuid/v2 v2.0.14 h1:QRqdp6bb9M9S5yyKeYteXKuoKE4p0tGlra81fKOpWH8=
30-
github.com/klauspost/cpuid/v2 v2.0.14/go.mod h1:g2LTdtYhdyuGPqyWyv7qRAmj1WBqxuObKfj5c0PQa7c=
3130
github.com/kr/pretty v0.3.0 h1:WgNl7dwNpEZ6jJ9k1snq4pZsg7DOEN8hP9Xw0Tsjwk0=
3231
github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
3332
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
@@ -58,9 +57,8 @@ github.com/twitchyliquid64/golang-asm v0.15.1 h1:SU5vSMR7hnwNxj24w34ZyCi/FmDZTkS
5857
github.com/twitchyliquid64/golang-asm v0.15.1/go.mod h1:a1lVb/DtPvCB8fslRZhAngC2+aY1QWCk3Cedj/Gdt08=
5958
github.com/ugorji/go/codec v1.2.9 h1:rmenucSohSTiyL09Y+l2OCk+FrMxGMzho2+tjr5ticU=
6059
github.com/ugorji/go/codec v1.2.9/go.mod h1:UNopzCgEMSXjBc6AOMqYvWC1ktqTAfzJZUZgYf6w6lg=
60+
golang.org/x/arch v0.0.0-20210923205945-b76863e36670 h1:18EFjUmQOcUvxNYSkA6jO9VAiXCnxFY6NyDX0bHDmkU=
6161
golang.org/x/arch v0.0.0-20210923205945-b76863e36670/go.mod h1:5om86z9Hs0C8fWVUuoMHwpExlXzs5Tkyp9hOrfG7pp8=
62-
golang.org/x/arch v0.0.0-20220412001346-fc48f9fe4c15 h1:GVfVkciLYxn5mY5EncwAe0SXUn9Rm81rRkZ0TTmn/cU=
63-
golang.org/x/arch v0.0.0-20220412001346-fc48f9fe4c15/go.mod h1:5om86z9Hs0C8fWVUuoMHwpExlXzs5Tkyp9hOrfG7pp8=
6462
golang.org/x/crypto v0.5.0 h1:U/0M97KRkSFvyD/3FSmdP5W5swImpNgle/EHFhOsQPE=
6563
golang.org/x/crypto v0.5.0/go.mod h1:NK/OQwhpMQP3MwtdjgLlYHnH9ebylxKWv3e0fK+mkQU=
6664
golang.org/x/net v0.7.0 h1:rJrUqqhjsgNp7KqAIc25s9pZnjU7TUcSY7HcVZjdn1g=

version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
package gin
66

77
// Version is the current gin framework's version.
8-
const Version = "v1.8.2"
8+
const Version = "v1.9.0"

0 commit comments

Comments
 (0)