Skip to content

Releases: zeromicro/go-zero

goctl/v1.4.1

17 Sep 15:08
Compare
Choose a tag to compare

Fix:

  • fix issue # 2359: nested type generation error on #2368 by @anqiansong
  • fix unsignedTypeMap type error on #2246 by @fyyang

Features:

  • Hide java command

v1.4.0

07 Aug 08:23
731b3eb
Compare
Choose a tag to compare

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

New Contributors

Full Changelog: v1.3.5...v1.4.0

goctl/v1.4.0

07 Aug 08:50
da5770e
Compare
Choose a tag to compare

Features

  1. Support for multiple rpc service generation and rpc grouping by @anqiansong on #1972
  2. goctl model mongo add easy flag for easy declare by @czyt on #2073

Fixes

  1. Fix url routing bug by @anqiansong on #2131
  2. Fix duplicate import rest/httpx by @smithyj on #2152
  3. Fix duplicate route check by @fisnone on #2154

What's Changed

New Contributors

Full Changelog: tools/goctl/v1.3.9...tools/goctl/v1.4.0

v1.3.5

09 Jul 10:03
97a1714
Compare
Choose a tag to compare

Features and Updates:

  1. add svr.PrintRoutes() to print registered routes in rest servers
  2. convert grpc errors to http status codes automatically
  3. support to disable builtin middlewares and use self-defined ones in rest
  4. add trace-id, span-id in httpc
  5. add TakeCtx in PeriodLimit
  6. minor improvements and bug fixes

What's Changed

New Contributors

Full Changelog: v1.3.4...v1.3.5

goctl/v1.3.9

09 Jul 10:04
97a1714
Compare
Choose a tag to compare

feature

  1. Add 'imagePullPolicy' parameter for 'goctl kube deploy' by @swliao425
  2. Replace mongo package with mon & monc
  3. Add command desc & color commands
  4. Support build Dockerfile from current dir
  5. Support generate mongo model with auto generated collection names

fix

  1. Fix pg subcommand level error by @anqiansong
  2. Fix generate bad Dockerfile on given dir by @kevwan
  3. Fix goctl api clone template fail by @MarkJoyMa
  4. Fix issue #1977 by @anqiansong
  5. Fix quickstart wrong package when go.mod exists in parent dir by @kevwan

goctl/v1.3.8

06 Jun 12:44
2c6b422
Compare
Choose a tag to compare

Bug fixes.

goctl/v1.3.7

05 Jun 11:04
1d95e95
Compare
Choose a tag to compare

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

03 Jun 11:38
bb33a20
Compare
Choose a tag to compare

Features and Updates:

  • support using third-party logging libs with logx
  • support LogField with methods Infow, Errorw and Sloww in logx,
    like logx.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

Full Changelog: v1.3.3...v1.3.4

goctl/v1.3.6

03 Jun 12:11
46078e7
Compare
Choose a tag to compare

goctl

  • add goctl quickstart command
  • refactor cli to cobra
  • improve cache management in model update template
  • bug fixes and improvements

v1.3.3

01 May 03:38
3bbc90e
Compare
Choose a tag to compare
  1. add mon and monc packages to use official driver for mongodb
  2. add httpc.Do and httpc.Service.Do to make requests from defined structs
  3. ignore timeout settings on websocket connections
  4. support sub-domains for CORS
  5. tracing span added in redis, sql and mongodb calls
  6. upgrade gRPC to 1.46, removed the deprecated usage of grpc.WithBalancerName
  7. bug fixes and minor improvements