Releases: zeromicro/go-zero
Releases · zeromicro/go-zero
goctl/v1.4.1
v1.4.0
Framework:
- Support gRPC gateway, use RESTful APIs for gRPC services
- Support
Routes
method to get all registered HTTP routes - Support log file rotation base on file size
- Auto close response.Body in httpc when calling Parse methods
- Support context as parameters in RedisLock
- Minor bug fixes and improvements
What's Changed
- fix goctl rpc protoc strings.EqualFold Service.Name GoPackage by @LeeDF in #2046
- chore: coding style by @kevwan in #2120
- feat: add Wrap and Wrapf in errorx by @kevwan in #2126
- fix: generated sql query fields do not match template by @qwernser in #2004
- feat: support logx.WithFields by @kevwan in #2128
- feat:Add
Routes
method for server by @czyt in #2125 - chore: add more tests by @kevwan in #2129
- chore: refactor by @kevwan in #2130
- docs: update goctl readme by @kevwan in #2136
- chore: remove unimplemented gateway by @kevwan in #2139
- chore(deps): bump go.mongodb.org/mongo-driver from 1.9.1 to 1.10.0 by @dependabot in #2150
- chore(deps): bump google.golang.org/grpc from 1.47.0 to 1.48.0 by @dependabot in #2147
- feat: restful -> grpc gateway by @kevwan in #2155
- feat: export gateway.Server to let users add middlewares by @kevwan in #2157
- feat: support form values in gateway by @kevwan in #2158
- feat: verify RpcPath on startup by @kevwan in #2159
- feat: set content-type to application/json by @kevwan in #2160
- feat: support google.api.http in gateway by @kevwan in #2161
- feat: support customized header to metadata processor by @kevwan in #2162
- chore: refactoring mapping name by @kevwan in #2168
- fix: goctl genhandler duplicate rest/httpx & template import custom by @smithyj in #2152
- fix: Update api template by @anqiansong in #2172
- fix: fix #2102, #2108 by @anqiansong in #2131
- feat: Support for multiple rpc service generation and rpc grouping by @anqiansong in #1972
- feat: Update goctl version by @anqiansong in #2178
- feat: logx support logs rotation based on size limitation. (#1652) by @SgtDaJim in #2167
- chore: refactoring logx by @kevwan in #2181
- chore: refactoring by @kevwan in #2182
- fix: fix switch doesn't work bug by @wubenqi in #2183
- fix:duplicate route check by @fisnone in #2154
- chore: let logx.SetWriter can be called anytime by @kevwan in #2186
- fix: remove invalid log fields in notLoggingContentMethods by @wubenqi in #2187
- support mulitple protoset files by @showurl in #2190
- fix(httpc): fix typo errors by @chenquan in #2189
- fix: logx test foo by @seth-shi in #2144
- fix: only setup logx once by @kevwan in #2188
- chore(deps): bump google.golang.org/protobuf from 1.28.0 to 1.28.1 by @dependabot in #2205
- feat(redislock): support set context by @zcong1993 in #2208
- chore: refactor redislock by @kevwan in #2210
- fix: handling rpc error on gateway by @kevwan in #2212
- chore(deps): bump go.opentelemetry.io/otel/exporters/jaeger from 1.8.0 to 1.9.0 by @dependabot in #2223
- chore(deps): bump go.opentelemetry.io/otel/exporters/zipkin from 1.8.0 to 1.9.0 by @dependabot in #2222
- fix: fix comment typo by @safeoy in #2220
- fix(logx): need to wait for the first caller to complete the execution. by @chenquan in #2213
- chore(deps): bump go.mongodb.org/mongo-driver from 1.10.0 to 1.10.1 by @dependabot in #2225
- chore: renaming configs by @kevwan in #2234
- fix: #2216 by @kevwan in #2235
- docs: update docs for gateway by @kevwan in #2236
- feat: more meaningful error messages, close body on httpc requests by @kevwan in #2238
New Contributors
- @LeeDF made their first contribution in #2046
- @qwernser made their first contribution in #2004
- @SgtDaJim made their first contribution in #2167
- @fisnone made their first contribution in #2154
- @seth-shi made their first contribution in #2144
- @zcong1993 made their first contribution in #2208
- @safeoy made their first contribution in #2220
Full Changelog: v1.3.5...v1.4.0
goctl/v1.4.0
Features
- Support for multiple rpc service generation and rpc grouping by @anqiansong on #1972
- goctl model mongo add easy flag for easy declare by @czyt on #2073
Fixes
- Fix url routing bug by @anqiansong on #2131
- Fix duplicate import rest/httpx by @smithyj on #2152
- Fix duplicate route check by @fisnone on #2154
What's Changed
- fix goctl rpc protoc strings.EqualFold Service.Name GoPackage by @LeeDF in #2046
- chore: coding style by @kevwan in #2120
- feat: add Wrap and Wrapf in errorx by @kevwan in #2126
- fix: generated sql query fields do not match template by @qwernser in #2004
- feat: support logx.WithFields by @kevwan in #2128
- feat:Add
Routes
method for server by @czyt in #2125 - chore: add more tests by @kevwan in #2129
- chore: refactor by @kevwan in #2130
- docs: update goctl readme by @kevwan in #2136
- chore: remove unimplemented gateway by @kevwan in #2139
- chore(deps): bump go.mongodb.org/mongo-driver from 1.9.1 to 1.10.0 by @dependabot in #2150
- chore(deps): bump google.golang.org/grpc from 1.47.0 to 1.48.0 by @dependabot in #2147
- feat: restful -> grpc gateway by @kevwan in #2155
- feat: export gateway.Server to let users add middlewares by @kevwan in #2157
- feat: support form values in gateway by @kevwan in #2158
- feat: verify RpcPath on startup by @kevwan in #2159
- feat: set content-type to application/json by @kevwan in #2160
- feat: support google.api.http in gateway by @kevwan in #2161
- feat: support customized header to metadata processor by @kevwan in #2162
- chore: refactoring mapping name by @kevwan in #2168
- fix: goctl genhandler duplicate rest/httpx & template import custom by @smithyj in #2152
- fix: Update api template by @anqiansong in #2172
- fix: fix #2102, #2108 by @anqiansong in #2131
- feat: Support for multiple rpc service generation and rpc grouping by @anqiansong in #1972
- feat: Update goctl version by @anqiansong in #2178
- feat: logx support logs rotation based on size limitation. (#1652) by @SgtDaJim in #2167
- chore: refactoring logx by @kevwan in #2181
- chore: refactoring by @kevwan in #2182
- fix: fix switch doesn't work bug by @wubenqi in #2183
- fix:duplicate route check by @fisnone in #2154
- chore: let logx.SetWriter can be called anytime by @kevwan in #2186
- fix: remove invalid log fields in notLoggingContentMethods by @wubenqi in #2187
- support mulitple protoset files by @showurl in #2190
- fix(httpc): fix typo errors by @chenquan in #2189
- fix: logx test foo by @seth-shi in #2144
- fix: only setup logx once by @kevwan in #2188
- chore(deps): bump google.golang.org/protobuf from 1.28.0 to 1.28.1 by @dependabot in #2205
- feat(redislock): support set context by @zcong1993 in #2208
- chore: refactor redislock by @kevwan in #2210
- fix: handling rpc error on gateway by @kevwan in #2212
- chore(deps): bump go.opentelemetry.io/otel/exporters/jaeger from 1.8.0 to 1.9.0 by @dependabot in #2223
- chore(deps): bump go.opentelemetry.io/otel/exporters/zipkin from 1.8.0 to 1.9.0 by @dependabot in #2222
- fix: fix comment typo by @safeoy in #2220
- fix(logx): need to wait for the first caller to complete the execution. by @chenquan in #2213
- chore(deps): bump go.mongodb.org/mongo-driver from 1.10.0 to 1.10.1 by @dependabot in #2225
- chore: renaming configs by @kevwan in #2234
- fix: #2216 by @kevwan in #2235
- docs: update docs for gateway by @kevwan in #2236
- feat: more meaningful error messages, close body on httpc requests by @kevwan in #2238
New Contributors
- @LeeDF made their first contribution in #2046
- @qwernser made their first contribution in #2004
- @SgtDaJim made their first contribution in #2167
- @fisnone made their first contribution in #2154
- @seth-shi made their first contribution in #2144
- @zcong1993 made their first contribution in #2208
- @safeoy made their first contribution in #2220
Full Changelog: tools/goctl/v1.3.9...tools/goctl/v1.4.0
v1.3.5
Features and Updates:
- add
svr.PrintRoutes()
to print registered routes in rest servers - convert grpc errors to http status codes automatically
- support to disable builtin middlewares and use self-defined ones in rest
- add trace-id, span-id in httpc
- add
TakeCtx
in PeriodLimit - minor improvements and bug fixes
What's Changed
- chore: update dependencies by @kevwan in #1963
- feat: print routes by @kevwan in #1964
- chore: better mongo logs by @kevwan in #1965
- chore: make print pretty by @kevwan in #1967
- fix: The validation of tag "options" is not working with int/uint type by @taobig in #1969
- chore: make methods consistent in signatures by @kevwan in #1971
- chore: update dependencies by @kevwan in #1985
- periodlimit new function TakeWithContext by @showurl in #1983
- feat: convert grpc errors to http status codes by @kevwan in #1997
- fix: not showing the size of the received bytes in tracing of zrpc clients. by @AtlanCI in #2003
- feat: add trace in httpc by @chenquan in #2011
- add user middleware chain function by @magickeha in #1913
- chore: refactor to simplify disabling builtin middlewares by @kevwan in #2031
- feat: rest.WithChain to replace builtin middlewares by @kevwan in #2033
- fix:
\u003cnil\u003e
log output when http server shutdown. by @brickzzhang in #2055 - feat: CompareAndSwapInt32 may be better than AddInt32 by @wxc421 in #2077
- Remove legacy code by @taobig in #2084
- fix concurrent map read and map write by @wangzeping722 in #2079
- fix: type matching supports string to int by @cjf8134 in #2038
- Remove legacy code by @taobig in #2086
- feat: add method to jsonx by @vfmh in #2049
- refactor:remove duplicate codes by @shssen in #2101
- fix #2109 by @kevwan in #2116
New Contributors
- @kevin0527 made their first contribution in #1916
- @taobig made their first contribution in #1969
- @swliao425 made their first contribution in #1996
- @gaffeyQiu made their first contribution in #1992
- @showurl made their first contribution in #1983
- @AtlanCI made their first contribution in #2003
- @magickeha made their first contribution in #1913
- @lord63 made their first contribution in #2047
- @czyt made their first contribution in #2061
- @brickzzhang made their first contribution in #2055
- @dependabot made their first contribution in #2064
- @wxc421 made their first contribution in #2077
- @vfmh made their first contribution in #2049
- @shssen made their first contribution in #2101
Full Changelog: v1.3.4...v1.3.5
goctl/v1.3.9
feature
- Add 'imagePullPolicy' parameter for 'goctl kube deploy' by @swliao425
- Replace mongo package with mon & monc
- Add command desc & color commands
- Support build Dockerfile from current dir
- Support generate mongo model with auto generated collection names
fix
- Fix pg subcommand level error by @anqiansong
- Fix generate bad Dockerfile on given dir by @kevwan
- Fix goctl api clone template fail by @MarkJoyMa
- Fix issue #1977 by @anqiansong
- Fix quickstart wrong package when go.mod exists in parent dir by @kevwan
goctl/v1.3.8
Bug fixes.
goctl/v1.3.7
goctl
- add
goctl quickstart
command - refactor cli to cobra
- improve cache management in model update template
- bug fixes and improvements
- fix the
beta
tag in version
v1.3.4
Features and Updates:
- support using third-party logging libs with logx
- support
LogField
with methodsInfow
,Errorw
andSloww
in logx,
likelogx.Infow(msg, logx.Field(key1, val1), logx.Field(key2, val2))
- logx now supports terminal colors with
Encoding: plain
- support
toml
config 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
- docs: update readme by @kevwan in #1849
- test: add more tests by @kevwan in #1856
- fix typo by @sixwaaaay in #1857
- feat: add fields with logx methods, support using third party logging libs. by @kevwan in #1847
- chore: use time.Now() instead of timex.Time() because go optimized it by @kevwan in #1860
- test: add codecov by @kevwan in #1861
- test: add codecov by @kevwan in #1863
- chore: refine tests by @kevwan in #1864
- fix time, duration, slice types on logx.Field by @kevwan in #1868
- add conf documents by @kevwan in #1869
- chore: fix deprecated usages by @kevwan in #1871
- feat: Replace cli to cobra by @anqiansong in #1855
- feat: logx with color by @kevwan in #1872
- chore: update some logs by @kevwan in #1875
- chore: improve codecov by @kevwan in #1878
- fix:tools/goctl/rpc/generator/template_test.go file has wrong parameters by @wangzeping722 in #1882
- fix ts template by @SeigeC in #1879
- fix: Code generation by @anqiansong in #1897
- feat: Add goctl quickstart by @anqiansong in #1889
- refactor: refactor trace in redis & sql & mongo by @chenquan in #1865
- chore: coding style for quickstart by @kevwan in #1902
- feat: add toml config by @kevwan in #1899
- chore: use goproxy properly by @kevwan in #1903
- chore: use get for quickstart, plain logs for easy understanding by @kevwan in #1905
- feat: support WithStreamClientInterceptor for zrpc clients by @kevwan in #1907
- fix: Fix process blocking problem during check by @anqiansong in #1911
- chore: update k8s.io/client-go for security reason, go is upgrade to 1.16 by @kevwan in #1912
- feat: set default connection idle time for grpc servers, and health check supported by @kevwan in #1922
- fix: Useless delete cache logic in update by @anqiansong in #1923
- fix: Support built-in shorthand flags by @anqiansong in #1925
- feat: update docker alpine package mirror by @kevwan in #1924
- chore: add release action to auto build binaries by @chenquan in #1884
- chore(action): simplified release configuration by @chenquan in #1935
- core/mr:a little optimization for collector initialization in ForEach function by @notrynosuccess in #1937
- code simplification. by @lizhichao in #1939
- chore: refine docker for better compatible with package main by @kevwan in #1944
- Delete duplicated crash recover logic. by @kunyu in #1950
- chore: update roadmap by @kevwan in #1948
- fix: panic on convert to string on fillSliceFromString() by @cjf8134 in #1951
- chore: refactoring mapping string to slice by @kevwan in #1959
New Contributors
- @sixwaaaay made their first contribution in #1857
- @wangzeping722 made their first contribution in #1882
- @SeigeC made their first contribution in #1879
- @notrynosuccess made their first contribution in #1937
- @kunyu made their first contribution in #1950
- @cjf8134 made their first contribution in #1951
Full Changelog: v1.3.3...v1.3.4
goctl/v1.3.6
goctl
- add
goctl quickstart
command - refactor cli to cobra
- improve cache management in model update template
- bug fixes and improvements
v1.3.3
- add
mon
andmonc
packages to use official driver for mongodb - add
httpc.Do
andhttpc.Service.Do
to make requests from defined structs - ignore timeout settings on websocket connections
- support sub-domains for CORS
- tracing span added in redis, sql and mongodb calls
- upgrade
gRPC
to 1.46, removed the deprecated usage ofgrpc.WithBalancerName
- bug fixes and minor improvements