v1.3.4
发布于 2022-06-03 — GitHub Release
Features and Updates:
- support using third-party logging libs with logx
- support
LogFieldwith methodsInfow,ErrorwandSlowwin logx, likelogx.Infow(msg, logx.Field(key1, val1), logx.Field(key2, val2)) - logx now supports terminal colors with
Encoding: plain - support
tomlconfig files - support client stream interceptors for gRPC
- set default connection idle time to 5 minutes for gRPC servers
- enable health check in gRPC servers
- even more clear trace info for redis, sql and mongodb
- removed deprecated usages from dependencies
- update go version to 1.16, because of security reasons in
k8s.io/client-go - minor bug fixes and improvements
Change logs
Section titled “Change logs”- docs: update readme by @kevwan in https://github.com/zeromicro/go-zero/pull/1849
- test: add more tests by @kevwan in https://github.com/zeromicro/go-zero/pull/1856
- fix typo by @sixwaaaay in https://github.com/zeromicro/go-zero/pull/1857
- feat: add fields with logx methods, support using third party logging libs. by @kevwan in https://github.com/zeromicro/go-zero/pull/1847
- chore: use time.Now() instead of timex.Time() because go optimized it by @kevwan in https://github.com/zeromicro/go-zero/pull/1860
- test: add codecov by @kevwan in https://github.com/zeromicro/go-zero/pull/1861
- test: add codecov by @kevwan in https://github.com/zeromicro/go-zero/pull/1863
- chore: refine tests by @kevwan in https://github.com/zeromicro/go-zero/pull/1864
- fix time, duration, slice types on logx.Field by @kevwan in https://github.com/zeromicro/go-zero/pull/1868
- add conf documents by @kevwan in https://github.com/zeromicro/go-zero/pull/1869
- chore: fix deprecated usages by @kevwan in https://github.com/zeromicro/go-zero/pull/1871
- feat: Replace cli to cobra by @anqiansong in https://github.com/zeromicro/go-zero/pull/1855
- feat: logx with color by @kevwan in https://github.com/zeromicro/go-zero/pull/1872
- chore: update some logs by @kevwan in https://github.com/zeromicro/go-zero/pull/1875
- chore: improve codecov by @kevwan in https://github.com/zeromicro/go-zero/pull/1878
- fix:tools/goctl/rpc/generator/template_test.go file has wrong parameters by @wangzeping722 in https://github.com/zeromicro/go-zero/pull/1882
- fix ts template by @SeigeC in https://github.com/zeromicro/go-zero/pull/1879
- fix: Code generation by @anqiansong in https://github.com/zeromicro/go-zero/pull/1897
- feat: Add goctl quickstart by @anqiansong in https://github.com/zeromicro/go-zero/pull/1889
- refactor: refactor trace in redis & sql & mongo by @chenquan in https://github.com/zeromicro/go-zero/pull/1865
- chore: coding style for quickstart by @kevwan in https://github.com/zeromicro/go-zero/pull/1902
- feat: add toml config by @kevwan in https://github.com/zeromicro/go-zero/pull/1899
- chore: use goproxy properly by @kevwan in https://github.com/zeromicro/go-zero/pull/1903
- chore: use get for quickstart, plain logs for easy understanding by @kevwan in https://github.com/zeromicro/go-zero/pull/1905
- feat: support WithStreamClientInterceptor for zrpc clients by @kevwan in https://github.com/zeromicro/go-zero/pull/1907
- fix: Fix process blocking problem during check by @anqiansong in https://github.com/zeromicro/go-zero/pull/1911
- chore: update k8s.io/client-go for security reason, go is upgrade to 1.16 by @kevwan in https://github.com/zeromicro/go-zero/pull/1912
- feat: set default connection idle time for grpc servers, and health check supported by @kevwan in https://github.com/zeromicro/go-zero/pull/1922
- fix: Useless delete cache logic in update by @anqiansong in https://github.com/zeromicro/go-zero/pull/1923
- fix: Support built-in shorthand flags by @anqiansong in https://github.com/zeromicro/go-zero/pull/1925
- feat: update docker alpine package mirror by @kevwan in https://github.com/zeromicro/go-zero/pull/1924
- chore: add release action to auto build binaries by @chenquan in https://github.com/zeromicro/go-zero/pull/1884
- chore(action): simplified release configuration by @chenquan in https://github.com/zeromicro/go-zero/pull/1935
- core/mr:a little optimization for collector initialization in ForEach function by @notrynosuccess in https://github.com/zeromicro/go-zero/pull/1937
- code simplification. by @lizhichao in https://github.com/zeromicro/go-zero/pull/1939
- chore: refine docker for better compatible with package main by @kevwan in https://github.com/zeromicro/go-zero/pull/1944
- Delete duplicated crash recover logic. by @kunyu in https://github.com/zeromicro/go-zero/pull/1950
- chore: update roadmap by @kevwan in https://github.com/zeromicro/go-zero/pull/1948
- fix: panic on convert to string on fillSliceFromString() by @cjf8134 in https://github.com/zeromicro/go-zero/pull/1951
- chore: refactoring mapping string to slice by @kevwan in https://github.com/zeromicro/go-zero/pull/1959
New Contributors
Section titled “New Contributors”- @sixwaaaay made their first contribution in https://github.com/zeromicro/go-zero/pull/1857
- @wangzeping722 made their first contribution in https://github.com/zeromicro/go-zero/pull/1882
- @SeigeC made their first contribution in https://github.com/zeromicro/go-zero/pull/1879
- @notrynosuccess made their first contribution in https://github.com/zeromicro/go-zero/pull/1937
- @kunyu made their first contribution in https://github.com/zeromicro/go-zero/pull/1950
- @cjf8134 made their first contribution in https://github.com/zeromicro/go-zero/pull/1951
Full Changelog: https://github.com/zeromicro/go-zero/compare/v1.3.3…v1.3.4