Skip to content

Releases: go-kratos/kratos

v2.5.4

17 Jan 05:13
6174475
Compare
Choose a tag to compare

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

  • chore(transport): fix the test name (#2543)
  • chore: fix a few function names on comments (#2430)

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

Full Changelog: v2.5.3...v2.5.4

v2.5.3

10 Nov 15:04
a7bae93
Compare
Choose a tag to compare

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

Full Changelog: v2.5.2...v2.5.3

v2.5.2

19 Oct 14:40
dcae38d
Compare
Choose a tag to compare

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

10 Oct 05:51
8743f3e
Compare
Choose a tag to compare

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

  • chore(log): let log toString same (#2414)
  • chore: Update go.yml (#2426)

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

Full Changelog: v2.5.0...v2.5.1

v2.5.0

17 Aug 10:19
ba72230
Compare
Choose a tag to compare

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

Full Changelog: v2.4.1...v2.5.0

v2.4.1

28 Jul 11:45
eff3686
Compare
Choose a tag to compare

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

Full Changelog: v2.4.0...v2.4.1

v2.4.0

11 Jul 11:55
1451b9e
Compare
Choose a tag to compare

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

Full Changelog: https://github.com/go-kratos/kratos/compare/v2.3.1...v2.4.0###

v2.3.1

02 Jun 11:18
95dce00
Compare
Choose a tag to compare

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

Full Changelog: v2.3.0...v2.3.1

v2.3.0

24 May 03:54
70317d0
Compare
Choose a tag to compare

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

Full Changelog: v2.2.2...v2.3.0

v2.2.2

06 May 13:47
091ba2d
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v2.2.1...v2.2.2