Releases: zeromicro/go-zero
Releases · zeromicro/go-zero
v1.5.2
What's Changed
- fixed timeout problem in gateway config
- set 0 as default value for keepalive in gRPC clients, this is the default behavior for gRPC
- make max bytes limit take effect on cryptionhandler on HTTP handlers
- add Max/Min for stream in fx package
- make error messages more accurate
- minor bug fixes and improvements
New Contributors
- @fzdwx made their first contribution in #3114
- @RivenChan made their first contribution in #3129
- @liamhao made their first contribution in #3142
Full Changelog: v1.5.1...v1.5.2
goctl/v1.5.2
What's Changed
- fix(goctl): missing rpc --style flag by @anqiansong in #3112
- fix(goctl): test field by @fzdwx in #3114
New Contributors
- @fzdwx made their first contribution in #3114
- @RivenChan made their first contribution in #3129
- @liamhao made their first contribution in #3142
Full Changelog: v1.5.1...tools/goctl/v1.5.2
v1.5.1
What's Changed
- fix: gateway conf doesn't work by @kevwan in #2968
- chore: clear errors on conf conflict keys by @kevwan in #2972
- fix: config map with json tag by @kevwan in #2974
- chore: remove optional in redis config by @kevwan in #2979
- feat(redis):add LpopCount,RpopCount by @zzzfwww in #2990
- Export cache.Option param to NewXXXModel() by @taobig in #2995
- fix redis cluster bug by @congim in #2986
- init postgresql err by @iyyzh in #3003
- feat: unique redis addrs and trim spaces by @kevwan in #3004
- fix: avoid unmarshal panic with incorrect map keys #3002 by @kevwan in #3013
- Added zrpc server custom serverID for custom registration Key when the service is registered on ETCD. by @ShyunnY in #3008
- fix QueryRowsPartial getTaggedFieldValueMap func by @fulldog in #2884
- defines the method to customize http server by @sniperwzq in #2171
- fix(executors): periodicalexecutor should handle crash correctly by @zcong1993 in #3043
- feat: rest validation on http requests by @kevwan in #3041
- fix: #3058 by @kevwan in #3059
- chore: refactor zrpc setup by @kevwan in #3064
- refactor(redis): add NonBlock config, disable redis ping by default by @zcong1993 in #3073
- fixbug: superfluous response.WriteHeader by @heyehang in #3083
- refactor(redistest): simplify redistest.CreateRedis API by @zcong1993 in #3086
- feat(redis): add ScriptRun API and migrate EvalCtx to ScriptRun for limit, lock and bloom by @zcong1993 in #3087
- fix: should not conflict on lower members by @kevwan in #3095
- fix: fillDefault, handling of nested structs by @MarkJoyMa in #3072
- refactor(zrpc): prefer static config for zrpc server statinterceptor by @zcong1993 in #3105
- refactor: simplify zrpc stat config by @kevwan in #3107
- feat(trace): add trace test helpers by @zcong1993 in #3108
New Contributors
- @congim made their first contribution in #2986
- @iyyzh made their first contribution in #3003
- @ShyunnY made their first contribution in #3008
- @fulldog made their first contribution in #2884
- @sniperwzq made their first contribution in #2171
- @testwill made their first contribution in #3075
- @lchjczw made their first contribution in #3082
Full Changelog: v1.5.0...v1.5.1
goctl/v1.5.1
What's Changed
- Update goclt dart gen: Add scheme config and content-type header by @SnakeHacker in #2987
- Fix bug: replace int and float with num type in dart by @SnakeHacker in #3042
- feat(goctl): Add api parser by @anqiansong in #2585
- feat(goctl): Support gateway sample generation by @anqiansong in #3049
- fix: multipule flag client go package name by @LeeDF in #3104
- Fix the problem of package name for generated kt code. by @lchjczw in #3082
New Contributors
- @congim made their first contribution in #2986
- @iyyzh made their first contribution in #3003
- @ShyunnY made their first contribution in #3008
- @fulldog made their first contribution in #2884
- @sniperwzq made their first contribution in #2171
- @testwill made their first contribution in #3075
- @lchjczw made their first contribution in #3082
Full Changelog: tools/goctl/v1.5.0...tools/goctl/v1.5.1
v1.5.0
What's Changed
- feat: upgrade go to v1.18 by @kevwan in #2817
- chore: change interface{} to any by @kevwan in #2818
- fix: problem on name overlaping in config by @kevwan in #2820
- chore: fix missing funcs on windows by @kevwan in #2825
- support custom maxBytes in API file by @jiang4869 in #2822
- feat: mapreduce generic version by @kevwan in #2827
- feat: add MustNewRedis by @MarkJoyMa in #2824
- feat: converge grpc interceptor processing by @MarkJoyMa in #2830
- Chore/rewire by @kevwan in #2836
- fix: conf anonymous overlay problem by @kevwan in #2847
- fix #2835, replace shoud replace the longest match by @dahaihu in #2844
- chore: remove clickhouse, added to zero-contrib by @kevwan in #2848
- feat(sqlx): error log print traceId and spanId by @chenquan in #2845
- only unmashal public variables by @Mikaelemmmm in #2872
- fix Replacer suffix match, and add test case by @dahaihu in #2867
- chore: refactor node & replace in stringx. by @kevwan in #2875
- refactor: simplify stringx.Replacer, and avoid potential infinite loops by @kevwan in #2877
- refactor: simplify sqlx fail fast ping and simplify miniredis setup in test by @zcong1993 in #2897
- add jaeger with UDP by @wuyazi in #2889
- Pgx by @liyiwu in #2902
- fix: fixed the bug that old trace instances may be fetched by @chenquan in #2913
- fix: timeout not working if greater than global rest timeout by @kevwan in #2926
- feat: add configurable validator for httpx.Parse by @WqyJh in #2923
- chore: refine rest validator by @kevwan in #2928
- fix: config map cannot handle case-insensitive keys. by @kevwan in #2932
- feat: detect conf overwritten fields by @kevwan in #2947
- feat: add debug log for logc by @WqyJh in #2946
- fix: security #9 by @kevwan in #2949
- chore: remove redundant prefix of "error: " in error creation by @WqyJh in #2952
- feat: support grpc client keepalive config by @kevwan in #2950
- fix functiom name by @cuishuang in #2961
- feat: conf add FillDefault func by @MarkJoyMa in #2951
- interface conversion: *handler.timeoutWriter is not http.Hijacker: missing method Hijack by @yangjinheng in #2931
- fix: for cache, notfound placeholder should not overwrite real data. by @kevwan in #2960
New Contributors
- @dahaihu made their first contribution in #2844
- @fondoger made their first contribution in #2887
- @gq-tang made their first contribution in #2840
- @wuyazi made their first contribution in #2889
- @liyiwu made their first contribution in #2902
- @mamil made their first contribution in #2916
- @WqyJh made their first contribution in #2923
- @reatang made their first contribution in #2959
- @SnakeHacker made their first contribution in #2962
- @yangjinheng made their first contribution in #2931
Full Changelog: v1.4.4...v1.5.0
v1.4.5
** Important! **
This is a release for Go 1.16.
v1.5.0 is based on Go 1.18.
What's Changed
- fix: problem on name overlaping in config by @kevwan in #2820
- chore: fix missing funcs on windows by @kevwan in #2825
- support custom maxBytes in API file by @jiang4869 in #2822
- feat: add MustNewRedis by @MarkJoyMa in #2824
- feat: converge grpc interceptor processing by @MarkJoyMa in #2830
- Chore/rewire by @kevwan in #2836
- fix: conf anonymous overlay problem by @kevwan in #2847
- fix #2835, replace shoud replace the longest match by @dahaihu in #2844
- chore: remove clickhouse, added to zero-contrib by @kevwan in #2848
- feat(sqlx): error log print traceId and spanId by @chenquan in #2845
- only unmashal public variables by @Mikaelemmmm in #2872
- fix Replacer suffix match, and add test case by @dahaihu in #2867
- chore: refactor node & replace in stringx. by @kevwan in #2875
- refactor: simplify stringx.Replacer, and avoid potential infinite loops by @kevwan in #2877
- Fix Dart API generation bugs; Add ability to generate API for path parameters by @fondoger in #2887
- Fix bug in dart api gen: path parameter is not replaced by @fondoger in #2891
- refactor: simplify sqlx fail fast ping and simplify miniredis setup in test by @zcong1993 in #2897
- feat: Add request.ts by @anqiansong in #2901
- fix(goctl): unsupported database type: bpchar by @gq-tang in #2840
- add jaeger with UDP by @wuyazi in #2889
- fix: fixed the bug that old trace instances may be fetched by @chenquan in #2913
- fix: timeout not working if greater than global rest timeout by @kevwan in #2926
- feat: add configurable validator for httpx.Parse by @WqyJh in #2923
- chore: refine rest validator by @kevwan in #2928
- fix: #2899, using autoscaling/v2beta2 instead of v2beta1 by @kevwan in #2900
- fix: config map cannot handle case-insensitive keys. by @kevwan in #2932
- feat: detect conf overwritten fields by @kevwan in #2947
- feat: add debug log for logc by @WqyJh in #2946
- fix: security #9 by @kevwan in #2949
- chore: remove redundant prefix of "error: " in error creation by @WqyJh in #2952
- Fix #2879 by @anqiansong in #2958
- feat: support grpc client keepalive config by @kevwan in #2950
- Fix bug in dartgen: Increase the processing logic when route.RequestT… by @SnakeHacker in #2962
- Fix bug in dartgen: The property 'isEmpty' can't be unconditionally a… by @SnakeHacker in #2964
- feat: conf add FillDefault func by @MarkJoyMa in #2951
- interface conversion: *handler.timeoutWriter is not http.Hijacker: missing method Hijack by @yangjinheng in #2931
- fix: for cache, notfound placeholder should not overwrite real data. by @kevwan in #2960
New Contributors
- @dahaihu made their first contribution in #2844
- @fondoger made their first contribution in #2887
- @gq-tang made their first contribution in #2840
- @wuyazi made their first contribution in #2889
- @liyiwu made their first contribution in #2902
- @mamil made their first contribution in #2916
- @WqyJh made their first contribution in #2923
- @reatang made their first contribution in #2959
- @SnakeHacker made their first contribution in #2962
- @yangjinheng made their first contribution in #2931
Full Changelog: v1.4.4...v1.4.5
goctl/v1.5.0
What's Changed
- feat: upgrade go to v1.18 by @kevwan in #2817
- chore: update goctl interface{} to any by @kevwan in #2819
- Fix Dart API generation bugs; Add ability to generate API for path parameters by @fondoger in #2887
- Fix bug in dart api gen: path parameter is not replaced by @fondoger in #2891
- feat: Add request.ts by @anqiansong in #2901
- fix(goctl): unsupported database type: bpchar by @gq-tang in #2840
- fix: #2899, using autoscaling/v2beta2 instead of v2beta1 by @kevwan in #2900
- fix: security #9 by @kevwan in #2949
- Fix #2879 by @anqiansong in #2958
- optimized goctl code by @reatang in #2959
- Fix bug in dartgen: Increase the processing logic when route.RequestT… by @SnakeHacker in #2962
- Fix bug in dartgen: The property 'isEmpty' can't be unconditionally a… by @SnakeHacker in #2964
New Contributors
- @dahaihu made their first contribution in #2844
- @fondoger made their first contribution in #2887
- @gq-tang made their first contribution in #2840
- @wuyazi made their first contribution in #2889
- @liyiwu made their first contribution in #2902
- @mamil made their first contribution in #2916
- @WqyJh made their first contribution in #2923
- @reatang made their first contribution in #2959
- @SnakeHacker made their first contribution in #2962
- @yangjinheng made their first contribution in #2931
Full Changelog: v1.4.4...tools/goctl/v1.5.0
goctl/v1.4.5
Full Changelog: tools/goctl/v1.4.4...tools/goctl/v1.4.5
v1.4.4
What's Changed
- Feat update rootpkg by @chowyu12 in #2718
- chore: pass by value for config in dev server by @kevwan in #2712
- fix: camel cased key of map item in config by @kevwan in #2715
- RawFieldNames should ignore the field whose name is start with a dash by @anyoptional in #2725
- Use read-write lock instead of mutex by @anyoptional in #2727
- fix: etcd publisher reconnecting problem by @kevwan in #2710
- Feat: ignorecolums add sort by @chowyu12 in #2648
- fix: key like TLSConfig not working by @kevwan in #2730
- fix: #2735 by @kevwan in #2736
- add ServeHTTP to Server/Engine for doing Httptest by @RyanTokManMokMTM in #2704
- fix: #2700, timeout not enough for writing responses by @kevwan in #2738
- logx conf add DisableStat by @mycatone in #2434
- use stat instead of disableStat by @cch123 in #2740
- 🐛 debug grpc export (#2379) by @wojiukankan in #2719
- fix(trace): grpc exporter should use nonblock option by @zcong1993 in #2744
- feat(trace): support otlp http exporter by @zcong1993 in #2746
- feat: trace http.status_code by @xiang-xx in #2708
- feat(redis): add zscan command implementation (#2729) by @Suyghur in #2751
- feat: add mongo options by @MarkJoyMa in #2753
- refactor: use opentelemetry's standard api to track http status code by @chenquan in #2760
- feat: add batch inserter by @MarkJoyMa in #2755
- feat: add middlewares config for rest by @kevwan in #2765
- feat: add middlewares config for zrpc by @kevwan in #2766
- feat: replace NewBetchInserter function name by @MarkJoyMa in #2769
- feat: add config to truncate long log content by @kevwan in #2767
- fix: #2576 by @kevwan in #2776
- refactor(rest): use static config for trace ignore paths. by @zcong1993 in #2773
- chore(trace): improve rest tracinghandler by @zcong1993 in #2783
- feat: support ptr of ptr of ... in mapping by @kevwan in #2779
- feat: support **struct in mapping by @kevwan in #2784
- add zset withsocre float by @alonexy in #2689
- expose
collection.newTimingWheelWithTicker()
by @ofey404 in #2787 - chore: remove mgo related packages by @kevwan in #2799
- fix: mapping optional dep not canonicaled by @kevwan in #2807
New Contributors
- @RyanTokManMokMTM made their first contribution in #2704
- @mycatone made their first contribution in #2434
- @cch123 made their first contribution in #2740
- @wojiukankan made their first contribution in #2719
- @wanjunfeng made their first contribution in #2748
- @xiang-xx made their first contribution in #2708
- @alonexy made their first contribution in #2689
- @ofey404 made their first contribution in #2787
Full Changelog: v1.4.3...v1.4.4
goctl/v1.4.4
What's Changed
- fix(goctl):Remove useless file by @anqiansong in #2699
- refactor: remove duplicated code by @kevwan in #2705
- Feat update rootpkg by @chowyu12 in #2718
- chore: pass by value for config in dev server by @kevwan in #2712
- fix: camel cased key of map item in config by @kevwan in #2715
- RawFieldNames should ignore the field whose name is start with a dash by @anyoptional in #2725
- Use read-write lock instead of mutex by @anyoptional in #2727
- fix: etcd publisher reconnecting problem by @kevwan in #2710
- Feat: ignorecolums add sort by @chowyu12 in #2648
- fix: key like TLSConfig not working by @kevwan in #2730
- fix: #2735 by @kevwan in #2736
- add ServeHTTP to Server/Engin for doing Httptest by @RyanTokManMokMTM in #2704
- fix: #2700, timeout not enough for writing responses by @kevwan in #2738
- logx conf add DisableStat by @mycatone in #2434
- use stat instead of disableStat by @cch123 in #2740
- 🐛 debug grpc export (#2379) by @wojiukankan in #2719
- chore: update tests by @kevwan in #2741
- fix(trace): grpc exporter should use nonblock option by @zcong1993 in #2744
- chore: reorg imports by @kevwan in #2745
- feat(trace): support otlp http exporter by @zcong1993 in #2746
- Update readme.md by @wanjunfeng in #2748
- chore: remove roadmap file, not updating by @kevwan in #2749
- feat: trace http.status_code by @xiang-xx in #2708
- chore: improve codecov by @kevwan in #2752
- feat(redis): add zscan command implementation (#2729) by @Suyghur in #2751
- chore: remove unnecessary code by @chenquan in #2754
- feat: add mongo options by @MarkJoyMa in #2753
- refactor: use opentelemetry's standard api to track http status code by @chenquan in #2760
- feat: add batch inserter by @MarkJoyMa in #2755
- chore(deps): bump github.com/alicebob/miniredis/v2 from 2.23.1 to 2.30.0 by @dependabot in #2762
- refactor: simplify the code by @chenquan in #2763
- chore: refactor by @kevwan in #2764
- fix: replace goctl ExactValidArgs to MatchAll by @chensylz in #2759
- feat: add middlewares config for rest by @kevwan in #2765
- feat: add middlewares config for zrpc by @kevwan in #2766
- chore: remove simple methods, inlined by @kevwan in #2768
- feat: replace NewBetchInserter function name by @MarkJoyMa in #2769
- feat: add config to truncate long log content by @kevwan in #2767
- chore: add tests by @kevwan in #2774
- fix: #2576 by @kevwan in #2776
- chore: add tests by @kevwan in #2778
- refactor(rest): use static config for trace ignore paths. by @zcong1993 in #2773
- chore(deps): bump github.com/jhump/protoreflect from 1.14.0 to 1.14.1 by @dependabot in #2782
- chore(trace): improve rest tracinghandler by @zcong1993 in #2783
- feat: support ptr of ptr of ... in mapping by @kevwan in #2779
- feat: support **struct in mapping by @kevwan in #2784
- add zset withsocre float by @alonexy in #2689
- chore: refactor by @kevwan in #2785
- expose
collection.newTimingWheelWithClock()
by @ofey404 in #2787 - chore: add more tests by @kevwan in #2792
- chore: add more tests by @kevwan in #2794
- chore: add more tests by @kevwan in #2795
- fix(mongo): modify the generated update function and add return values for update and delete functions by @foliet in #2793
- chore: add more tests by @kevwan in #2797
- chore: remove mgo related packages by @kevwan in #2799
- chore: add more tests by @kevwan in #2800
- chore: add more tests by @kevwan in #2801
- chore: add more tests by @kevwan in #2803
- chore: refactor func name by @kevwan in #2804
- fix: mapping optional dep not canonicaled by @kevwan in #2807
- chore: update goctl version to 1.4.4 by @kevwan in #2811
New Contributors
- @RyanTokManMokMTM made their first contribution in #2704
- @mycatone made their first contribution in #2434
- @cch123 made their first contribution in #2740
- @wojiukankan made their first contribution in #2719
- @wanjunfeng made their first contribution in #2748
- @xiang-xx made their first contribution in #2708
- @alonexy made their first contribution in #2689
- @ofey404 made their first contribution in #2787
Full Changelog: tools/goctl/v1.4.3...tools/goctl/v1.4.4