Releases: go-kratos/kratos
Releases · go-kratos/kratos
v2.8.2
New Features
- feat: create build Group in changelog generate. (#3448)
Bug Fixes
- fix: unit test Recycle watch resolver tick goroutine (#3449)
- fix: resolve the issue of metrics and logging code default to zero (#3447)
Others
- build(deps): bump golang.org/x/sync in /contrib/registry/zookeeper (#3387)
Full Changelog: v2.8.1...v2.8.2
v2.8.1
New Features
- feat(middleware/metrics): make DefaultSecondsHistogram simply (#3385)
- feat: adding stream interceptor for logging middleware (#3359)
- feat(contrib/log/zap): If disable this level of logging entirely, avoid additional overhead (#3357)
- feat(resolver/discovery): expose create watcher timeout error (#3392)
Bug Fixes
- fix: fix errors reported by Lint CI. (#3435)
- fix: add timeout configuration in grpc dial function (#3365)
- fix: when entering idle mode, the old resolve-related resources have not been completely processed, and an exception occurs when exiting idle mode immediately. (#3402)
- fix(registry/polaris): fix concurrent map iteration and map write #3361 (#3386)
- fix: fixed typo (#3395)
- fix: filter redundant endpoints invalid (#3373)
Chores
- chore: upgrade golangci-lint version to v1.60.3 and fix lint (#3414)
- chore: remove non-existent test methods (#2770)
- chore: replace the DisableDebugLog method, which is marked as Deprecated, with the PrintDebugLog method in the discovery test (#3364)
Others
- faet: add buf config for protoc-gen-go-errors (#3403)
- perf: optimize the http.ContentType method (#3363)
- build(deps): bump github/codeql-action from 2 to 3 (#3119)
- build(deps): bump google.golang.org/protobuf in /cmd/protoc-gen-go-http (#3237)
- build(deps): bump golang.org/x/net in /contrib/errortracker/sentry (#3288)
- build(deps): bump golang.org/x/net in /contrib/registry/etcd (#3289)
- build(deps): bump golang.org/x/net in /contrib/config/kubernetes (#3291)
- build(deps): bump golang.org/x/net in /contrib/registry/kubernetes (#3290)
- build(deps): bump golang.org/x/net in /contrib/log/aliyun (#3292)
- build(deps): bump golang.org/x/net in /contrib/registry/polaris (#3294)
- build(deps): bump actions/setup-go from 5.0.1 to 5.0.2 (#3362)
New Contributors
- @LHyphen made their first contribution in #3373
- @jarium made their first contribution in #3395
- @1911860538 made their first contribution in #3363
Full Changelog: v2.8.0...v2.8.1
v2.8.0
Breaking Changes
- break(metrics): refactor kratos metrics with otel metrics (#3256)
New Features
- feat: parsing config input and convert to match the type (#3306)
Bug Fixes
- fix(contrib/registry/nacos): Abnormal blocking of the Subscribe and Next methods. (#3320)
- fix(contrib/opensergo): incorrect conversion between integer types (#3309)
- fix(contrib/polaris): incorrect conversion between integer types (#3300)
- fix: com patile both map[kratos] and map.kratos for a map type in the query parameters (#3284)
Chores
- chore(middleware/metrics): if requests and seconds are nil, return directly (#3298)
Others
- chroe: chore update (#3367)
- build(deps): bump golang.org/x/net from 0.19.0 to 0.23.0 (#3295)
- build(deps): bump golang.org/x/net in /contrib/registry/servicecomb (#3285)
- build(deps): bump golang.org/x/net in /contrib/config/etcd (#3293)
- adds Set-Cookie method to the HTTP transport. (#3353)
- build(deps): bump actions/setup-go from 5.0.0 to 5.0.1 (#3315)
- build(deps): bump golangci/golangci-lint-action from 5 to 6 (#3340)
- The issue that the response header is not assigned a value is fixed (#3327)
- build(deps): bump golangci/golangci-lint-action from 4 to 5 (#3305)
- faat(encoding/form): allow change the default form encoder and decoder tag name (#3328)
- build(deps): bump github.com/aliyun/aliyun-log-go-sdk (#3332)
- build(deps): bump golang.org/x/net in /contrib/polaris (#3296)
- build(deps): bump Yikun/hub-mirror-action from 1.3 to 1.4 (#3307)
- build(deps): bump google.golang.org/protobuf (#3238)
- build(deps): bump github.com/aliyun/aliyun-log-go-sdk (#3270)
- build(deps): bump golang.org/x/net in /contrib/opensergo (#3277)
- build(deps): bump golang.org/x/sync in /contrib/registry/zookeeper (#3274)
- dep: change library name of mergo #3149 (#3297)
New Contributors
- @ASkyFullOfStar made their first contribution in #3284
- @wudi made their first contribution in #3264
- @guoquanwei made their first contribution in #3320
- @akoserwal made their first contribution in #3306
Full Changelog: v2.7.3...v2.8.0
v2.7.3
New Features
- feat(transport/http): add unwrap method for returning underlying response writer. #3253 (#3265)
- feat: use writer directly in stdLogger. (#3121)
- feat(log): Prevent log.Helper sprintf from running early #3209 (#3221)
- feat(middleware): adding sentry as errortracker (#3122)
- feat: add server option for NotFoundHandler and MethodNotAllowedHandler (#3131)
- feat: improve node alg (#3015)
Bug Fixes
- fix(encoding/form):
Timestamp
use local time and fix test wrong mock time zone (#3257) - fix(encoding/form): optimize EncodeField and add test cases (#3234)
- fix: When grpc ends idle mode, it needs to continue to obtain the latest instance of the service (#3162)
- fix: etcd registry lifecycle (#3180)
- fix: logging middleware caller issue #3133 (#3134)
- fix polaris registry bug: nodes is empty at startup (#3160)
- fix: remove duplicate test codes. (#3187)
- fix: use .MapKey to get key's FieldDescriptor (#3196)
- fix(transport/http): no need to call EncodeURL twice (#3218)
- fix(protoc-gen-go-http): return nil if err == nil。 (#3188)
- fix: zap log print out multiple
msg
(#3171) - fix: test failed on other timezone.(#3181) (#3183)
- fix: clear err after app stop err handling (#3146)
- fix: fix consul heartbeat 404 error (#3147)
- fix(encoding/form): time with the location set to local time (#2885)
Others
- nacos stop cannot cancel subscription (#3173)
- build(deps): bump golang.org/x/sync in /contrib/registry/zookeeper (#3150)
- build(deps): bump github.com/prometheus/common (#3154)
- build(deps): bump golang.org/x/net in /contrib/opensergo (#3155)
- build(deps): bump actions/cache from 3 to 4 (#3158)
- build(deps): bump golangci/golangci-lint-action from 3 to 4 (#3197)
- build(lint): upgrade
golangci/golangci-lint-action
(#3235) - build(go): Add go version v1.22.x (#3236)
- build(deps): bump github.com/go-resty/resty/v2 (#3151)
New Contributors
- @dongowu made their first contribution in #3085
- @ChengDaqi2023 made their first contribution in #2985
- @lawlielt made their first contribution in #3147
- @liubing0427 made their first contribution in #3131
- @kvii made their first contribution in #3183
- @fzdwx made their first contribution in #3171
- @oyk666 made their first contribution in #3196
- @flc1125 made their first contribution in #3236
- @sendya made their first contribution in #3221
- @Disdjj made their first contribution in #3180
- @chenliang made their first contribution in #3173
- @harbourlga made their first contribution in #3162
Full Changelog: v2.7.2...v2.7.3
v2.7.2
New Features
- feat(config): config support custom merge config (#3106)
Bug Fixes
- fix:polaris config watch (#3082)
- fix:
sctx
cause request ctx canceled during graceful shutdown (#3097) - fix: apollo yaml watch (#3021)
- fix(log):
WithContext()
changed the ctx field of the parent log.Filter (#3069) - fix: Kubernetes misspelling (#3075)
Others
- build(deps): bump github.com/hashicorp/consul/api (#3080)
- build(deps): bump google.golang.org/grpc in /contrib/config/polaris (#3055)
- build(deps): bump google.golang.org/grpc from 1.56.1 to 1.56.3 (#3054)
- build(deps): bump golang.org/x/net in /contrib/opensergo (#3100)
- build(deps): bump github.com/emicklei/go-restful (#2933)
- build(deps): bump google.golang.org/grpc in /contrib/registry/etcd (#3047)
- build(deps): bump google.golang.org/grpc in /contrib/opensergo (#3048)
- build(deps): bump google.golang.org/grpc in /contrib/config/etcd (#3046)
- build(deps): bump google.golang.org/grpc in /contrib/polaris (#3053)
- build(deps): bump github.com/prometheus/common (#3049)
- build(deps): bump github.com/aliyun/aliyun-log-go-sdk (#3095)
- golangci: check misspell (#3086)
- update golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f to 0.1.0 (#2984)
- Support adding headers to before calloption header (#3038)
- build(deps): bump actions/checkout from 3 to 4 (#2982)
- build(deps): bump github.com/vmihailenco/msgpack/v5 (#3065)
- build(deps): bump go.etcd.io/etcd/client/v3 in /contrib/registry/etcd (#3066)
- build(deps): bump github.com/aliyun/aliyun-log-go-sdk (#3079)
- build(deps): bump go.etcd.io/etcd/client/v3 in /contrib/config/etcd (#3064)
- build(deps): bump github.com/prometheus/client_golang (#3077)
- build(deps): bump golang.org/x/sync in /contrib/registry/zookeeper (#3076)
- build(deps): bump golang.org/x/net in /contrib/opensergo (#3078)
- build(deps): bump actions/setup-go from 4.0.1 to 4.1.0 (#2949)
- build(deps): bump github.com/hashicorp/consul/api (#3074)
New Contributors
- @Huoxi-any made their first contribution in #2984
- @ionling made their first contribution in #3069
- @LinEvil made their first contribution in #3097
- @tan-zhuo made their first contribution in #3082
Full Changelog: v2.7.1...v2.7.2
v2.7.1
v2.7.0
contrib -> go get xxxxx@7888107c4b4f978a4bbed2382fac762bcadbd13c
Dependencies
- deps: upgrade kratos version to v2.7.0 (#2944)
New Features
- feat(contrib): add zerolog (#2942)
- feat(transport/http): add walk http handler (#2943)
- feat: add bindQuery default (#2915)
- feat(transport): add endpoint option for server (#2904)
Bug Fixes
- fix(kratos cli): kratos cli gives wrong import path when creating app with --nomod parameter (#2938)
- fix:go-http plugin path encoding error (#2917)
Others
- build(deps): bump github.com/apolloconfig/agollo/v4 (#2939)
- build(deps): bump google.golang.org/grpc in /contrib/config/etcd (#2935)
- Update gitee-sync.yml (#2936)
- build(go): upgrade to go 1.19 (#2905)
New Contributors
- @pplmx made their first contribution in #2905
- @J-guanghua made their first contribution in #2917
- @qzwxsaedc made their first contribution in #2938
Full Changelog: v2.6.3...v2.7.0
v2.6.3
contrib -> github.com/go-kratos/kratos/contrib/xxxx 32b1d13
Dependencies
- deps: upgrade kratos version to v2.6.3 (#2903)
New Features
- feat: add omitempty prefix to rule path (#2870)
Bug Fixes
- fix(encoding/form): failed to decode the map type (#2468)
- fix: logging middle don't get trace_id value when logger is filterLogger (#2869)
- fix(cli): fix import path with
--nomod
(#2775) - fix: http parse pb message body panic (#2847)
- fix: fix go import path when add project --nomod (#2837)
Chores
- chore: remove the dependency of grpc_testing module (#2824)
Others
- build(deps): bump github.com/prometheus/common (#2840)
- update polaris-standalone docker image (#2854)
- build(deps): bump actions/setup-go from 4.0.0 to 4.0.1 (#2829)
- build(deps): bump google.golang.org/grpc in /contrib/opensergo (#2823)
New Contributors
- @chuntaojun made their first contribution in #2854
- @haoqixu made their first contribution in #2775
Full Changelog: v2.6.2...v2.6.3
v2.6.2
contrib v2.6.2 -> 56777ee
New Features
- feat: jwt KeyFunc external return (#2809)
- feat: log helper support sprint option (#2616)
- feat: issue translate (#2744)
- feat: support grpc balancer health check (#2736)
Bug Fixes
- fix(tracing): use global provider by default, but allow custom providers (#2803)
- fix(middleware/tracing): golang filename modify (#2727)
- fix:proto nesting causes template generation problems (#2718)
- fix(contrib/registry/servicecomb): wrong stop ticker (#2749)
- fix: package path to filepath (#2672)
- fix: rectification of non-standard lint codes (#2746)
- fix(transport/grpc/resolver/discovery/resolver.go): remove attributes.Attributes.New() (#2742)
- fix: change the working directory of the command (#2560)
Chores
Others
- build(deps): bump google.golang.org/grpc in /contrib/config/etcd (#2767)
- build(deps): bump google.golang.org/grpc in /contrib/opensergo (#2768)
- build(deps): bump github.com/prometheus/client_golang (#2787)
- build(deps): bump github.com/aliyun/aliyun-log-go-sdk (#2807)
- build(deps): bump go.etcd.io/etcd/client/v3 in /contrib/config/etcd (#2788)
- build(deps): bump go.etcd.io/etcd/client/v3 in /contrib/registry/etcd (#2789)
- build(deps): bump github.com/hashicorp/consul/api (#2731)
- build(deps): bump golang.org/x/net in /contrib/opensergo (#2779)
- refactor: metadata supports key corresponding to multiple values (#2772)
- build(deps): bump github.com/hashicorp/consul/api (#2733)
- build(deps): bump google.golang.org/protobuf in /contrib/log/aliyun (#2751)
- refactor(transport): format import and init slice cap (#2741)
- add http.ResponseController type alias (#2713)
- build(deps): bump k8s.io/client-go in /contrib/config/kubernetes (#2756)
- build(deps): bump k8s.io/apimachinery in /contrib/config/kubernetes (#2757)
- build(deps): bump actions/setup-go from 3.5.0 to 4.0.0 (#2737)
New Contributors
- @starmilkxin made their first contribution in #2724
- @ibrahimalbarghouthi made their first contribution in #2772
- @chenquan made their first contribution in #2810
Full Changelog: v2.6.1...v2.6.2
v2.6.1
This is the first version of kratos that uses generics features
Contrib Version
contrib -> 7eca8f8
Dependencies
- deps: upgrade kratos version to v2.6.1 (#2716)
New Features
- feat: support load balance for streaming connection creation (#2669)
- feat: Add latency to the recover handler context (#2653)
- feat: add comment to http server interface method (#2657)
- feat: support polaris ratelimit ability (#2586)
- feat(log): update zap interface (#2620)
Bug Fixes
- fix: fix contrib registry eureka watcher as *watcher (#2693)
- fix: upgrade go.sum (#2715)
- fix: cmd
proto add
nil pointer (#2670) - fix(selector): version NodeFilter append func (#2671)
- fix(contrib): fix eureka server load too high (#2546)
- fix: polaris get service name (#2615)
Chores
- chore: replace deprecated method (#2667)
Others
- build(deps): bump k8s.io/client-go in /contrib/config/kubernetes (#2695)
- build(deps): bump github.com/hashicorp/consul/api (#2688)
- build(deps): bump k8s.io/apimachinery in /contrib/config/kubernetes (#2694)
- build(deps): bump github.com/hashicorp/consul/api (#2685)
- build(deps): bump golang.org/x/sync in /contrib/registry/zookeeper (#2687)
- build(deps): bump golang.org/x/net in /contrib/opensergo (#2699)
- build(deps): bump golang.org/x/net in /contrib/config/polaris (#2706)
- build(deps): bump golang.org/x/net (#2703)
- build(deps): bump golang.org/x/net in /contrib/polaris (#2705)
- build(deps): bump github.com/prometheus/common (#2698)
- build(deps): bump golang.org/x/net in /contrib/registry/servicecomb (#2704)
- build(deps): bump golang.org/x/text in /cmd/protoc-gen-go-errors (#2675)
- build(deps): bump golang.org/x/text in /contrib/opensergo (#2678)
- build(deps): bump golang.org/x/text in /contrib/polaris (#2679)
- build(deps): bump golang.org/x/text from 0.3.7 to 0.3.8 in /cmd/kratos (#2676)
- build(deps): bump github.com/prometheus/common (#2668)
- build(deps): bump google.golang.org/grpc in /contrib/config/etcd (#2662)
New Contributors
- @liyaopinner made their first contribution in #2610
- @jerjjj made their first contribution in #2630
- @xichengliudui made their first contribution in #2648
- @aveyuan made their first contribution in #2620
- @yonwoo9 made their first contribution in #2693
Full Changelog: v2.5.4...v2.6.1