Skip to content
Myr

docs: document and finalize Gin v1.12.0 release (#4551)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

* docs: document and finalize Gin v1.12.0 release - Add changelog entries for the Gin v1.12.0 release, covering new features, enhancements, bug fixes, build updates, and dependency upgrades - Update all historical changelog entries to consistently use the same bullet style - Bump Gin version constant to v1.12.0 - Update README to announce Gin 1.12.0 instead of 1.11.0 Signed-off-by: appleboy <appleboy.tw@gmail.com> * Update CHANGELOG.md Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> ---------

authored by Bo-Yi Wu · committed by GitHub · parent ae3f524 · Browse files · 3 files+311 added−267 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Trailers

  • Signed-off-by: appleboy <appleboy.tw@gmail.com>
  • Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

Diff stats

3 files+311 added−267 removed

  • other:+311 added−267 removed

3 files+311 added−267 removed

modified:CHANGELOG.md+309 added-265 removed
1# Gin ChangeLog23## Gin v1.12.045### Features67- feat(render): add bson protocol ([#4145](https://github.com/gin-gonic/gin/pull/4145))8- feat(context): add GetError and GetErrorSlice methods for error retrieval ([#4502](https://github.com/gin-gonic/gin/pull/4502))9- feat(binding): add support for encoding.UnmarshalText in uri/query binding ([#4203](https://github.com/gin-gonic/gin/pull/4203))10- feat(gin): add option to use escaped path ([#4420](https://github.com/gin-gonic/gin/pull/4420))11- feat(context): add Protocol Buffers support to content negotiation ([#4423](https://github.com/gin-gonic/gin/pull/4423))12- feat(context): implemented Delete method ([#38e7651](https://github.com/gin-gonic/gin/commit/38e7651))13- feat(logger): color latency ([#4146](https://github.com/gin-gonic/gin/pull/4146))1415### Enhancements1617- perf(tree): reduce allocations in findCaseInsensitivePath ([#4417](https://github.com/gin-gonic/gin/pull/4417))18- perf(recovery): optimize line reading in stack function ([#4466](https://github.com/gin-gonic/gin/pull/4466))19- perf(path): replace regex with custom functions in redirectTrailingSlash ([#4414](https://github.com/gin-gonic/gin/pull/4414))20- perf(tree): optimize path parsing using strings.Count ([#4246](https://github.com/gin-gonic/gin/pull/4246))21- chore(logger): allow skipping query string output ([#4547](https://github.com/gin-gonic/gin/pull/4547))22- chore(context): always trust xff headers from unix socket ([#3359](https://github.com/gin-gonic/gin/pull/3359))23- chore(response): prevent Flush() panic when the underlying ResponseWriter does not implement `http.Flusher` ([#4479](https://github.com/gin-gonic/gin/pull/4479))24- refactor(recovery): smart error comparison ([#4142](https://github.com/gin-gonic/gin/pull/4142))25- refactor(context): replace hardcoded localhost IPs with constants ([#4481](https://github.com/gin-gonic/gin/pull/4481))26- refactor(utils): move util functions to utils.go ([#4467](https://github.com/gin-gonic/gin/pull/4467))27- refactor(binding): use maps.Copy for cleaner map handling ([#4352](https://github.com/gin-gonic/gin/pull/4352))28- refactor(context): using maps.Clone ([#4333](https://github.com/gin-gonic/gin/pull/4333))29- refactor(ginS): use sync.OnceValue to simplify engine function ([#4314](https://github.com/gin-gonic/gin/pull/4314))30- refactor: replace magic numbers with named constants in bodyAllowedForStatus ([#4529](https://github.com/gin-gonic/gin/pull/4529))31- refactor: for loop can be modernized using range over int ([#4392](https://github.com/gin-gonic/gin/pull/4392))3233### Bug Fixes3435- fix(tree): panic in findCaseInsensitivePathRec with RedirectFixedPath ([#4535](https://github.com/gin-gonic/gin/pull/4535))36- fix(render): write content length in Data.Render ([#4206](https://github.com/gin-gonic/gin/pull/4206))37- fix(context): ClientIP handling for multiple X-Forwarded-For header values ([#4472](https://github.com/gin-gonic/gin/pull/4472))38- fix(binding): empty value error ([#2169](https://github.com/gin-gonic/gin/pull/2169))39- fix(recover): suppress http.ErrAbortHandler in recover ([#4336](https://github.com/gin-gonic/gin/pull/4336))40- fix(gin): literal colon routes not working with engine.Handler() ([#4415](https://github.com/gin-gonic/gin/pull/4415))41- fix(gin): close os.File in RunFd to prevent resource leak ([#4422](https://github.com/gin-gonic/gin/pull/4422))42- fix(response): refine hijack behavior for response lifecycle ([#4373](https://github.com/gin-gonic/gin/pull/4373))43- fix(binding): improve empty slice/array handling in form binding ([#4380](https://github.com/gin-gonic/gin/pull/4380))44- fix(debug): version mismatch ([#4403](https://github.com/gin-gonic/gin/pull/4403))45- fix: correct typos, improve documentation clarity, and remove dead code ([#4511](https://github.com/gin-gonic/gin/pull/4511))4647### Build process updates / CI4849- ci: update Go version support to 1.25+ across CI and docs ([#4550](https://github.com/gin-gonic/gin/pull/4550))50- chore: bump minimum Go version to 1.24 and update workflows ([#4388](https://github.com/gin-gonic/gin/pull/4388))51- chore(binding): upgrade bson dependency to mongo-driver v2 ([#4549](https://github.com/gin-gonic/gin/pull/4549))5253## Gin v1.11.05455### Features567* feat(gin): Experimental support for HTTP/3 using quic-go/quic-go ([#3210](https://github.com/gin-gonic/gin/pull/3210))8* feat(form): add array collection format in form binding ([#3986](https://github.com/gin-gonic/gin/pull/3986)), add custom string slice for form tag unmarshal ([#3970](https://github.com/gin-gonic/gin/pull/3970))9* feat(binding): add BindPlain ([#3904](https://github.com/gin-gonic/gin/pull/3904))10* feat(fs): Export, test and document OnlyFilesFS ([#3939](https://github.com/gin-gonic/gin/pull/3939))11* feat(binding): add support for unixMilli and unixMicro ([#4190](https://github.com/gin-gonic/gin/pull/4190))12* feat(form): Support default values for collections in form binding ([#4048](https://github.com/gin-gonic/gin/pull/4048))13* feat(context): GetXxx added support for more go native types ([#3633](https://github.com/gin-gonic/gin/pull/3633))57- feat(gin): Experimental support for HTTP/3 using quic-go/quic-go ([#3210](https://github.com/gin-gonic/gin/pull/3210))58- feat(form): add array collection format in form binding ([#3986](https://github.com/gin-gonic/gin/pull/3986)), add custom string slice for form tag unmarshal ([#3970](https://github.com/gin-gonic/gin/pull/3970))59- feat(binding): add BindPlain ([#3904](https://github.com/gin-gonic/gin/pull/3904))60- feat(fs): Export, test and document OnlyFilesFS ([#3939](https://github.com/gin-gonic/gin/pull/3939))61- feat(binding): add support for unixMilli and unixMicro ([#4190](https://github.com/gin-gonic/gin/pull/4190))62- feat(form): Support default values for collections in form binding ([#4048](https://github.com/gin-gonic/gin/pull/4048))63- feat(context): GetXxx added support for more go native types ([#3633](https://github.com/gin-gonic/gin/pull/3633))6465### Enhancements6617* perf(context): optimize getMapFromFormData performance ([#4339](https://github.com/gin-gonic/gin/pull/4339))18* refactor(tree): replace string(/) with "/" in node.insertChild ([#4354](https://github.com/gin-gonic/gin/pull/4354))19* refactor(render): remove headers parameter from writeHeader ([#4353](https://github.com/gin-gonic/gin/pull/4353))20* refactor(context): simplify "GetType()" functions ([#4080](https://github.com/gin-gonic/gin/pull/4080))21* refactor(slice): simplify SliceValidationError Error method ([#3910](https://github.com/gin-gonic/gin/pull/3910))22* refactor(context):Avoid using filepath.Dir twice in SaveUploadedFile ([#4181](https://github.com/gin-gonic/gin/pull/4181))23* refactor(context): refactor context handling and improve test robustness ([#4066](https://github.com/gin-gonic/gin/pull/4066))24* refactor(binding): use strings.Cut to replace strings.Index ([#3522](https://github.com/gin-gonic/gin/pull/3522))25* refactor(context): add an optional permission parameter to SaveUploadedFile ([#4068](https://github.com/gin-gonic/gin/pull/4068))26* refactor(context): verify URL is Non-nil in initQueryCache() ([#3969](https://github.com/gin-gonic/gin/pull/3969))27* refactor(context): YAML judgment logic in Negotiate ([#3966](https://github.com/gin-gonic/gin/pull/3966))28* tree: replace the self-defined 'min' to official one ([#3975](https://github.com/gin-gonic/gin/pull/3975))29* context: Remove redundant filepath.Dir usage ([#4181](https://github.com/gin-gonic/gin/pull/4181))67- perf(context): optimize getMapFromFormData performance ([#4339](https://github.com/gin-gonic/gin/pull/4339))68- refactor(tree): replace string(/) with "/" in node.insertChild ([#4354](https://github.com/gin-gonic/gin/pull/4354))69- refactor(render): remove headers parameter from writeHeader ([#4353](https://github.com/gin-gonic/gin/pull/4353))70- refactor(context): simplify "GetType()" functions ([#4080](https://github.com/gin-gonic/gin/pull/4080))71- refactor(slice): simplify SliceValidationError Error method ([#3910](https://github.com/gin-gonic/gin/pull/3910))72- refactor(context):Avoid using filepath.Dir twice in SaveUploadedFile ([#4181](https://github.com/gin-gonic/gin/pull/4181))73- refactor(context): refactor context handling and improve test robustness ([#4066](https://github.com/gin-gonic/gin/pull/4066))74- refactor(binding): use strings.Cut to replace strings.Index ([#3522](https://github.com/gin-gonic/gin/pull/3522))75- refactor(context): add an optional permission parameter to SaveUploadedFile ([#4068](https://github.com/gin-gonic/gin/pull/4068))76- refactor(context): verify URL is Non-nil in initQueryCache() ([#3969](https://github.com/gin-gonic/gin/pull/3969))77- refactor(context): YAML judgment logic in Negotiate ([#3966](https://github.com/gin-gonic/gin/pull/3966))78- tree: replace the self-defined 'min' to official one ([#3975](https://github.com/gin-gonic/gin/pull/3975))79- context: Remove redundant filepath.Dir usage ([#4181](https://github.com/gin-gonic/gin/pull/4181))8081### Bug Fixes8233* fix: prevent middleware re-entry issue in HandleContext ([#3987](https://github.com/gin-gonic/gin/pull/3987))34* fix(binding): prevent duplicate decoding and add validation in decodeToml ([#4193](https://github.com/gin-gonic/gin/pull/4193))35* fix(gin): Do not panic when handling method not allowed on empty tree ([#4003](https://github.com/gin-gonic/gin/pull/4003))36* fix(gin): data race warning for gin mode ([#1580](https://github.com/gin-gonic/gin/pull/1580))37* fix(context): verify URL is Non-nil in initQueryCache() ([#3969](https://github.com/gin-gonic/gin/pull/3969))38* fix(context): YAML judgment logic in Negotiate ([#3966](https://github.com/gin-gonic/gin/pull/3966))39* fix(context): check handler is nil ([#3413](https://github.com/gin-gonic/gin/pull/3413))40* fix(readme): fix broken link to English documentation ([#4222](https://github.com/gin-gonic/gin/pull/4222))41* fix(tree): Keep panic infos consistent when wildcard type build faild ([#4077](https://github.com/gin-gonic/gin/pull/4077))83- fix: prevent middleware re-entry issue in HandleContext ([#3987](https://github.com/gin-gonic/gin/pull/3987))84- fix(binding): prevent duplicate decoding and add validation in decodeToml ([#4193](https://github.com/gin-gonic/gin/pull/4193))85- fix(gin): Do not panic when handling method not allowed on empty tree ([#4003](https://github.com/gin-gonic/gin/pull/4003))86- fix(gin): data race warning for gin mode ([#1580](https://github.com/gin-gonic/gin/pull/1580))87- fix(context): verify URL is Non-nil in initQueryCache() ([#3969](https://github.com/gin-gonic/gin/pull/3969))88- fix(context): YAML judgment logic in Negotiate ([#3966](https://github.com/gin-gonic/gin/pull/3966))89- fix(context): check handler is nil ([#3413](https://github.com/gin-gonic/gin/pull/3413))90- fix(readme): fix broken link to English documentation ([#4222](https://github.com/gin-gonic/gin/pull/4222))91- fix(tree): Keep panic infos consistent when wildcard type build faild ([#4077](https://github.com/gin-gonic/gin/pull/4077))9293### Build process updates / CI9445* ci: integrate Trivy vulnerability scanning into CI workflow ([#4359](https://github.com/gin-gonic/gin/pull/4359))46* ci: support Go 1.25 in CI/CD ([#4341](https://github.com/gin-gonic/gin/pull/4341))47* build(deps): upgrade github.com/bytedance/sonic from v1.13.2 to v1.14.0 ([#4342](https://github.com/gin-gonic/gin/pull/4342))48* ci: add Go version 1.24 to GitHub Actions ([#4154](https://github.com/gin-gonic/gin/pull/4154))49* build: update Gin minimum Go version to 1.21 ([#3960](https://github.com/gin-gonic/gin/pull/3960))50* ci(lint): enable new linters (testifylint, usestdlibvars, perfsprint, etc.) ([#4010](https://github.com/gin-gonic/gin/pull/4010), [#4091](https://github.com/gin-gonic/gin/pull/4091), [#4090](https://github.com/gin-gonic/gin/pull/4090))51* ci(lint): update workflows and improve test request consistency ([#4126](https://github.com/gin-gonic/gin/pull/4126))95- ci: integrate Trivy vulnerability scanning into CI workflow ([#4359](https://github.com/gin-gonic/gin/pull/4359))96- ci: support Go 1.25 in CI/CD ([#4341](https://github.com/gin-gonic/gin/pull/4341))97- build(deps): upgrade github.com/bytedance/sonic from v1.13.2 to v1.14.0 ([#4342](https://github.com/gin-gonic/gin/pull/4342))98- ci: add Go version 1.24 to GitHub Actions ([#4154](https://github.com/gin-gonic/gin/pull/4154))99- build: update Gin minimum Go version to 1.21 ([#3960](https://github.com/gin-gonic/gin/pull/3960))100- ci(lint): enable new linters (testifylint, usestdlibvars, perfsprint, etc.) ([#4010](https://github.com/gin-gonic/gin/pull/4010), [#4091](https://github.com/gin-gonic/gin/pull/4091), [#4090](https://github.com/gin-gonic/gin/pull/4090))101- ci(lint): update workflows and improve test request consistency ([#4126](https://github.com/gin-gonic/gin/pull/4126))102103### Dependency updates10455* chore(deps): bump google.golang.org/protobuf from 1.36.6 to 1.36.9 ([#4346](https://github.com/gin-gonic/gin/pull/4346), [#4356](https://github.com/gin-gonic/gin/pull/4356))56* chore(deps): bump github.com/stretchr/testify from 1.10.0 to 1.11.1 ([#4347](https://github.com/gin-gonic/gin/pull/4347))57* chore(deps): bump actions/setup-go from 5 to 6 ([#4351](https://github.com/gin-gonic/gin/pull/4351))58* chore(deps): bump github.com/quic-go/quic-go from 0.53.0 to 0.54.0 ([#4328](https://github.com/gin-gonic/gin/pull/4328))59* chore(deps): bump golang.org/x/net from 0.33.0 to 0.38.0 ([#4178](https://github.com/gin-gonic/gin/pull/4178), [#4221](https://github.com/gin-gonic/gin/pull/4221))60* chore(deps): bump github.com/go-playground/validator/v10 from 10.20.0 to 10.22.1 ([#4052](https://github.com/gin-gonic/gin/pull/4052))105- chore(deps): bump google.golang.org/protobuf from 1.36.6 to 1.36.9 ([#4346](https://github.com/gin-gonic/gin/pull/4346), [#4356](https://github.com/gin-gonic/gin/pull/4356))106- chore(deps): bump github.com/stretchr/testify from 1.10.0 to 1.11.1 ([#4347](https://github.com/gin-gonic/gin/pull/4347))107- chore(deps): bump actions/setup-go from 5 to 6 ([#4351](https://github.com/gin-gonic/gin/pull/4351))108- chore(deps): bump github.com/quic-go/quic-go from 0.53.0 to 0.54.0 ([#4328](https://github.com/gin-gonic/gin/pull/4328))109- chore(deps): bump golang.org/x/net from 0.33.0 to 0.38.0 ([#4178](https://github.com/gin-gonic/gin/pull/4178), [#4221](https://github.com/gin-gonic/gin/pull/4221))110- chore(deps): bump github.com/go-playground/validator/v10 from 10.20.0 to 10.22.1 ([#4052](https://github.com/gin-gonic/gin/pull/4052))111112### Documentation updates11364* docs(changelog): update release notes for Gin v1.10.1 ([#4360](https://github.com/gin-gonic/gin/pull/4360))65* docs: Fixing English grammar mistakes and awkward sentence structure in doc/doc.md ([#4207](https://github.com/gin-gonic/gin/pull/4207))66* docs: update documentation and release notes for Gin v1.10.0 ([#3953](https://github.com/gin-gonic/gin/pull/3953))67* docs: fix typo in Gin Quick Start ([#3997](https://github.com/gin-gonic/gin/pull/3997))68* docs: fix comment and link issues ([#4205](https://github.com/gin-gonic/gin/pull/4205), [#3938](https://github.com/gin-gonic/gin/pull/3938))69* docs: fix route group example code ([#4020](https://github.com/gin-gonic/gin/pull/4020))70* docs(readme): add Portuguese documentation ([#4078](https://github.com/gin-gonic/gin/pull/4078))71* docs(context): fix some function names in comment ([#4079](https://github.com/gin-gonic/gin/pull/4079))114- docs(changelog): update release notes for Gin v1.10.1 ([#4360](https://github.com/gin-gonic/gin/pull/4360))115- docs: Fixing English grammar mistakes and awkward sentence structure in doc/doc.md ([#4207](https://github.com/gin-gonic/gin/pull/4207))116- docs: update documentation and release notes for Gin v1.10.0 ([#3953](https://github.com/gin-gonic/gin/pull/3953))117- docs: fix typo in Gin Quick Start ([#3997](https://github.com/gin-gonic/gin/pull/3997))118- docs: fix comment and link issues ([#4205](https://github.com/gin-gonic/gin/pull/4205), [#3938](https://github.com/gin-gonic/gin/pull/3938))119- docs: fix route group example code ([#4020](https://github.com/gin-gonic/gin/pull/4020))120- docs(readme): add Portuguese documentation ([#4078](https://github.com/gin-gonic/gin/pull/4078))121- docs(context): fix some function names in comment ([#4079](https://github.com/gin-gonic/gin/pull/4079))122123---124125## Gin v1.10.1126127### Features12879* refactor: strengthen HTTPS security and improve code organization80* feat(binding): Support custom BindUnmarshaler for binding. (#3933)129- refactor: strengthen HTTPS security and improve code organization130- feat(binding): Support custom BindUnmarshaler for binding. (#3933)131132### Enhancements13384* chore(deps): bump github.com/bytedance/sonic from 1.11.3 to 1.11.6 (#3940)85* chore(deps): bump golangci/golangci-lint-action from 4 to 5 (#3941)86* chore: update external dependencies to latest versions (#3950)87* chore: update various Go dependencies to latest versions (#3901)88* chore: refactor configuration files for better readability (#3951)89* chore: update changelog categories and improve documentation (#3917)90* feat: update version constant to v1.10.0 (#3952)134- chore(deps): bump github.com/bytedance/sonic from 1.11.3 to 1.11.6 (#3940)135- chore(deps): bump golangci/golangci-lint-action from 4 to 5 (#3941)136- chore: update external dependencies to latest versions (#3950)137- chore: update various Go dependencies to latest versions (#3901)138- chore: refactor configuration files for better readability (#3951)139- chore: update changelog categories and improve documentation (#3917)140- feat: update version constant to v1.10.0 (#3952)141142### Build process updates14394* ci(release): refactor changelog regex patterns and exclusions (#3914)95* ci(Makefile): vet command add .PHONY (#3915)144- ci(release): refactor changelog regex patterns and exclusions (#3914)145- ci(Makefile): vet command add .PHONY (#3915)146147## Gin v1.10.0148149### Features150101* feat(auth): add proxy-server authentication (#3877) (@EndlessParadox1)102* feat(bind): ShouldBindBodyWith shortcut and change doc (#3871) (@RedCrazyGhost)103* feat(binding): Support custom BindUnmarshaler for binding. (#3933) (@dkkb)104* feat(binding): support override default binding implement (#3514) (@ssfyn)105* feat(engine): Added `OptionFunc` and `With` (#3572) (@flc1125)106* feat(logger): ability to skip logs based on user-defined logic (#3593) (@palvaneh)151- feat(auth): add proxy-server authentication (#3877) (@EndlessParadox1)152- feat(bind): ShouldBindBodyWith shortcut and change doc (#3871) (@RedCrazyGhost)153- feat(binding): Support custom BindUnmarshaler for binding. (#3933) (@dkkb)154- feat(binding): support override default binding implement (#3514) (@ssfyn)155- feat(engine): Added `OptionFunc` and `With` (#3572) (@flc1125)156- feat(logger): ability to skip logs based on user-defined logic (#3593) (@palvaneh)157158### Bug fixes159110* Revert "fix(uri): query binding bug (#3236)" (#3899) (@appleboy)111* fix(binding): binding error while not upload file (#3819) (#3820) (@clearcodecn)112* fix(binding): dereference pointer to struct (#3199) (@echovl)113* fix(context): make context Value method adhere to Go standards (#3897) (@FarmerChillax)114* fix(engine): fix unit test (#3878) (@flc1125)115* fix(header): Allow header according to RFC 7231 (HTTP 405) (#3759) (@Crocmagnon)116* fix(route): Add fullPath in context copy (#3784) (@KarthikReddyPuli)117* fix(router): catch-all conflicting wildcard (#3812) (@FirePing32)118* fix(sec): upgrade golang.org/x/crypto to 0.17.0 (#3832) (@chncaption)119* fix(tree): correctly expand the capacity of params (#3502) (@georgijd-form3)120* fix(uri): query binding bug (#3236) (@illiafox)121* fix: Add pointer support for url query params (#3659) (#3666) (@omkar-foss)122* fix: protect Context.Keys map when call Copy method (#3873) (@kingcanfish)160- Revert "fix(uri): query binding bug (#3236)" (#3899) (@appleboy)161- fix(binding): binding error while not upload file (#3819) (#3820) (@clearcodecn)162- fix(binding): dereference pointer to struct (#3199) (@echovl)163- fix(context): make context Value method adhere to Go standards (#3897) (@FarmerChillax)164- fix(engine): fix unit test (#3878) (@flc1125)165- fix(header): Allow header according to RFC 7231 (HTTP 405) (#3759) (@Crocmagnon)166- fix(route): Add fullPath in context copy (#3784) (@KarthikReddyPuli)167- fix(router): catch-all conflicting wildcard (#3812) (@FirePing32)168- fix(sec): upgrade golang.org/x/crypto to 0.17.0 (#3832) (@chncaption)169- fix(tree): correctly expand the capacity of params (#3502) (@georgijd-form3)170- fix(uri): query binding bug (#3236) (@illiafox)171- fix: Add pointer support for url query params (#3659) (#3666) (@omkar-foss)172- fix: protect Context.Keys map when call Copy method (#3873) (@kingcanfish)173174### Enhancements175126* chore(CI): update release args (#3595) (@qloog)127* chore(IP): add TrustedPlatform constant for Fly.io. (#3839) (@ab)128* chore(debug): add ability to override the debugPrint statement (#2337) (@josegonzalez)129* chore(deps): update dependencies to latest versions (#3835) (@appleboy)130* chore(header): Add support for RFC 9512: application/yaml (#3851) (@vincentbernat)131* chore(http): use white color for HTTP 1XX (#3741) (@viralparmarme)132* chore(optimize): the ShouldBindUri method of the Context struct (#3911) (@1911860538)133* chore(perf): Optimize the Copy method of the Context struct (#3859) (@1911860538)134* chore(refactor): modify interface check way (#3855) (@demoManito)135* chore(request): check reader if it's nil before reading (#3419) (@noahyao1024)136* chore(security): upgrade Protobuf for CVE-2024-24786 (#3893) (@Fotkurz)137* chore: refactor CI and update dependencies (#3848) (@appleboy)138* chore: refactor configuration files for better readability (#3951) (@appleboy)139* chore: update GitHub Actions configuration (#3792) (@appleboy)140* chore: update changelog categories and improve documentation (#3917) (@appleboy)141* chore: update dependencies to latest versions (#3694) (@appleboy)142* chore: update external dependencies to latest versions (#3950) (@appleboy)143* chore: update various Go dependencies to latest versions (#3901) (@appleboy)176- chore(CI): update release args (#3595) (@qloog)177- chore(IP): add TrustedPlatform constant for Fly.io. (#3839) (@ab)178- chore(debug): add ability to override the debugPrint statement (#2337) (@josegonzalez)179- chore(deps): update dependencies to latest versions (#3835) (@appleboy)180- chore(header): Add support for RFC 9512: application/yaml (#3851) (@vincentbernat)181- chore(http): use white color for HTTP 1XX (#3741) (@viralparmarme)182- chore(optimize): the ShouldBindUri method of the Context struct (#3911) (@1911860538)183- chore(perf): Optimize the Copy method of the Context struct (#3859) (@1911860538)184- chore(refactor): modify interface check way (#3855) (@demoManito)185- chore(request): check reader if it's nil before reading (#3419) (@noahyao1024)186- chore(security): upgrade Protobuf for CVE-2024-24786 (#3893) (@Fotkurz)187- chore: refactor CI and update dependencies (#3848) (@appleboy)188- chore: refactor configuration files for better readability (#3951) (@appleboy)189- chore: update GitHub Actions configuration (#3792) (@appleboy)190- chore: update changelog categories and improve documentation (#3917) (@appleboy)191- chore: update dependencies to latest versions (#3694) (@appleboy)192- chore: update external dependencies to latest versions (#3950) (@appleboy)193- chore: update various Go dependencies to latest versions (#3901) (@appleboy)194195### Build process updates196147* build(codecov): Added a codecov configuration (#3891) (@flc1125)148* ci(Makefile): vet command add .PHONY (#3915) (@imalasong)149* ci(lint): update tooling and workflows for consistency (#3834) (@appleboy)150* ci(release): refactor changelog regex patterns and exclusions (#3914) (@appleboy)151* ci(testing): add go1.22 version (#3842) (@appleboy)197- build(codecov): Added a codecov configuration (#3891) (@flc1125)198- ci(Makefile): vet command add .PHONY (#3915) (@imalasong)199- ci(lint): update tooling and workflows for consistency (#3834) (@appleboy)200- ci(release): refactor changelog regex patterns and exclusions (#3914) (@appleboy)201- ci(testing): add go1.22 version (#3842) (@appleboy)202203### Documentation updates204155* docs(context): Added deprecation comments to BindWith (#3880) (@flc1125)156* docs(middleware): comments to function `BasicAuthForProxy` (#3881) (@EndlessParadox1)157* docs: Add document to constant `AuthProxyUserKey` and `BasicAuthForProxy`. (#3887) (@EndlessParadox1)158* docs: fix typo in comment (#3868) (@testwill)159* docs: fix typo in function documentation (#3872) (@TotomiEcio)160* docs: remove redundant comments (#3765) (@WeiTheShinobi)161* feat: update version constant to v1.10.0 (#3952) (@appleboy)205- docs(context): Added deprecation comments to BindWith (#3880) (@flc1125)206- docs(middleware): comments to function `BasicAuthForProxy` (#3881) (@EndlessParadox1)207- docs: Add document to constant `AuthProxyUserKey` and `BasicAuthForProxy`. (#3887) (@EndlessParadox1)208- docs: fix typo in comment (#3868) (@testwill)209- docs: fix typo in function documentation (#3872) (@TotomiEcio)210- docs: remove redundant comments (#3765) (@WeiTheShinobi)211- feat: update version constant to v1.10.0 (#3952) (@appleboy)212213### Others214165* Upgrade golang.org/x/net -> v0.13.0 (#3684) (@cpcf)166* test(git): gitignore add develop tools (#3370) (@demoManito)167* test(http): use constant instead of numeric literal (#3863) (@testwill)168* test(path): Optimize unit test execution results (#3883) (@flc1125)169* test(render): increased unit tests coverage (#3691) (@araujo88)215- Upgrade golang.org/x/net -> v0.13.0 (#3684) (@cpcf)216- test(git): gitignore add develop tools (#3370) (@demoManito)217- test(http): use constant instead of numeric literal (#3863) (@testwill)218- test(path): Optimize unit test execution results (#3883) (@flc1125)219- test(render): increased unit tests coverage (#3691) (@araujo88)220221## Gin v1.9.1222223### BUG FIXES224175* fix Request.Context() checks [#3512](https://github.com/gin-gonic/gin/pull/3512)225- fix Request.Context() checks [#3512](https://github.com/gin-gonic/gin/pull/3512)226227### SECURITY228179* fix lack of escaping of filename in Content-Disposition [#3556](https://github.com/gin-gonic/gin/pull/3556) 229- fix lack of escaping of filename in Content-Disposition [#3556](https://github.com/gin-gonic/gin/pull/3556)230231### ENHANCEMENTS232183* refactor: use bytes.ReplaceAll directly [#3455](https://github.com/gin-gonic/gin/pull/3455)184* convert strings and slices using the officially recommended way [#3344](https://github.com/gin-gonic/gin/pull/3344)185* improve render code coverage [#3525](https://github.com/gin-gonic/gin/pull/3525)233- refactor: use bytes.ReplaceAll directly [#3455](https://github.com/gin-gonic/gin/pull/3455)234- convert strings and slices using the officially recommended way [#3344](https://github.com/gin-gonic/gin/pull/3344)235- improve render code coverage [#3525](https://github.com/gin-gonic/gin/pull/3525)236237### DOCS238189* docs: changed documentation link for trusted proxies [#3575](https://github.com/gin-gonic/gin/pull/3575)190* chore: improve linting, testing, and GitHub Actions setup [#3583](https://github.com/gin-gonic/gin/pull/3583)239- docs: changed documentation link for trusted proxies [#3575](https://github.com/gin-gonic/gin/pull/3575)240- chore: improve linting, testing, and GitHub Actions setup [#3583](https://github.com/gin-gonic/gin/pull/3583)241242## Gin v1.9.0243244### BREAK CHANGES245196* Stop useless panicking in context and render [#2150](https://github.com/gin-gonic/gin/pull/2150)246- Stop useless panicking in context and render [#2150](https://github.com/gin-gonic/gin/pull/2150)247248### BUG FIXES249200* fix(router): tree bug where loop index is not decremented. [#3460](https://github.com/gin-gonic/gin/pull/3460)201* fix(context): panic on NegotiateFormat - index out of range [#3397](https://github.com/gin-gonic/gin/pull/3397)202* Add escape logic for header [#3500](https://github.com/gin-gonic/gin/pull/3500) and [#3503](https://github.com/gin-gonic/gin/pull/3503)250- fix(router): tree bug where loop index is not decremented. [#3460](https://github.com/gin-gonic/gin/pull/3460)251- fix(context): panic on NegotiateFormat - index out of range [#3397](https://github.com/gin-gonic/gin/pull/3397)252- Add escape logic for header [#3500](https://github.com/gin-gonic/gin/pull/3500) and [#3503](https://github.com/gin-gonic/gin/pull/3503)253254### SECURITY255206* Fix the GO-2022-0969 and GO-2022-0288 vulnerabilities [#3333](https://github.com/gin-gonic/gin/pull/3333)207* fix(security): vulnerability GO-2023-1571 [#3505](https://github.com/gin-gonic/gin/pull/3505)256- Fix the GO-2022-0969 and GO-2022-0288 vulnerabilities [#3333](https://github.com/gin-gonic/gin/pull/3333)257- fix(security): vulnerability GO-2023-1571 [#3505](https://github.com/gin-gonic/gin/pull/3505)258259### ENHANCEMENTS260211* feat: add sonic json support [#3184](https://github.com/gin-gonic/gin/pull/3184)212* chore(file): Creates a directory named path [#3316](https://github.com/gin-gonic/gin/pull/3316)213* fix: modify interface check way [#3327](https://github.com/gin-gonic/gin/pull/3327)214* remove deprecated of package io/ioutil [#3395](https://github.com/gin-gonic/gin/pull/3395)215* refactor: avoid calling strings.ToLower twice [#3343](https://github.com/gin-gonic/gin/pull/3433)216* console logger HTTP status code bug fixed [#3453](https://github.com/gin-gonic/gin/pull/3453)217* chore(yaml): upgrade dependency to v3 version [#3456](https://github.com/gin-gonic/gin/pull/3456)218* chore(router): match method added to routergroup for multiple HTTP methods supporting [#3464](https://github.com/gin-gonic/gin/pull/3464)219* chore(http): add support for go1.20 http.rwUnwrapper to gin.responseWriter [#3489](https://github.com/gin-gonic/gin/pull/3489)261- feat: add sonic json support [#3184](https://github.com/gin-gonic/gin/pull/3184)262- chore(file): Creates a directory named path [#3316](https://github.com/gin-gonic/gin/pull/3316)263- fix: modify interface check way [#3327](https://github.com/gin-gonic/gin/pull/3327)264- remove deprecated of package io/ioutil [#3395](https://github.com/gin-gonic/gin/pull/3395)265- refactor: avoid calling strings.ToLower twice [#3343](https://github.com/gin-gonic/gin/pull/3433)266- console logger HTTP status code bug fixed [#3453](https://github.com/gin-gonic/gin/pull/3453)267- chore(yaml): upgrade dependency to v3 version [#3456](https://github.com/gin-gonic/gin/pull/3456)268- chore(router): match method added to routergroup for multiple HTTP methods supporting [#3464](https://github.com/gin-gonic/gin/pull/3464)269- chore(http): add support for go1.20 http.rwUnwrapper to gin.responseWriter [#3489](https://github.com/gin-gonic/gin/pull/3489)270271### DOCS272223* docs: update markdown format [#3260](https://github.com/gin-gonic/gin/pull/3260)224* docs(readme): Add the TOML rendering example [#3400](https://github.com/gin-gonic/gin/pull/3400)225* docs(readme): move more example to docs/doc.md [#3449](https://github.com/gin-gonic/gin/pull/3449)226* docs: update markdown format [#3446](https://github.com/gin-gonic/gin/pull/3446)273- docs: update markdown format [#3260](https://github.com/gin-gonic/gin/pull/3260)274- docs(readme): Add the TOML rendering example [#3400](https://github.com/gin-gonic/gin/pull/3400)275- docs(readme): move more example to docs/doc.md [#3449](https://github.com/gin-gonic/gin/pull/3449)276- docs: update markdown format [#3446](https://github.com/gin-gonic/gin/pull/3446)277278## Gin v1.8.2279280### BUG FIXES281232* fix(route): redirectSlash bug ([#3227]((https://github.com/gin-gonic/gin/pull/3227)))233* 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)))282- fix(route): redirectSlash bug ([#3227](<(https://github.com/gin-gonic/gin/pull/3227)>))283- 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)>))284285### SECURITY286237* Fix the GO-2022-1144 vulnerability ([#3432]((https://github.com/gin-gonic/gin/pull/3432)))287- Fix the GO-2022-1144 vulnerability ([#3432](<(https://github.com/gin-gonic/gin/pull/3432)>))288289## Gin v1.8.1290291### ENHANCEMENTS292243* feat(context): add ContextWithFallback feature flag [#3172](https://github.com/gin-gonic/gin/pull/3172)293- feat(context): add ContextWithFallback feature flag [#3172](https://github.com/gin-gonic/gin/pull/3172)294295## Gin v1.8.0296297### BREAK CHANGES298249* 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`250* gin.Context with fallback value from gin.Context.Request.Context() [#2751](https://github.com/gin-gonic/gin/pull/2751)299- 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`300- gin.Context with fallback value from gin.Context.Request.Context() [#2751](https://github.com/gin-gonic/gin/pull/2751)301302### BUG FIXES303254* Fixed SetOutput() panics on go 1.17 [#2861](https://github.com/gin-gonic/gin/pull/2861)255* Fix: wrong when wildcard follows named param [#2983](https://github.com/gin-gonic/gin/pull/2983)256* Fix: missing sameSite when do context.reset() [#3123](https://github.com/gin-gonic/gin/pull/3123)304- Fixed SetOutput() panics on go 1.17 [#2861](https://github.com/gin-gonic/gin/pull/2861)305- Fix: wrong when wildcard follows named param [#2983](https://github.com/gin-gonic/gin/pull/2983)306- Fix: missing sameSite when do context.reset() [#3123](https://github.com/gin-gonic/gin/pull/3123)307308### ENHANCEMENTS309260* Use Header() instead of deprecated HeaderMap [#2694](https://github.com/gin-gonic/gin/pull/2694)261* RouterGroup.Handle regular match optimization of http method [#2685](https://github.com/gin-gonic/gin/pull/2685)262* Add support go-json, another drop-in json replacement [#2680](https://github.com/gin-gonic/gin/pull/2680)263* Use errors.New to replace fmt.Errorf will much better [#2707](https://github.com/gin-gonic/gin/pull/2707)264* Use Duration.Truncate for truncating precision [#2711](https://github.com/gin-gonic/gin/pull/2711)265* Get client IP when using Cloudflare [#2723](https://github.com/gin-gonic/gin/pull/2723)266* Optimize code adjust [#2700](https://github.com/gin-gonic/gin/pull/2700/files)267* Optimize code and reduce code cyclomatic complexity [#2737](https://github.com/gin-gonic/gin/pull/2737)268* Improve sliceValidateError.Error performance [#2765](https://github.com/gin-gonic/gin/pull/2765)269* Support custom struct tag [#2720](https://github.com/gin-gonic/gin/pull/2720)270* Improve router group tests [#2787](https://github.com/gin-gonic/gin/pull/2787)271* Fallback Context.Deadline() Context.Done() Context.Err() to Context.Request.Context() [#2769](https://github.com/gin-gonic/gin/pull/2769)272* Some codes optimize [#2830](https://github.com/gin-gonic/gin/pull/2830) [#2834](https://github.com/gin-gonic/gin/pull/2834) [#2838](https://github.com/gin-gonic/gin/pull/2838) [#2837](https://github.com/gin-gonic/gin/pull/2837) [#2788](https://github.com/gin-gonic/gin/pull/2788) [#2848](https://github.com/gin-gonic/gin/pull/2848) [#2851](https://github.com/gin-gonic/gin/pull/2851) [#2701](https://github.com/gin-gonic/gin/pull/2701)273* TrustedProxies: Add default IPv6 support and refactor [#2967](https://github.com/gin-gonic/gin/pull/2967)274* Test(route): expose performRequest func [#3012](https://github.com/gin-gonic/gin/pull/3012)275* Support h2c with prior knowledge [#1398](https://github.com/gin-gonic/gin/pull/1398)276* Feat attachment filename support utf8 [#3071](https://github.com/gin-gonic/gin/pull/3071)277* Feat: add StaticFileFS [#2749](https://github.com/gin-gonic/gin/pull/2749)278* Feat(context): return GIN Context from Value method [#2825](https://github.com/gin-gonic/gin/pull/2825)279* Feat: automatically SetMode to TestMode when run go test [#3139](https://github.com/gin-gonic/gin/pull/3139)280* Add TOML bining for gin [#3081](https://github.com/gin-gonic/gin/pull/3081)281* IPv6 add default trusted proxies [#3033](https://github.com/gin-gonic/gin/pull/3033)310- Use Header() instead of deprecated HeaderMap [#2694](https://github.com/gin-gonic/gin/pull/2694)311- RouterGroup.Handle regular match optimization of http method [#2685](https://github.com/gin-gonic/gin/pull/2685)312- Add support go-json, another drop-in json replacement [#2680](https://github.com/gin-gonic/gin/pull/2680)313- Use errors.New to replace fmt.Errorf will much better [#2707](https://github.com/gin-gonic/gin/pull/2707)314- Use Duration.Truncate for truncating precision [#2711](https://github.com/gin-gonic/gin/pull/2711)315- Get client IP when using Cloudflare [#2723](https://github.com/gin-gonic/gin/pull/2723)316- Optimize code adjust [#2700](https://github.com/gin-gonic/gin/pull/2700/files)317- Optimize code and reduce code cyclomatic complexity [#2737](https://github.com/gin-gonic/gin/pull/2737)318- Improve sliceValidateError.Error performance [#2765](https://github.com/gin-gonic/gin/pull/2765)319- Support custom struct tag [#2720](https://github.com/gin-gonic/gin/pull/2720)320- Improve router group tests [#2787](https://github.com/gin-gonic/gin/pull/2787)321- Fallback Context.Deadline() Context.Done() Context.Err() to Context.Request.Context() [#2769](https://github.com/gin-gonic/gin/pull/2769)322- Some codes optimize [#2830](https://github.com/gin-gonic/gin/pull/2830) [#2834](https://github.com/gin-gonic/gin/pull/2834) [#2838](https://github.com/gin-gonic/gin/pull/2838) [#2837](https://github.com/gin-gonic/gin/pull/2837) [#2788](https://github.com/gin-gonic/gin/pull/2788) [#2848](https://github.com/gin-gonic/gin/pull/2848) [#2851](https://github.com/gin-gonic/gin/pull/2851) [#2701](https://github.com/gin-gonic/gin/pull/2701)323- TrustedProxies: Add default IPv6 support and refactor [#2967](https://github.com/gin-gonic/gin/pull/2967)324- Test(route): expose performRequest func [#3012](https://github.com/gin-gonic/gin/pull/3012)325- Support h2c with prior knowledge [#1398](https://github.com/gin-gonic/gin/pull/1398)326- Feat attachment filename support utf8 [#3071](https://github.com/gin-gonic/gin/pull/3071)327- Feat: add StaticFileFS [#2749](https://github.com/gin-gonic/gin/pull/2749)328- Feat(context): return GIN Context from Value method [#2825](https://github.com/gin-gonic/gin/pull/2825)329- Feat: automatically SetMode to TestMode when run go test [#3139](https://github.com/gin-gonic/gin/pull/3139)330- Add TOML bining for gin [#3081](https://github.com/gin-gonic/gin/pull/3081)331- IPv6 add default trusted proxies [#3033](https://github.com/gin-gonic/gin/pull/3033)332333### DOCS334285* Add note about nomsgpack tag to the readme [#2703](https://github.com/gin-gonic/gin/pull/2703)335- Add note about nomsgpack tag to the readme [#2703](https://github.com/gin-gonic/gin/pull/2703)336337## Gin v1.7.7338339### BUG FIXES340291* 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).292* 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).293* Tree: fixed the misplacement of adding slashes [#2847](https://github.com/gin-gonic/gin/pull/2847), closed issue [#2843](https://github.com/gin-gonic/gin/issues/2843).294* Tree: fixed tsr with mixed static and wildcard paths [#2924](https://github.com/gin-gonic/gin/pull/2924), closed issue [#2918](https://github.com/gin-gonic/gin/issues/2918).341- 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).342- 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).343- Tree: fixed the misplacement of adding slashes [#2847](https://github.com/gin-gonic/gin/pull/2847), closed issue [#2843](https://github.com/gin-gonic/gin/issues/2843).344- Tree: fixed tsr with mixed static and wildcard paths [#2924](https://github.com/gin-gonic/gin/pull/2924), closed issue [#2918](https://github.com/gin-gonic/gin/issues/2918).345346### ENHANCEMENTS347298* TrustedProxies: make it backward-compatible [#2887](https://github.com/gin-gonic/gin/pull/2887), closed issue [#2819](https://github.com/gin-gonic/gin/issues/2819).299* TrustedPlatform: provide custom options for another CDN services [#2906](https://github.com/gin-gonic/gin/pull/2906).348- TrustedProxies: make it backward-compatible [#2887](https://github.com/gin-gonic/gin/pull/2887), closed issue [#2819](https://github.com/gin-gonic/gin/issues/2819).349- TrustedPlatform: provide custom options for another CDN services [#2906](https://github.com/gin-gonic/gin/pull/2906).350351### DOCS352303* NoMethod: added usage annotation ([#2832](https://github.com/gin-gonic/gin/pull/2832#issuecomment-929954463)).353- NoMethod: added usage annotation ([#2832](https://github.com/gin-gonic/gin/pull/2832#issuecomment-929954463)).354355## Gin v1.7.6356357### BUG FIXES358309* bump new release to fix v1.7.5 release error by using v1.7.4 codes.359- bump new release to fix v1.7.5 release error by using v1.7.4 codes.360361## Gin v1.7.4362363### BUG FIXES364315* bump new release to fix checksum mismatch365- bump new release to fix checksum mismatch366367## Gin v1.7.3368369### BUG FIXES370321* fix level 1 router match [#2767](https://github.com/gin-gonic/gin/issues/2767), [#2796](https://github.com/gin-gonic/gin/issues/2796)371- fix level 1 router match [#2767](https://github.com/gin-gonic/gin/issues/2767), [#2796](https://github.com/gin-gonic/gin/issues/2796)372373## Gin v1.7.2374375### BUG FIXES376327* 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).377- 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).378379## Gin v1.7.1380381### BUG FIXES382333* fix: data race with trustedCIDRs from [#2674](https://github.com/gin-gonic/gin/issues/2674)([#2675](https://github.com/gin-gonic/gin/pull/2675))383- fix: data race with trustedCIDRs from [#2674](https://github.com/gin-gonic/gin/issues/2674)([#2675](https://github.com/gin-gonic/gin/pull/2675))384385## Gin v1.7.0386387### BUG FIXES388339* fix compile error from [#2572](https://github.com/gin-gonic/gin/pull/2572) ([#2600](https://github.com/gin-gonic/gin/pull/2600))340* fix: print headers without Authorization header on broken pipe ([#2528](https://github.com/gin-gonic/gin/pull/2528))341* fix(tree): reassign fullpath when register new node ([#2366](https://github.com/gin-gonic/gin/pull/2366))389- fix compile error from [#2572](https://github.com/gin-gonic/gin/pull/2572) ([#2600](https://github.com/gin-gonic/gin/pull/2600))390- fix: print headers without Authorization header on broken pipe ([#2528](https://github.com/gin-gonic/gin/pull/2528))391- fix(tree): reassign fullpath when register new node ([#2366](https://github.com/gin-gonic/gin/pull/2366))392393### ENHANCEMENTS394345* Support params and exact routes without creating conflicts ([#2663](https://github.com/gin-gonic/gin/pull/2663))346* chore: improve render string performance ([#2365](https://github.com/gin-gonic/gin/pull/2365))347* Sync route tree to httprouter latest code ([#2368](https://github.com/gin-gonic/gin/pull/2368))348* chore: rename getQueryCache/getFormCache to initQueryCache/initFormCa ([#2375](https://github.com/gin-gonic/gin/pull/2375))349* chore(performance): improve countParams ([#2378](https://github.com/gin-gonic/gin/pull/2378))350* Remove some functions that have the same effect as the bytes package ([#2387](https://github.com/gin-gonic/gin/pull/2387))351* update:SetMode function ([#2321](https://github.com/gin-gonic/gin/pull/2321))352* remove an unused type SecureJSONPrefix ([#2391](https://github.com/gin-gonic/gin/pull/2391))353* Add a redirect sample for POST method ([#2389](https://github.com/gin-gonic/gin/pull/2389))354* Add CustomRecovery builtin middleware ([#2322](https://github.com/gin-gonic/gin/pull/2322))355* binding: avoid 2038 problem on 32-bit architectures ([#2450](https://github.com/gin-gonic/gin/pull/2450))356* Prevent panic in Context.GetQuery() when there is no Request ([#2412](https://github.com/gin-gonic/gin/pull/2412))357* Add GetUint and GetUint64 method on gin.context ([#2487](https://github.com/gin-gonic/gin/pull/2487))358* update content-disposition header to MIME-style ([#2512](https://github.com/gin-gonic/gin/pull/2512))359* reduce allocs and improve the render `WriteString` ([#2508](https://github.com/gin-gonic/gin/pull/2508))360* implement ".Unwrap() error" on Error type ([#2525](https://github.com/gin-gonic/gin/pull/2525)) ([#2526](https://github.com/gin-gonic/gin/pull/2526))361* Allow bind with a map[string]string ([#2484](https://github.com/gin-gonic/gin/pull/2484))362* chore: update tree ([#2371](https://github.com/gin-gonic/gin/pull/2371))363* Support binding for slice/array obj [Rewrite] ([#2302](https://github.com/gin-gonic/gin/pull/2302))364* basic auth: fix timing oracle ([#2609](https://github.com/gin-gonic/gin/pull/2609))365* Add mixed param and non-param paths (port of httprouter[#329](https://github.com/gin-gonic/gin/pull/329)) ([#2663](https://github.com/gin-gonic/gin/pull/2663))366* feat(engine): add trustedproxies and remoteIP ([#2632](https://github.com/gin-gonic/gin/pull/2632))395- Support params and exact routes without creating conflicts ([#2663](https://github.com/gin-gonic/gin/pull/2663))396- chore: improve render string performance ([#2365](https://github.com/gin-gonic/gin/pull/2365))397- Sync route tree to httprouter latest code ([#2368](https://github.com/gin-gonic/gin/pull/2368))398- chore: rename getQueryCache/getFormCache to initQueryCache/initFormCa ([#2375](https://github.com/gin-gonic/gin/pull/2375))399- chore(performance): improve countParams ([#2378](https://github.com/gin-gonic/gin/pull/2378))400- Remove some functions that have the same effect as the bytes package ([#2387](https://github.com/gin-gonic/gin/pull/2387))401- update:SetMode function ([#2321](https://github.com/gin-gonic/gin/pull/2321))402- remove an unused type SecureJSONPrefix ([#2391](https://github.com/gin-gonic/gin/pull/2391))403- Add a redirect sample for POST method ([#2389](https://github.com/gin-gonic/gin/pull/2389))404- Add CustomRecovery builtin middleware ([#2322](https://github.com/gin-gonic/gin/pull/2322))405- binding: avoid 2038 problem on 32-bit architectures ([#2450](https://github.com/gin-gonic/gin/pull/2450))406- Prevent panic in Context.GetQuery() when there is no Request ([#2412](https://github.com/gin-gonic/gin/pull/2412))407- Add GetUint and GetUint64 method on gin.context ([#2487](https://github.com/gin-gonic/gin/pull/2487))408- update content-disposition header to MIME-style ([#2512](https://github.com/gin-gonic/gin/pull/2512))409- reduce allocs and improve the render `WriteString` ([#2508](https://github.com/gin-gonic/gin/pull/2508))410- implement ".Unwrap() error" on Error type ([#2525](https://github.com/gin-gonic/gin/pull/2525)) ([#2526](https://github.com/gin-gonic/gin/pull/2526))411- Allow bind with a map[string]string ([#2484](https://github.com/gin-gonic/gin/pull/2484))412- chore: update tree ([#2371](https://github.com/gin-gonic/gin/pull/2371))413- Support binding for slice/array obj [Rewrite] ([#2302](https://github.com/gin-gonic/gin/pull/2302))414- basic auth: fix timing oracle ([#2609](https://github.com/gin-gonic/gin/pull/2609))415- Add mixed param and non-param paths (port of httprouter[#329](https://github.com/gin-gonic/gin/pull/329)) ([#2663](https://github.com/gin-gonic/gin/pull/2663))416- feat(engine): add trustedproxies and remoteIP ([#2632](https://github.com/gin-gonic/gin/pull/2632))417418## Gin v1.6.3419420### ENHANCEMENTS421372 * Improve performance: Change `*sync.RWMutex` to `sync.RWMutex` in context. [#2351](https://github.com/gin-gonic/gin/pull/2351)422- Improve performance: Change `*sync.RWMutex` to `sync.RWMutex` in context. [#2351](https://github.com/gin-gonic/gin/pull/2351)423424## Gin v1.6.2425426### BUG FIXES427378 * fix missing initial sync.RWMutex [#2305](https://github.com/gin-gonic/gin/pull/2305)428- fix missing initial sync.RWMutex [#2305](https://github.com/gin-gonic/gin/pull/2305)429430### ENHANCEMENTS431382 * Add set samesite in cookie. [#2306](https://github.com/gin-gonic/gin/pull/2306)432- Add set samesite in cookie. [#2306](https://github.com/gin-gonic/gin/pull/2306)433434## Gin v1.6.1435436### BUG FIXES437388 * Revert "fix accept incoming network connections" [#2294](https://github.com/gin-gonic/gin/pull/2294)438- Revert "fix accept incoming network connections" [#2294](https://github.com/gin-gonic/gin/pull/2294)439440## Gin v1.6.0441442### BREAKING443394 * chore(performance): Improve performance for adding RemoveExtraSlash flag [#2159](https://github.com/gin-gonic/gin/pull/2159)395 * drop support govendor [#2148](https://github.com/gin-gonic/gin/pull/2148)396 * Added support for SameSite cookie flag [#1615](https://github.com/gin-gonic/gin/pull/1615)444- chore(performance): Improve performance for adding RemoveExtraSlash flag [#2159](https://github.com/gin-gonic/gin/pull/2159)445- drop support govendor [#2148](https://github.com/gin-gonic/gin/pull/2148)446- Added support for SameSite cookie flag [#1615](https://github.com/gin-gonic/gin/pull/1615)447448### FEATURES449400 * add yaml negotiation [#2220](https://github.com/gin-gonic/gin/pull/2220)401 * FileFromFS [#2112](https://github.com/gin-gonic/gin/pull/2112)450- add yaml negotiation [#2220](https://github.com/gin-gonic/gin/pull/2220)451- FileFromFS [#2112](https://github.com/gin-gonic/gin/pull/2112)452453### BUG FIXES454405 * Unix Socket Handling [#2280](https://github.com/gin-gonic/gin/pull/2280)406 * Use json marshall in context json to fix breaking new line issue. Fixes #2209 [#2228](https://github.com/gin-gonic/gin/pull/2228)407 * fix accept incoming network connections [#2216](https://github.com/gin-gonic/gin/pull/2216)408 * Fixed a bug in the calculation of the maximum number of parameters [#2166](https://github.com/gin-gonic/gin/pull/2166)409 * [FIX] allow empty headers on DataFromReader [#2121](https://github.com/gin-gonic/gin/pull/2121)410 * Add mutex for protect Context.Keys map [#1391](https://github.com/gin-gonic/gin/pull/1391)455- Unix Socket Handling [#2280](https://github.com/gin-gonic/gin/pull/2280)456- Use json marshall in context json to fix breaking new line issue. Fixes #2209 [#2228](https://github.com/gin-gonic/gin/pull/2228)457- fix accept incoming network connections [#2216](https://github.com/gin-gonic/gin/pull/2216)458- Fixed a bug in the calculation of the maximum number of parameters [#2166](https://github.com/gin-gonic/gin/pull/2166)459- [FIX] allow empty headers on DataFromReader [#2121](https://github.com/gin-gonic/gin/pull/2121)460- Add mutex for protect Context.Keys map [#1391](https://github.com/gin-gonic/gin/pull/1391)461462### ENHANCEMENTS463414 * Add mitigation for log injection [#2277](https://github.com/gin-gonic/gin/pull/2277)415 * tree: range over nodes values [#2229](https://github.com/gin-gonic/gin/pull/2229)416 * tree: remove duplicate assignment [#2222](https://github.com/gin-gonic/gin/pull/2222)417 * chore: upgrade go-isatty and json-iterator/go [#2215](https://github.com/gin-gonic/gin/pull/2215)418 * path: sync code with httprouter [#2212](https://github.com/gin-gonic/gin/pull/2212)419 * Use zero-copy approach to convert types between string and byte slice [#2206](https://github.com/gin-gonic/gin/pull/2206)420 * Reuse bytes when cleaning the URL paths [#2179](https://github.com/gin-gonic/gin/pull/2179)421 * tree: remove one else statement [#2177](https://github.com/gin-gonic/gin/pull/2177)422 * tree: sync httprouter update (#2173) (#2172) [#2171](https://github.com/gin-gonic/gin/pull/2171)423 * tree: sync part httprouter codes and reduce if/else [#2163](https://github.com/gin-gonic/gin/pull/2163)424 * use http method constant [#2155](https://github.com/gin-gonic/gin/pull/2155)425 * upgrade go-validator to v10 [#2149](https://github.com/gin-gonic/gin/pull/2149)426 * Refactor redirect request in gin.go [#1970](https://github.com/gin-gonic/gin/pull/1970)427 * Add build tag nomsgpack [#1852](https://github.com/gin-gonic/gin/pull/1852)464- Add mitigation for log injection [#2277](https://github.com/gin-gonic/gin/pull/2277)465- tree: range over nodes values [#2229](https://github.com/gin-gonic/gin/pull/2229)466- tree: remove duplicate assignment [#2222](https://github.com/gin-gonic/gin/pull/2222)467- chore: upgrade go-isatty and json-iterator/go [#2215](https://github.com/gin-gonic/gin/pull/2215)468- path: sync code with httprouter [#2212](https://github.com/gin-gonic/gin/pull/2212)469- Use zero-copy approach to convert types between string and byte slice [#2206](https://github.com/gin-gonic/gin/pull/2206)470- Reuse bytes when cleaning the URL paths [#2179](https://github.com/gin-gonic/gin/pull/2179)471- tree: remove one else statement [#2177](https://github.com/gin-gonic/gin/pull/2177)472- tree: sync httprouter update (#2173) (#2172) [#2171](https://github.com/gin-gonic/gin/pull/2171)473- tree: sync part httprouter codes and reduce if/else [#2163](https://github.com/gin-gonic/gin/pull/2163)474- use http method constant [#2155](https://github.com/gin-gonic/gin/pull/2155)475- upgrade go-validator to v10 [#2149](https://github.com/gin-gonic/gin/pull/2149)476- Refactor redirect request in gin.go [#1970](https://github.com/gin-gonic/gin/pull/1970)477- Add build tag nomsgpack [#1852](https://github.com/gin-gonic/gin/pull/1852)478479### DOCS480431 * docs(path): improve comments [#2223](https://github.com/gin-gonic/gin/pull/2223)432 * Renew README to fit the modification of SetCookie method [#2217](https://github.com/gin-gonic/gin/pull/2217)433 * Fix spelling [#2202](https://github.com/gin-gonic/gin/pull/2202)434 * Remove broken link from README. [#2198](https://github.com/gin-gonic/gin/pull/2198)435 * Update docs on Context.Done(), Context.Deadline() and Context.Err() [#2196](https://github.com/gin-gonic/gin/pull/2196)436 * Update validator to v10 [#2190](https://github.com/gin-gonic/gin/pull/2190)437 * upgrade go-validator to v10 for README [#2189](https://github.com/gin-gonic/gin/pull/2189)438 * Update to currently output [#2188](https://github.com/gin-gonic/gin/pull/2188)439 * Fix "Custom Validators" example [#2186](https://github.com/gin-gonic/gin/pull/2186)440 * Add project to README [#2165](https://github.com/gin-gonic/gin/pull/2165)441 * docs(benchmarks): for gin v1.5 [#2153](https://github.com/gin-gonic/gin/pull/2153)442 * Changed wording for clarity in README.md [#2122](https://github.com/gin-gonic/gin/pull/2122)481- docs(path): improve comments [#2223](https://github.com/gin-gonic/gin/pull/2223)482- Renew README to fit the modification of SetCookie method [#2217](https://github.com/gin-gonic/gin/pull/2217)483- Fix spelling [#2202](https://github.com/gin-gonic/gin/pull/2202)484- Remove broken link from README. [#2198](https://github.com/gin-gonic/gin/pull/2198)485- Update docs on Context.Done(), Context.Deadline() and Context.Err() [#2196](https://github.com/gin-gonic/gin/pull/2196)486- Update validator to v10 [#2190](https://github.com/gin-gonic/gin/pull/2190)487- upgrade go-validator to v10 for README [#2189](https://github.com/gin-gonic/gin/pull/2189)488- Update to currently output [#2188](https://github.com/gin-gonic/gin/pull/2188)489- Fix "Custom Validators" example [#2186](https://github.com/gin-gonic/gin/pull/2186)490- Add project to README [#2165](https://github.com/gin-gonic/gin/pull/2165)491- docs(benchmarks): for gin v1.5 [#2153](https://github.com/gin-gonic/gin/pull/2153)492- Changed wording for clarity in README.md [#2122](https://github.com/gin-gonic/gin/pull/2122)493494### MISC495446 * ci support go1.14 [#2262](https://github.com/gin-gonic/gin/pull/2262)447 * chore: upgrade depend version [#2231](https://github.com/gin-gonic/gin/pull/2231)448 * Drop support go1.10 [#2147](https://github.com/gin-gonic/gin/pull/2147)449 * fix comment in `mode.go` [#2129](https://github.com/gin-gonic/gin/pull/2129)496- ci support go1.14 [#2262](https://github.com/gin-gonic/gin/pull/2262)497- chore: upgrade depend version [#2231](https://github.com/gin-gonic/gin/pull/2231)498- Drop support go1.10 [#2147](https://github.com/gin-gonic/gin/pull/2147)499- fix comment in `mode.go` [#2129](https://github.com/gin-gonic/gin/pull/2129)500501## Gin v1.5.0502503- [FIX] Use DefaultWriter and DefaultErrorWriter for debug messages [#1891](https://github.com/gin-gonic/gin/pull/1891)
30 unmodified lines
534- [FIX] Ignore walking on `form:"-"` mapping [#1943](https://github.com/gin-gonic/gin/pull/1943)535536### Gin v1.4.0537488- [NEW] Support for [Go Modules](https://github.com/golang/go/wiki/Modules) [#1569](https://github.com/gin-gonic/gin/pull/1569)538- [NEW] Support for [Go Modules](https://github.com/golang/go/wiki/Modules) [#1569](https://github.com/gin-gonic/gin/pull/1569)539- [NEW] Refactor of form mapping multipart request [#1829](https://github.com/gin-gonic/gin/pull/1829)540- [FIX] Truncate Latency precision in long running request [#1830](https://github.com/gin-gonic/gin/pull/1830)541- [FIX] IsTerm flag should not be affected by DisableConsoleColor method. [#1802](https://github.com/gin-gonic/gin/pull/1802)542- [NEW] Supporting file binding [#1264](https://github.com/gin-gonic/gin/pull/1264)543- [NEW] Add support for mapping arrays [#1797](https://github.com/gin-gonic/gin/pull/1797)544- [FIX] Readme updates [#1793](https://github.com/gin-gonic/gin/pull/1793) [#1788](https://github.com/gin-gonic/gin/pull/1788) [1789](https://github.com/gin-gonic/gin/pull/1789)495- [FIX] StaticFS: Fixed Logging two log lines on 404. [#1805](https://github.com/gin-gonic/gin/pull/1805), [#1804](https://github.com/gin-gonic/gin/pull/1804)545- [FIX] StaticFS: Fixed Logging two log lines on 404. [#1805](https://github.com/gin-gonic/gin/pull/1805), [#1804](https://github.com/gin-gonic/gin/pull/1804)546- [NEW] Make context.Keys available as LogFormatterParams [#1779](https://github.com/gin-gonic/gin/pull/1779)547- [NEW] Use internal/json for Marshal/Unmarshal [#1791](https://github.com/gin-gonic/gin/pull/1791)548- [NEW] Support mapping time.Duration [#1794](https://github.com/gin-gonic/gin/pull/1794)549- [NEW] Refactor form mappings [#1749](https://github.com/gin-gonic/gin/pull/1749)
23 unmodified lines
573- [FIX] Panic stack trace being printed during recovery of broken pipe [#1089](https://github.com/gin-gonic/gin/pull/1089) [#1259](https://github.com/gin-gonic/gin/pull/1259)574- [NEW] RunFd method to run http.Server through a file descriptor [#1609](https://github.com/gin-gonic/gin/pull/1609)575- [NEW] Yaml binding support [#1618](https://github.com/gin-gonic/gin/pull/1618)576- [FIX] Pass MaxMultipartMemory when FormFile is called [#1600](https://github.com/gin-gonic/gin/pull/1600)527- [FIX] LoadHTML* tests [#1559](https://github.com/gin-gonic/gin/pull/1559)577- [FIX] LoadHTML\* tests [#1559](https://github.com/gin-gonic/gin/pull/1559)578- [FIX] Removed use of sync.pool from HandleContext [#1565](https://github.com/gin-gonic/gin/pull/1565)579- [FIX] Format output log to os.Stderr [#1571](https://github.com/gin-gonic/gin/pull/1571)580- [FIX] Make logger use a yellow background and a darkgray text for legibility [#1570](https://github.com/gin-gonic/gin/pull/1570)581- [FIX] Remove sensitive request information from panic log. [#1370](https://github.com/gin-gonic/gin/pull/1370)
6 unmodified lines
588- [NEW] Set default time format in form binding [#1487](https://github.com/gin-gonic/gin/pull/1487)589- [FIX] Add BindXML and ShouldBindXML [#1485](https://github.com/gin-gonic/gin/pull/1485)590- [NEW] Upgrade dependency libraries [#1491](https://github.com/gin-gonic/gin/pull/1491)591542592## Gin v1.3.0593594- [NEW] Add [`func (*Context) QueryMap`](https://godoc.org/github.com/gin-gonic/gin#Context.QueryMap), [`func (*Context) GetQueryMap`](https://godoc.org/github.com/gin-gonic/gin#Context.GetQueryMap), [`func (*Context) PostFormMap`](https://godoc.org/github.com/gin-gonic/gin#Context.PostFormMap) and [`func (*Context) GetPostFormMap`](https://godoc.org/github.com/gin-gonic/gin#Context.GetPostFormMap) to support `type map[string]string` as query string or form parameters, see [#1383](https://github.com/gin-gonic/gin/pull/1383)595- [NEW] Add [`func (*Context) AsciiJSON`](https://godoc.org/github.com/gin-gonic/gin#Context.AsciiJSON), see [#1358](https://github.com/gin-gonic/gin/pull/1358)
89 unmodified lines
685- [FIX] Fixes integer overflow in error type686- [FIX] Error implements the json.Marshaller interface687- [FIX] MIT license in every file688640689## Gin 1.0rc1 (May 22, 2015)690691- [PERFORMANCE] Zero allocation router692- [PERFORMANCE] Faster JSON, XML and text rendering
35 unmodified lines
728- [FIX] NoMethod/NoRoute handlers729- [FIX] Hijacking http730- [FIX] Better support for Google App Engine (using log instead of fmt)731684732## Gin 0.6 (Mar 9, 2015)733734- [NEW] Support multipart/form-data735- [NEW] NoMethod handler
1 unmodified line
737- [NEW] Support for HTTP Realm Auth738- [FIX] Unsigned integers in binding739- [FIX] Improve color logger740694741## Gin 0.5 (Feb 7, 2015)742743- [NEW] Content Negotiation744- [FIX] Solved security bug that allow a client to spoof ip745- [FIX] Fix unexported/ignored fields in binding746701747## Gin 0.4 (Aug 21, 2014)748749- [NEW] Development mode750- [NEW] Unit tests751- [NEW] Add Content.Redirect()752- [FIX] Deferring WriteHeader()753- [FIX] Improved documentation for model binding754710755## Gin 0.3 (Jul 18, 2014)756757- [PERFORMANCE] Normal log and error log are printed in the same call.758- [PERFORMANCE] Improve performance of NoRouter()
9 unmodified lines
768- [FIX] Can't unmarshal JSON array, #63769- [FIX] Renaming Context.Req to Context.Request770- [FIX] Check application/x-www-form-urlencoded when parsing form771728772## Gin 0.2b (Jul 08, 2014)773774- [PERFORMANCE] Using sync.Pool to allocatio/gc overhead775- [NEW] Travis CI integration776- [NEW] Completely new logger777- [NEW] New API for serving static files. gin.Static()
20 unmodified lines
modified:README.md+1 added-1 removed
9 unmodified lines
10[![Sourcegraph](https://sourcegraph.com/github.com/gin-gonic/gin/-/badge.svg)](https://sourcegraph.com/github.com/gin-gonic/gin?badge)11[![Open Source Helpers](https://www.codetriage.com/gin-gonic/gin/badges/users.svg)](https://www.codetriage.com/gin-gonic/gin)12[![Release](https://img.shields.io/github/release/gin-gonic/gin.svg?style=flat-square)](https://github.com/gin-gonic/gin/releases)1314## 📰 [Announcing Gin 1.11.0!](https://gin-gonic.com/en/blog/news/gin-1-11-0-release-announcement/)14## 📰 [Announcing Gin 1.12.0!](https://gin-gonic.com/en/blog/news/gin-1-12-0-release-announcement/)1516Read about the latest features and improvements in Gin 1.11.0 on our official blog.1718---
209 unmodified lines
modified:version.go+1 added-1 removed
3 unmodified lines
45package gin67// Version is the current gin framework's version.8const Version = "v1.11.0"8const Version = "v1.12.0"