Releases: go-kratos/kratos
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
v2.2.1
contrib v2.2.1 -> v2.0.0-20220318035139-e98c0078cb29
Dependencies
- deps: upgrade kratos version to 2.2.1 (#1890)
New Features
- feat: add semantic.yml (#1876)
- feat: add zero prealloc (#1847)
- feat(example/transaction/ent): add ent install in Makefile (#1844)
- feat(examples/transaction): feature transaction gorm (#1838)
Bug Fixes
- fix: update semantic (#1891)
- fix(cmd): proto-gen-go-http warn only when ending with a slash (#1887)
- fix(log): call depth (#1885)
- fix: kratos command error on windows (#1884)
- fix: decode empty body (#1882)
- fix: graceful shutdown (#1873)
- fix: fix some typos (#1869)
- fix: error code judgment (#1849)
- fix(config/config):fix type not match bug (#1837)
Chores
Others
- ci: Add 1.18 (#1880)
- style(cmd/errors/examples/middleware/transport): fix common words' spelling mistakes (#1872)
- docs: fix some typos (#1852)
- Example for Polaris (#1850)
- perf: add prealloc (#1846)
- build: add matrix strategy with go version (#1845)
- perf(app): add prealloc (#1843)
- Discovery For Tencent Polaris (#1839)
v2.2.0
contrib v2.2.0 -> v2.0.0-20220223091357-d6896127b137
BreakChange
- jwt.WithClaims accept a func instead of claim interface
Dependencies
New Features
- feat(examples/transaction): add transaction examples (#1836)
- feat(registry/polaris): add registry for Tencent Polaris (#1816)
- feat:add examples redirect url (#1807)
- feature(middleware/jwt): add server custom claims(#1817)
Bug Fixes
- fix lint (#1833)
- fix: add yaml / yml parser (#1808)
- fix(contrib): get nacos service of customize group name (#1798)
- fix(config/consul):Config from consul skip empty key (#1830)
- fix: fix the latest version of lint problem (#1825)
- fix(cmd/http): warn only when a get or delete request declares a body (#1789)
- fix: k8s discovery interface (#1820)
- fix: fix ci tool (#1803)
- fix: allocates new objects each time (#1802)
Others
v2.1.5
contrib v2.1.5 -> v2.0.0-20220124072645-9ea78f302d5a
Dependencies
- deps: upgrade kratos version to v2.1.5 (#1785)
- deps(cmd/kratos): Upgrade Cobra 1.2.1 -> v1.3.0 (#1783)
New Features
- feat: add logger sdk for aliyun (#1748)
- feat:add stream interceptor use ctx encapsulation (#1770)
- feat(log): add global logger appliance, as process level default logger (#1761)
- feat:sync to gitee where release a version (#1755)
- feat(middleware/auth/jwt): add customer header (#1752)
Bug Fixes
- fix: change consul config docs (#1784)
- fix: consul heartbeat ttl not registered (#1781)
- fix: perhaps MISSING (#1779)
- fixed the problem that grpc stop could not close properly
- fix:fix log caller error (#1773)
- fix(cmd/kratos): specified version for upgrade (#1772)
- fix(cmd/kratos): filepath walk nil pointer reference problem (#1762)
- fix: change installation package path for protoc-gen-openapi (#1759)