Releases: go-kratos/kratos
v2.5.4
New Features
- feat: add grpc client stream interceptor opts (#2610)
- feat: add subset alg for instances (#2613)
- feat(transport/http): request body read multiple times (#2542)
- feat: support polaris service governance (#2605)
- feat(registry): consul support re-registry when service does not exist (#2606)
- feat:add buf apis (#2604)
- feat: grpc use the admin api (#2596)
- feat: support for windows make install (#2554)
- feat(middleware): redacter interface for logging (#2564)
- feat: support polaris service governance
Bug Fixes
- fix: project creation
--nomod
(#2611) - fix(contrib/registry/etcd): rewatch when error occur (#2603)
- fix(contrib/log/tencent): tencentcloud-cls-sdk-go 为异步上传,需要显式调用"Start"方法开启才会生效 (#2514)
- fix(consul):return err if ctx is done (#2550)
- fix(registry): add zookeeper exists watcher when the node does not exist (#2555)
- fix(registry): ServiceInstance does not implement an Equal method for grpc Attributes. (#2575)
- fix issue:#2358 Support for creating a project with specifying the name for its place dir (#2573)
Chores
Others
- build(deps): bump github.com/aliyun/aliyun-log-go-sdk (#2598)
- build(deps): bump github.com/hashicorp/consul/api (#2561)
- build(deps): bump github.com/aliyun/aliyun-log-go-sdk (#2577)
- Feat project create with dir name add test (#2576)
- build(deps): bump k8s.io/apimachinery in /contrib/config/kubernetes (#2581)
- build(deps): bump actions/setup-go from 3.3.1 to 3.5.0 (#2585)
- build(deps): bump github.com/polarismesh/polaris-go (#2589)
- build(deps): bump github.com/apolloconfig/agollo/v4 (#2591)
- build(deps): bump github.com/hashicorp/consul/api (#2563)
New Contributors
- @qshuai made their first contribution in #2518
- @perriea made their first contribution in #2541
- @woniu317 made their first contribution in #2536
- @shima-park made their first contribution in #2575
- @jcyamacho made their first contribution in #2564
- @soukengo made their first contribution in #2555
- @game1991 made their first contribution in #2554
- @wuqinqiang made their first contribution in #2550
- @Liusiyuan-git made their first contribution in #2514
- @baeNewJeans made their first contribution in #2603
Full Changelog: v2.5.3...v2.5.4
v2.5.3
contrib -> a7bae93
Dependencies
- deps: upgrade kratos version to v2.5.3 (#2500)
New Features
- feat: add app Before and Afters option (#2403)
Bug Fixes
- fix(selector): set global do not work (#2489)
- fix(filter): filter out keyvals if keyFunc is provided (#2484)
- fix(contrib/log): test case error (#2487)
- fix ewma panic (#2480)
Others
- build(deps): bump github.com/apolloconfig/agollo/v4 (#2421)
- build(deps): bump go.etcd.io/etcd/client/v3 in /contrib/registry/etcd (#2384)
- build(deps): bump google.golang.org/grpc in /contrib/opensergo (#2452)
- build(deps): bump google.golang.org/grpc in /contrib/config/etcd (#2453)
- typo: correct var name (#2496)
- build(deps): bump github.com/hashicorp/consul/api (#2472)
- build(deps): bump github.com/prometheus/client_golang (#2494)
- build(deps): bump github.com/polarismesh/polaris-go (#2493)
- build(deps): bump github.com/aliyun/aliyun-log-go-sdk (#2492)
- build(deps): bump google.golang.org/grpc in /contrib/registry/etcd (#2454)
- test(encoding/form): add unit test and code style modift (#2467)
- style(config): code style tweaks and abstracts some methods (#2465)
- build(deps): bump github.com/hashicorp/consul/api (#2473)
- build(deps): bump github.com/aliyun/aliyun-log-go-sdk (#2483)
- style(contrib/config): code style modify (#2475)
New Contributors
- @migmartri made their first contribution in #2484
- @JellyTony made their first contribution in #2403
Full Changelog: v2.5.2...v2.5.3
v2.5.2
Bug Fixes
- fix(log): toString float32 precision loss and convert uint use
FormatUint
(#2461) - fix net error (#2460)
- fix(metadata): sort services by lexicographical order on ListServices (#2397)
- fix: in for defer close (#2411)
- fix: contrib/registry/eureka/client.go serveice -> serivce (#2440)
Others
- build(deps): bump actions/setup-go from 3.3.0 to 3.3.1 (#2462)
- cleanup: use HTTP package methods replace GET POST DELETE... (#2412)
- test(middleware/auth/jwt): add test TestNewContextAndFromContext (#2447)
- test(middleware/metadata): supplement test and modify code style (#2448)
- docs(config/etcd): fix the missing step of Load (#2450)
- [Feature] add path prefix for http server (#2439)
- cleanup: regex replcae . => . (#2435)
- test(middleware/logging): TestExtractError (#2443)
- cleanup: update scpSyntaxRe regexp (#2444)
- style: kratos interface check (#2441)
New Contributors
Full Changelog: v2.5.1...v2.5.2
v2.5.1
New Features
- feat: golangci add goimports local-prefixes (#2413)
- feat: remote assert libraries (#2372)
- feat(internal/host): prefer ipv4 than ipv6 (#2342)
- feat(cmd): user prePage to check changelog dev (#2340)
Bug Fixes
- fix: fmt import (#2379)
- fix(aliyun log): 'format bool' is missing in 'toString' function (#2406)
- fix: modify interface check way on selector (#2399)
- fix(http/binding): fix http encode url (#2400)
- fix(registry/consul): use health check option to control custom checks (#2391)
- fix(http/binding): fix http encode url (#2392)
- fix: typo and grammatical errors (#2368)
- fix: .gitignore del Repeated .*so (#2367)
- fix: modify interface check way (#2375)
- fix(apollo): config return nil when watch err
- fix(makefile): add "make proto" for proto generating (#2130)
Chores
Others
- cleanup: remove redundancy type conversion and golangci add unconvert (#2409)
- add custom binding (#2428)
- expose request from transport (#2427)
- style: modify declaring empty slices (#2378)
- style(config/value): optimize atomicValue format string (#2401)
- test(log): add toString unit test (#2373)
- cleanup: remove fmt and errors new err (#2377)
- cleanup: remove the repeated import (#2393)
- cleanup: modify deprecated field (#2380)
- typo for log (#2374)
- test: supplement the unit testing of transport/grpc (#2371)
- revise err logic or null pointer exception (#2376)
- test(cmd): add ModulePath test (#2337)
New Contributors
- @demoManito made their first contribution in #2291
- @icylight made their first contribution in #2296
- @SeigeC made their first contribution in #2299
- @Wang-TaoTao made their first contribution in #2323
- @hrygo made their first contribution in #2353
- @guowei-gong made their first contribution in #2349
- @xiaoliwang made their first contribution in #2374
- @swliao425 made their first contribution in #2406
- @gaffeyQiu made their first contribution in #2401
Full Changelog: v2.5.0...v2.5.1
v2.5.0
contrib -> go get github.com/kraots/contrib/xxxx@ba722304772728e1cd286e7d5a89de2ff4ae10ae
Dependencies
- deps: upgreade kratos version to v2.5.0 (#2286)
New Features
- feat: add servicecomb registry (#2114)
- feat(registry): consul get service support remote (#2275)
- feat(log): add tencent cls (#2244)
Bug Fixes
- fix: encoding form decode field mask from well-know (#2285)
- fix typo (#2284)
- fix: delete endpoint service discovery compatibility (#2289)
- fix logger caller depth (#2283)
- fix: wrong order of Logger prefix kvs (#2273)
- fix(log): DefaultCaller doesn't returns "pkg/file:line", it returns "file:line" now. For example, both biz/user.go and data/user.go are printed as user.go in logger. It's not clear. (#2274)
- fix(chore): set nacos-server v2.1.0 and consul v1.12.3 (#2268)
- fix lint error (#2266)
- fix: in case url or form bind param error should return BadRequest (#2256)
- fix(registry): contrib/registry/zookeeper ephemeral nodes handling after restart (#2245)
Others
- doc: grammar problems in the Readme file (#2281)
- bc: apollo unable to get and watch to the properties file (#2269)
- refactor(log) aliyun use the same interface name (#2251)
- refactor: unify selector filter (#2277)
- Global logger (#2265)
- build(deps): bump google.golang.org/protobuf in /contrib/log/aliyun (#2249)
- build(deps): bump github.com/prometheus/common (#2210)
New Contributors
- @Germiniku made their first contribution in #2244
- @hawkingrei made their first contribution in #2268
- @SeniorPlayer made their first contribution in #2274
- @kkf1 made their first contribution in #2114
- @YidaZhou made their first contribution in #2281
Full Changelog: v2.4.1...v2.5.0
v2.4.1
contrib -> go get github.com/kraots/contrib/xxxx@eff368621fb383112bfd8c79b4379036fc245193
New Features
- feat(middleware): add selector matcher (#2239)
- feat: support passing program args with run cmd (#2207)
Bug Fixes
- fix default behavior for gRPC encoding (#2187)
- fix: zookeeper add auto re-register (#2235)
- fix(contrib/config/polaris): Use injected client properly (#2238)
- fix: remove unuseful file when use nomod (#2234)
- fix(contrib): add logrus fatal level (#2222)
Others
- update ignore for go workspace (#2240)
- build(deps): bump k8s.io/client-go in /contrib/config/kubernetes (#2217)
- build(deps): bump k8s.io/client-go in /contrib/registry/kubernetes (#2218)
- build(deps): bump github.com/hashicorp/consul/api (#2211)
- build(deps): bump github.com/hashicorp/consul/api (#2209)
- build(deps): bump k8s.io/api in /contrib/config/kubernetes (#2219)
- build(deps): bump k8s.io/api in /contrib/registry/kubernetes (#2220)
- build(deps): bump github.com/go-zookeeper/zk (#2236)
- proto build client structName not match to server's structName (#2200)
- docs: update README_zh.md (#2208)
- build(deps): bump github.com/prometheus/common (#2188)
- build(deps): bump actions/setup-go from 3.2.0 to 3.2.1 (#2189)
- Feature/improve app test (#2190)
- test: increase endpoint,env, options and reader tests coverage. (#2192)
- test(contrib): update unit test for contrib/registry/polaris (#2196)
- test(log): increase tests coverage (#2197)
New Contributors
- @walrusyu made their first contribution in #2190
- @fengyuwusong made their first contribution in #2208
- @paulip1792 made their first contribution in #2238
- @Nomango made their first contribution in #2207
- @180909 made their first contribution in #2240
Full Changelog: v2.4.0...v2.4.1
v2.4.0
contrib -> go get github.com/kraots/contrib/xxxx@1451b9e0c0e3e1ee88a4595d9f9cfaf24eb8150f
New Features
- feat(http): add http router walk (#2181)
- feat(metadata): Ignore service if the dependencies are not found (#2171)
- feat: add logrus to contrib log (#2077)
- feat: add contrib/config/polaris polaris as configcenter (#2158)
- feat: add protoc-gen-go-http annotations synchronization with protoc-gen-go-grpc (#2151)
Bug Fixes
- fix(transport): http endpoint listening (#2180)
- fix transport early listening (#2177)
- fix(errors): panic when err of Clone is nil (#2176)
- fix(encoding/form): encode optional value (#2155)
- fix: typo on emptypb.Empty (#2150)
Others
- test(options): increase tests coverage (#2183)
- test(transport): add unit test for transport coverage: 91.7% of state… (#2172)
- test(contrib): add unit test for contrib/metrics/prometheus (#2182)
- test(contrib/config/consul): add unit test for contrib/config/consul (#2179)
- test(errors): improve coverage (#2178)
- build(deps): bump k8s.io/client-go in /contrib/registry/kubernetes (#2120)
- tests(coverage): Increase middleware tests coverage (#2165)
- test(config/file): add format test (#2147) (#2168)
- build(deps): bump github.com/hashicorp/consul/api (#2082)
- test(contrib): add unit test for contrib/registry/k8s (#2166)
- build(deps): bump github.com/hashicorp/consul/api (#2081)
- build(deps): bump k8s.io/client-go in /contrib/config/kubernetes (#2122)
- build(deps): bump k8s.io/api in /contrib/registry/kubernetes (#2124)
- test(contrib): add unit test for aliyun.go (#2164)
- test(encoding/form): well konw types test (#2147) (#2160)
- test: supplement the unit testing of metadata (#2161)
- build(deps): bump github.com/aliyun/aliyun-log-go-sdk (#2152)
- test(nacos): add nacos unit test and remove unused function (#2145)
- test(contrib): add unit test for contrib/config/k8s (#2140)
- test(contrib): add unit test for contrib/registry/consul (#2148)
New Contributors
- @czyt made their first contribution in #2078
- @workman-Lu made their first contribution in #1916
- @raw34 made their first contribution in #2094
- @charviki made their first contribution in #2125
- @deagon made their first contribution in #2132
- @zoujiejun made their first contribution in #2137
- @shifengbin made their first contribution in #2139
- @ThereWeGo made their first contribution in #2143
- @u5surf made their first contribution in #2141
- @liuyi0618 made their first contribution in #2146
- @freezeChen made their first contribution in #2148
- @rogerogers made their first contribution in #2140
- @Loner1024 made their first contribution in #2161
- @shengzhou1216 made their first contribution in #2160
- @Betula-L made their first contribution in #2077
- @darkweak made their first contribution in #2165
- @jakezhu9 made their first contribution in #2183
- @xiongpan828 made their first contribution in #2185
Full Changelog: https://github.com/go-kratos/kratos/compare/v2.3.1...v2.4.0###
v2.3.1
contrib -> go get github.com/kraots/contrib/xxxx@95dce008525d763283c4cd4772afac9c1d4d3796
New Features
- feat: make secure url to grpcs://127.0.0.1/ (#2072)
- feat: add config log (#2060)
- feat:add context for log (#2041)
Bug Fixes
- fix with logger (#2062)
- fix: config log
Others
- transport/http(feat): add redirector to forward request (#2074)
- build(deps): bump gopkg.in/yaml.v3 in /contrib/config/nacos (#2067)
- build(deps): bump gopkg.in/yaml.v3 in /contrib/config/apollo (#2068)
- build(deps): bump k8s.io/client-go in /contrib/config/kubernetes (#2056)
- build(deps): bump k8s.io/client-go in /contrib/registry/kubernetes (#2057)
- build(deps): bump github.com/aliyun/aliyun-log-go-sdk (#2053)
- build(deps): bump k8s.io/api in /contrib/config/kubernetes (#2052)
- log: remove component logger to use global logger (#2061)
- build(deps): bump k8s.io/api in /contrib/registry/kubernetes (#2058)
- app: fix instance nil when not registered (#2059)
- build(deps): bump actions/setup-go from 2 to 3.2.0 (#2048)
- build(deps): bump golangci/golangci-lint-action from 2 to 3 (#2047)
- build(deps): bump actions/checkout from 2 to 3 (#2046)
- build(deps): bump github/codeql-action from 1 to 2 (#2045)
- Update dependabot.yml
- Create dependabot.yml
New Contributors
- @dependabot made their first contribution in #2045
Full Changelog: v2.3.0...v2.3.1
v2.3.0
contrib v2.3.0 -> v2.0.0-20220524035307-70317d05a07a
Dependencies
- deps: upgrade go mod version (#2028)
New Features
- feat(contrib/opensergo): add opensergo reportMetadata fields (#1996)
- feat(registry): zookeeper watch node changed (#1986)
Bug Fixes
- fix:fix error camel case (#2032)
- fix:#2006 config.atomicValue Other basic types are supported (#2007)
- fix(protoc-gen-go-errors): fix generated function comments have extra blank lines. (#2008)
- fix:#2002 definition service lowercase generation cannot be exported (#2003)
- fix: update ci gocyclo min-complexity 50 (#2000)
- fix:(transport/http): fix unexpected overriding behavior when return an error (#1984)
Others
- opensergo: fix http path & method (#2035)
- log: fix global logger (#2034)
- http: handle default mux (#2033)
- Update project.go (#2024)
- Update server.go (#2021)
- style:change (#2022)
- Update path.go (#2023)
- Update run.go (#2025)
- stype:gen_go_errors (#2026)
- Update server.go (#2027)
- style:ewma (#2018)
- Style:trace (#2017)
- Update jwt.go (#2016)
- Update metadata.go (#2015)
- style:log (#2014)
- Update encode.go (#2019)
- Update endpoint.go (#2012)
- Update host.go (#2013)
- Update errors.go (#2009)
- Update file.go (#2005)
- Added ability to configure protojson (#1993)
New Contributors
- @yliu7949 made their first contribution in #1975
- @vgjm made their first contribution in #1973
- @i6u made their first contribution in #1977
- @nikitaksv made their first contribution in #1979
- @imzhongqi made their first contribution in #1989
- @Comolli made their first contribution in #1991
- @houseme made their first contribution in #1999
- @windzhu0514 made their first contribution in #1993
Full Changelog: v2.2.2...v2.3.0
v2.2.2
What's Changed
- feat: supprt non-kratos instance in consul registry by @longXboy in #1892
- fix: starter parent ctx by @tonybase in #1895
- feat(contrib): add eureka registry (#1792) by @weetime in #1793
- feat(log): log load config only when Debug level by @Cluas in #1899
- fix(log): FilterFunc keyvals lost logger prefix by @Cluas in #1901
- fix(log): Improper Input Validation in GoGo Protobuf CVE-2021-3121 by @shenqidebaozi in #1902
- fix(transport): fix the problem that the request is not delivered correctly by @shenqidebaozi in #1906
- feat(transport): add JSON codec for gRPC by @tonybase in #1908
- fix(cmd): protoc-gen-go-http use self release by @yoogoc in #1909
- fix(cmd): fix lint problem by @Casper-Mars in #1919
- feat(registry): consul client add DeregisterCriticalServiceAfter option by @Casper-Mars in #1917
- feat: change description of Kratos by @Casper-Mars in #1920
- feat: add error cause for statck trace by @tonybase in #1910
- fix(cmd): generate error func name and unit test fail by @fifsky in #1923
- fix(metadata): correct the function name in metadata log text by @Windfarer in #1915
- feat(selector): add node scheme by @tonybase in #1932
- feat(discovery): provide an option to disable discovery debug log by @yeqown in #1942
- feat: add opensergo metadata by @tonybase in #1947
- fix client do method done not use when err not nil by @zhaobingchun in #1948
- fix bind test errors by @Donglong in #1950
- fix(contrib/opensergo): fix index error by @Casper-Mars in #1951
- fix: fix choose failed when path is cmd/server by @haiyux in #1954
- fix: fix kratos run when cmd number is one by @haiyux in #1956
- feat:new and add karge warehouse by @haiyux in #1953
- fix(transport/http): responseEncoder should not write any data when it need to write nil by @Donglong in #1945
- feat(registry): contrib/registry/zookeeper add digest acl support by @youzhixiaomutou in #1964
- feat: protoc-gen-go-errors add comment by @JeffreyBool in #1961
- feat(log): Helper implemented io.Writer by @elricli in #1927
- deps: upgrade kratos version to v2.2.2 by @shenqidebaozi in #1944
New Contributors
- @weetime made their first contribution in #1793
- @yoogoc made their first contribution in #1909
- @zhaobingchun made their first contribution in #1948
- @Donglong made their first contribution in #1950
- @youzhixiaomutou made their first contribution in #1964
- @JeffreyBool made their first contribution in #1961
Full Changelog: v2.2.1...v2.2.2