v1.4.0
版本发布时间: 2022-08-07 16:23:03
zeromicro/go-zero最新发布版本:v1.7.2(2024-09-03 09:09:07)
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 https://github.com/zeromicro/go-zero/pull/2046
- chore: coding style by @kevwan in https://github.com/zeromicro/go-zero/pull/2120
- feat: add Wrap and Wrapf in errorx by @kevwan in https://github.com/zeromicro/go-zero/pull/2126
- fix: generated sql query fields do not match template by @qwernser in https://github.com/zeromicro/go-zero/pull/2004
- feat: support logx.WithFields by @kevwan in https://github.com/zeromicro/go-zero/pull/2128
- feat:Add
Routes
method for server by @czyt in https://github.com/zeromicro/go-zero/pull/2125 - chore: add more tests by @kevwan in https://github.com/zeromicro/go-zero/pull/2129
- chore: refactor by @kevwan in https://github.com/zeromicro/go-zero/pull/2130
- docs: update goctl readme by @kevwan in https://github.com/zeromicro/go-zero/pull/2136
- chore: remove unimplemented gateway by @kevwan in https://github.com/zeromicro/go-zero/pull/2139
- chore(deps): bump go.mongodb.org/mongo-driver from 1.9.1 to 1.10.0 by @dependabot in https://github.com/zeromicro/go-zero/pull/2150
- chore(deps): bump google.golang.org/grpc from 1.47.0 to 1.48.0 by @dependabot in https://github.com/zeromicro/go-zero/pull/2147
- feat: restful -> grpc gateway by @kevwan in https://github.com/zeromicro/go-zero/pull/2155
- feat: export gateway.Server to let users add middlewares by @kevwan in https://github.com/zeromicro/go-zero/pull/2157
- feat: support form values in gateway by @kevwan in https://github.com/zeromicro/go-zero/pull/2158
- feat: verify RpcPath on startup by @kevwan in https://github.com/zeromicro/go-zero/pull/2159
- feat: set content-type to application/json by @kevwan in https://github.com/zeromicro/go-zero/pull/2160
- feat: support google.api.http in gateway by @kevwan in https://github.com/zeromicro/go-zero/pull/2161
- feat: support customized header to metadata processor by @kevwan in https://github.com/zeromicro/go-zero/pull/2162
- chore: refactoring mapping name by @kevwan in https://github.com/zeromicro/go-zero/pull/2168
- fix: goctl genhandler duplicate rest/httpx & template import custom by @smithyj in https://github.com/zeromicro/go-zero/pull/2152
- fix: Update api template by @anqiansong in https://github.com/zeromicro/go-zero/pull/2172
- fix: fix #2102, #2108 by @anqiansong in https://github.com/zeromicro/go-zero/pull/2131
- feat: Support for multiple rpc service generation and rpc grouping by @anqiansong in https://github.com/zeromicro/go-zero/pull/1972
- feat: Update goctl version by @anqiansong in https://github.com/zeromicro/go-zero/pull/2178
- feat: logx support logs rotation based on size limitation. (#1652) by @SgtDaJim in https://github.com/zeromicro/go-zero/pull/2167
- chore: refactoring logx by @kevwan in https://github.com/zeromicro/go-zero/pull/2181
- chore: refactoring by @kevwan in https://github.com/zeromicro/go-zero/pull/2182
- fix: fix switch doesn't work bug by @wubenqi in https://github.com/zeromicro/go-zero/pull/2183
- fix:duplicate route check by @fisnone in https://github.com/zeromicro/go-zero/pull/2154
- chore: let logx.SetWriter can be called anytime by @kevwan in https://github.com/zeromicro/go-zero/pull/2186
- fix: remove invalid log fields in notLoggingContentMethods by @wubenqi in https://github.com/zeromicro/go-zero/pull/2187
- support mulitple protoset files by @showurl in https://github.com/zeromicro/go-zero/pull/2190
- fix(httpc): fix typo errors by @chenquan in https://github.com/zeromicro/go-zero/pull/2189
- fix: logx test foo by @seth-shi in https://github.com/zeromicro/go-zero/pull/2144
- fix: only setup logx once by @kevwan in https://github.com/zeromicro/go-zero/pull/2188
- chore(deps): bump google.golang.org/protobuf from 1.28.0 to 1.28.1 by @dependabot in https://github.com/zeromicro/go-zero/pull/2205
- feat(redislock): support set context by @zcong1993 in https://github.com/zeromicro/go-zero/pull/2208
- chore: refactor redislock by @kevwan in https://github.com/zeromicro/go-zero/pull/2210
- fix: handling rpc error on gateway by @kevwan in https://github.com/zeromicro/go-zero/pull/2212
- chore(deps): bump go.opentelemetry.io/otel/exporters/jaeger from 1.8.0 to 1.9.0 by @dependabot in https://github.com/zeromicro/go-zero/pull/2223
- chore(deps): bump go.opentelemetry.io/otel/exporters/zipkin from 1.8.0 to 1.9.0 by @dependabot in https://github.com/zeromicro/go-zero/pull/2222
- fix: fix comment typo by @safeoy in https://github.com/zeromicro/go-zero/pull/2220
- fix(logx): need to wait for the first caller to complete the execution. by @chenquan in https://github.com/zeromicro/go-zero/pull/2213
- chore(deps): bump go.mongodb.org/mongo-driver from 1.10.0 to 1.10.1 by @dependabot in https://github.com/zeromicro/go-zero/pull/2225
- chore: renaming configs by @kevwan in https://github.com/zeromicro/go-zero/pull/2234
- fix: #2216 by @kevwan in https://github.com/zeromicro/go-zero/pull/2235
- docs: update docs for gateway by @kevwan in https://github.com/zeromicro/go-zero/pull/2236
- feat: more meaningful error messages, close body on httpc requests by @kevwan in https://github.com/zeromicro/go-zero/pull/2238
New Contributors
- @LeeDF made their first contribution in https://github.com/zeromicro/go-zero/pull/2046
- @qwernser made their first contribution in https://github.com/zeromicro/go-zero/pull/2004
- @SgtDaJim made their first contribution in https://github.com/zeromicro/go-zero/pull/2167
- @fisnone made their first contribution in https://github.com/zeromicro/go-zero/pull/2154
- @seth-shi made their first contribution in https://github.com/zeromicro/go-zero/pull/2144
- @zcong1993 made their first contribution in https://github.com/zeromicro/go-zero/pull/2208
- @safeoy made their first contribution in https://github.com/zeromicro/go-zero/pull/2220
Full Changelog: https://github.com/zeromicro/go-zero/compare/v1.3.5...v1.4.0