Skip to content

Releases: zeromicro/go-zero

Release v1.2.3

16 Nov 00:19
67db40e
Compare
Choose a tag to compare

framework:

  1. support TLS in rest (web framework)
  2. support TLS in zrpc
  3. support TLS for redis connections
  4. support username/password authentication for etcd
  5. support CORS in rest (web framework)
  6. support prefix for group of routes, also supported through prefix in .api files
  7. support individual timeout setting for specific route(s)
  8. support NonBlock dependency checking mode, default to be blocking mode
  9. slow threshold for stat logs now can be set in redis, sqlx, mongo, rest, zrpc
  10. minor bug fixes and improvements

goctl:

  1. support prefix code generation in .api files
  2. support multiple version templates
  3. optimize the syntax of requests with empty body
  4. fix the issue of grpc client package generation
  5. goctl returns non-zero status code on failure
  6. bug fixes and minor improvements

Release v1.2.2

12 Oct 14:20
6a8638f
Compare
Choose a tag to compare

framework:

  1. Support OpenTelemetry, Trace ID is set in responses with HTTP header X-Trace-Id
  2. AtomicError now accept nil error
  3. Deprecated redis.NewRedis, use redis.New instead

goctl:

  1. Supported protoc plugin protoc-gen-goctl
  2. Fixed issue #1058

Release v1.2.1

14 Sep 00:45
2bd95aa
Compare
Choose a tag to compare

framework:

  1. downgrade k8s.io/client-go to use go 1.15
  2. fix proc.Done issue on windows

goctl:

  1. fix #1028, remove goctl config subcommand
  2. fix goctl issue on windows for ReadLink not defined

Release v1.2.0

13 Sep 04:02
71c0288
Compare
Choose a tag to compare

framework:

  1. suported Kubernetes based service discovery, use k8s://namespace/service:port as the RPC Target value. More service discovery solutions can be supported by plugins.
  2. logging arbitary value with json format, use logx.Infov/Errorv/Slowv.
  3. disable stat logs by calling logx.DisableStat().
  4. bug fixes and improvements.

goctl:

  1. optimize code generation for mongodb without cache
  2. optimize environment check before grpc code generation
  3. optimize naming specification in model
  4. print errors along with the goctl version and details
  5. #915 resolve inline message code generation in grpc
  6. #925, #929 optimize data type conversion for mysql in case NULL column
  7. #968 read the destination path from symbol link

Release v1.1.10

04 Aug 11:41
f7f3730
Compare
Choose a tag to compare

Framework:

  1. make circuit breaker works on RPC calls time out

goctl:

  1. code generation bug fixes

Release v1.1.9

03 Aug 08:11
c8428a7
Compare
Choose a tag to compare

Framework:

  1. httpx.Parse(...) now parses http header as well
  2. exits on port already in use
  3. minor bug fixes and improvements

goctl:

  1. add flag --go_opt for goctl proto to be compatible with github.com/golang/protobuf/protoc-gen-go@v1.4.0
  2. replace sql-parser with ddl-parser
  3. support gRPC stream code generation
  4. support postgresql model generation
  5. support mysql data type blob
  6. add flag --home to specify the directory to save the goctl templates

Release v1.1.8

28 Jun 09:21
9ccb997
Compare
Choose a tag to compare

framework:

  1. upgrade gRPC to v1.38.0
  2. upgrade etcd to v3.5.0
  3. add more functions in fx package
  4. support unmarshaling multi-dim slices in mapping package
  5. more clear errors on wrong routes for rest routes
  6. detail sql statements in sql logs
  7. minor bug fixes and improvements

goctl:

  1. replace cache key with colon
  2. parse comments and documents in .api files to api.Spec
  3. replace new line with empty string for column comment
  4. minor bug fixes and improvements

Release v1.1.7

08 May 13:56
8478474
Compare
Choose a tag to compare

framework:

  1. support tls in redis
  2. disable prometheus if not configured in config files
  3. remove contextx.ShrinkDeadline, use context.WithTimeout instead

goctl:

  1. fix antlr conflicts on installing goctl

Release v1.1.6

27 Mar 12:29
8885516
Compare
Choose a tag to compare
  1. support websocket, check example at https://github.com/zeromicro/zero-examples/tree/main/chat
  2. support customizing time format in logx
  3. support postgresql
  4. support goctl mongodb model generation
  5. minor improvements

Release v1.1.5

02 Mar 14:08
f01472c
Compare
Choose a tag to compare
  • Framework:

    • support disabling stat logs via stat.DisableLog()
    • change zrpc default timeout to 2s, set 0 to disable timeout
    • minor improvements
  • goctl:

    • support unique indexes on multiple columns in sql+cache code generation
    • minor improvements