Skip to content

Releases: zeromicro/go-zero

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

goctl/v1.3.5

01 May 03:39
3bbc90e
Compare
Choose a tag to compare

Features

  • Support nested importing in API files
  • Add go-grpc_opt, go_opt flag for cmd goctl rpc new on #1769 by @chowyu12
  • Support go work multi-module on #1800 by @fynxiu
  • Minor improvements

Fix

  • Fix nil pointer if group not exists on #1773 by @anqiansong
  • Fix model code generation crash bug on #17777 by @600ML
  • Fix typo in file api/new/api.tpl on #1788 by @fynxiu
  • Fix generated files without name from empty API file on #1811 by @anqiansong
  • Other bug fixes

v1.3.2

03 Apr 12:09
78ea076
Compare
Choose a tag to compare
  • support cgroups v2 for CPU statistics
  • add httpc package
    • enable OpenTelemetry and circuit breaker for HTTP client calls
    • make parsing HTTP responses easy with httpc.Parse(...)
  • support - in tags of model, allows ignoring the corresponding fields on SQL queries
  • support :N dynamic parameters in Oracle database
  • support getset redis command
  • SetBit in redis now returns the original value
  • disable re-entrance for RedisLock
  • minor improvements and bug fixes

goctl/v1.3.4

03 Apr 14:00
58a0b17
Compare
Choose a tag to compare

What's Changed

  • support to set timeout in api on #1713 by jiang4869
  • support api format with reader input on #1722 by fynxiu
  • support -base to specify image for goctl docker on #1668 by kevwan
  • add --verbose flag for goctl env and goctl rpc on #1686 by anqiansong
  • make directories if not exists while zrpc code generation on #1659 by anqiansong
  • optimize cache model code generation on #1672 by Mikaelemmmm
  • optimize model tag on #1663 by mervin0502
  • remove command goctl rpc proto on #1665 by anqiansong

New Contributors

Full Changelog: tools/goctl/v1.3.3...tools/goctl/v1.3.4

tools/goctl/v1.3.3

17 Mar 14:28
448029a
Compare
Choose a tag to compare

Features

Fixes

  • Use struct pointer on #1538 by @mlr3000
  • Fix integer overflow while build goctl on arch 386 on #1582 by @anqiansong
  • Support form tag in dart on #1596 by @fynxiu
  • Fix goctl rpc code genertion on #1624 by @anqiansong
  • Fix kotlin code generion error on #1632 by @soasurs
  • Fix context missing in sql model on #1642 by @xybingbing

v1.3.1

01 Mar 12:29
e311286
Compare
Choose a tag to compare

What's Changed

  • update go-redis to v8, support ctx in redis methods, OpenTelemetry enabled by @kevwan in #1507
  • support ctx in sqlx/sqlc, OpenTelemetry enabled by @kevwan in #1535
  • support ctx in Cache, OpenTelemetry enabled by @chenquan in #1518
  • log 404 requests with traceid by @kevwan in #1554
  • minor bug fixes and improvements

New Contributors

Full Changelog: v1.3.0...v1.3.1

Release goctl v1.3.2

14 Feb 15:36
6deb806
Compare
Choose a tag to compare
  1. support goctl completion to enable zsh/bash completion
    type goctl and press TAB key to show completion, like below:
    image
  2. bug fixes and minor improvements

Release tools/goctl/v1.3.0

10 Feb 10:40
a402541
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.3.0...tools/goctl/v1.3.0