Releases: zeromicro/go-zero
Releases · zeromicro/go-zero
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
v1.4.3
What's Changed
- chore(action): enable cache dependency by @chenquan in #2549
- fix: potential slice append issue by @kevwan in #2560
- Modify comment syntax error by @wanghaha-dev in #2572
- feat: conf inherit by @kevwan in #2568
- fix: inherit issue when parent after inherits by @kevwan in #2586
- feat: support env tag in config by @kevwan in #2577
- feat: support bool for env tag by @kevwan in #2593
- feat: validate value in options for mapping by @kevwan in #2616
- fix(rest): fix issues#2628 by @chenquan in #2629
- fix: log currentSize should not be 0 when file exists and size is not 0 by @edieruby in #2639
- The default port is used when there is no port number for k8s by @bigrocs in #2598
- replace strings.Title to cases.Title by @EinfachePhy in #2650
- feat: add trace.SpanIDFromContext and trace.TraceIDFromContext by @kevwan in #2654
- feature : responses with context by @heyehang in #2637
- fix: fix client side in #2109 (#2116) by @wubenqi in #2659
- feat: accept camelcase for config keys by @kevwan in #2651
- feat: add dev server and health by @re-dylan in #2665
- fix: #2672 by @kevwan in #2681
- fix: Fix string.title by @fyyang in #2687
- fix: #2684 by @kevwan in #2693
New Contributors
- @wanghaha-dev made their first contribution in #2572
- @jsonMark made their first contribution in #2573
- @edieruby made their first contribution in #2639
- @bigrocs made their first contribution in #2598
- @EinfachePhy made their first contribution in #2650
- @heyehang made their first contribution in #2637
- @tim1116 made their first contribution in #2686
Full Changelog: v1.4.2...v1.4.3
goctl/v1.4.3
What's Changed
- fix(goctl): fix redundant import by @anqiansong in #2551
- chore: update "DO NOT EDIT" format by @foliet in #2559
- fix(goctl): Fix #2561 by @anqiansong in #2562
- fix(change model template file type): All model template variables ar… by @jsonMark in #2573
- fix: fix conflict with the import package name by @chensylz in #2610
- replace strings.Title to cases.Title by @EinfachePhy in #2650
- Fixes #2603 bump goctl cobra version to macos completion help bug by @bensonfx in #2656
- optimize(goctl): Add more test by @anqiansong in #2692
New Contributors
- @wanghaha-dev made their first contribution in #2572
- @jsonMark made their first contribution in #2573
- @edieruby made their first contribution in #2639
- @bigrocs made their first contribution in #2598
- @EinfachePhy made their first contribution in #2650
- @heyehang made their first contribution in #2637
- @tim1116 made their first contribution in #2686
Full Changelog: tools/goctl/v1.4.2...tools/goctl/v1.4.3
v1.4.2
New Features
- add logc package, use it like
logc.Info(ctx, msg)
- support debug level in logx
- support caller skip in logx
- add color for debug logs
- add
AddGlobalFields
for logc and logx - add
logger.WithFields
method in logx - support unmarshaling string into map in
httpx.Parse
- support customizing timeout for redis blpop
- support unmarshaling types that implements
encoding.TextUnmarshaler
, likeuuid.UUID
- support disabling trace for specified span names
What's Changed
- feat: support caller skip in logx by @kevwan in #2401
- chore: add more tests by @kevwan in #2409
- feat(goctl):Add ignore-columns flag by @anqiansong in #2407
- chore: add more tests by @kevwan in #2410
- fix goctl help message by @MarkJoyMa in #2414
- feat: add log debug level by @MarkJoyMa in #2411
- refactor: redis error for prometheus metric label by @zhoushuguang in #2412
- cleanup: deprecated field and func by @demoManito in #2416
- fix: fix log out-of-order output and cross-file output by @chenquan in #2424
- chore: replace fmt.Fprint by @kevwan in #2425
- feat: add color to debug by @chenquan in #2433
- chore: gofumpt by @kevwan in #2439
- refactor: adjust http request slow log format by @chenquan in #2440
- fix #2435 by @bensonfx in #2442
- Readme Tweak by @a0v0 in #2436
- fix(goctl): fix the unit test bug of goctl by @chenquan in #2458
- feat: add string to map in httpx parse method by @pipi-lv in #2459
- feat: add logc package, support AddGlobalFields for both logc and logx. by @kevwan in #2463
- chore: sort methods by @kevwan in #2470
- fix: add more tests by @pipi-lv in #2473
- feat(redis):add timeout method to extend blpop by @Suyghur in #2472
- chore: better shedding algorithm, make sure recover from shedding by @kevwan in #2476
- chore: refactor to reduce duplicated code by @kevwan in #2477
- fix #2343 by @re-dylan in #2349
- fix: etcd reconnecting problem by @kevwan in #2478
- fix(mongo): fix file name generation errors by @foliet in #2479
- chore(deps): bump go.mongodb.org/mongo-driver from 1.10.2 to 1.10.3 by @dependabot in #2484
- chore: remove init if possible by @kevwan in #2485
- chore(deps): bump google.golang.org/grpc from 1.49.0 to 1.50.0 by @dependabot in #2487
- fix a few function names on comments by @cuishuang in #2496
- fix: replace Infof() with Errorf() in DurationInterceptor (#2495) by @Suyghur in #2497
- feat(goctl): better generate the api code of typescript by @foliet in #2483
- token limit support context by @sado0823 in #2335
- chore: remove unnecessary code by @kevwan in #2499
- chore(deps): bump go.opentelemetry.io/otel/sdk from 1.10.0 to 1.11.0 by @dependabot in #2504
- chore: sqlx's histogram metric name is different from redis by @swliao425 in #2505
- chore: fix some naming problems by @foliet in #2500
- chore(deps): bump go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc from 1.10.0 to 1.11.0 by @dependabot in #2510
- chore(deps): bump go.opentelemetry.io/otel/exporters/zipkin from 1.10.0 to 1.11.0 by @dependabot in #2511
- fix(goctl): Fix mongo insert tpl by @anqiansong in #2512
- chore(deps): bump go.opentelemetry.io/otel/exporters/jaeger from 1.10.0 to 1.11.0 by @dependabot in #2514
- chore: add golangci-lint config file by @kevwan in #2519
- chore: fix lint errors by @kevwan in #2520
- Fix the wrong key about FindOne in mongo of goctl. by @wuleiming2009 in #2523
- chore(deps): bump google.golang.org/grpc from 1.50.0 to 1.50.1 by @dependabot in #2527
- Fix typo by @gokure in #2531
- chore: add more tests by @kevwan in #2536
- feat: support uuid.UUID in mapping by @kevwan in #2537
- chore(action): upgrade actions/stale & actions/setup-go & codecov/codecov-action by @chenquan in #2521
- fix(goctl): Fix issues by @anqiansong in #2543
- fix: redis's pipeline logs are not printed completely by @swliao425 in #2538
- feat: remove info log when disable log by @chowyu12 in #2525
- chore: adjust rpc comment format by @chenquan in #2501
- feat(trace): support for disabling tracing of specified
spanName
by @chenquan in #2363 - chore: refactor by @kevwan in #2545
- feat: add logger.WithFields by @kevwan in #2546
New Contributors
- @demoManito made their first contribution in #2416
- @bensonfx made their first contribution in #2442
- @a0v0 made their first contribution in #2436
- @pipi-lv made their first contribution in #2459
- @Suyghur made their first contribution in #2472
- @re-dylan made their first contribution in #2349
- @foliet made their first contribution in #2479
- @cuishuang made their first contribution in #2496
- @wuleiming2009 made their first contribution in #2523
- @gokure made their first contribution in #2531
Full Changelog: v1.4.1...v1.4.2
goctl/v1.4.2
What's Changed
- feat(goctl):Add ignore-columns flag by @anqiansong in #2407
- fix goctl help message by @MarkJoyMa in #2414
- fix(goctl): fix the unit test bug of goctl by @chenquan in #2458
- feat(goctl): better generate the api code of typescript by @foliet in #2483
- fix(goctl): Fix mongo insert tpl by @anqiansong in #2512
- fix(goctl): Fix issues by @anqiansong in #2543
New Contributors
- @demoManito made their first contribution in #2416
- @bensonfx made their first contribution in #2442
- @a0v0 made their first contribution in #2436
- @pipi-lv made their first contribution in #2459
- @Suyghur made their first contribution in #2472
- @re-dylan made their first contribution in #2349
- @foliet made their first contribution in #2479
- @cuishuang made their first contribution in #2496
- @wuleiming2009 made their first contribution in #2523
- @gokure made their first contribution in #2531
Full Changelog: tools/goctl/v1.4.1...tools/goctl/v1.4.2
v1.4.1
Framework
- Support disabling sql logs and sql slow logs respectively
- Make gRPC builtin health check optional, configure it in config files
- Add ZaddFloat & ZaddFloatCtx for redis
- Collect CPU usages if necessary
- Add Range method in safemap
- Support baggage propagation in httpc
- Add opentelemetry grpc exporter
- Support mysql and redis metrics
- Fix the CORS problem when JWT expires
- More accurate panic message on mapreduce
- Handle the scenarios that content-length is invalid
- Minor improvements and bug fixes
What's Changed
- chore: release action for goctl by @kevwan in #2239
- chore(deps): bump github.com/fullstorydev/grpcurl from 1.8.6 to 1.8.7 by @dependabot in #2245
- chore(deps): bump github.com/prometheus/client_golang from 1.12.2 to 1.13.0 by @dependabot in #2244
- fix: time repr wrapper by @kevwan in #2255
- fix: test failure, due to go 1.19 compatibility by @kevwan in #2256
- fix: unsignedTypeMap type error by @fyyang in #2246
- test: add more tests by @kevwan in #2261
- chore(deps): bump github.com/alicebob/miniredis/v2 from 2.22.0 to 2.23.0 by @dependabot in #2260
- chore: refactor logx by @kevwan in #2262
- fix #2240 by @kevwan in #2263
- chore(deps): bump github.com/pelletier/go-toml/v2 from 2.0.2 to 2.0.3 by @dependabot in #2267
- fix #2240 by @kevwan in #2271
- chore: Update readme by @anqiansong in #2280
- feat: rpc add health check function configuration optional by @MarkJoyMa in #2288
- doc(readme): add star history by @chenquan in #2275
- fix(logx): display garbled characters in windows(DOS, Powershell) by @chenquan in #2232
- fix: place cors middleware in the front of other middlewares. by @kevwan in #2283
- feat(redis): add ZaddFloat & ZaddFloatCtx by @chenquan in #2291
- chore(deps): bump google.golang.org/grpc from 1.48.0 to 1.49.0 by @dependabot in #2297
- Initialize CPU stat only if used by @joshq00 in #2020
- chore: refactor stat by @kevwan in #2299
- fix resource manager dead lock by @sado0823 in #2302
- chore(deps): bump github.com/pelletier/go-toml/v2 from 2.0.3 to 2.0.5 by @dependabot in #2305
- chore: refactor gateway by @kevwan in #2303
- fix:duplicate copy MD by @wsx864321 in #2304
- Fix: delete duplicate copy of metadata in server interceptor. by @wsx864321 in #2309
- fix: logx disable not working in some cases by @kevwan in #2306
- fix #2301,package conflict generated by ddl by @yiGmMk in #2307
- fix: more accurate panic message on mapreduce by @kevwan in #2311
- chore: remove unused packages by @kevwan in #2312
- fix: handle the scenarios that content-length is invalid by @kevwan in #2313
- safemap add Range method by @lppgo in #2314
- refactor: sequential range over safemap by @kevwan in #2316
- improve: number range compare left and righ value by @lowang-bh in #2315
- fix: range validation on mapping by @kevwan in #2317
- feat: Add strict flag by @anqiansong in #2248
- generates nested types in doc by @zlx362211854 in #2201
- make logx#getWriter concurrency-safe by @anyoptional in #2233
- fix: thread-safe in getWriter of logx by @kevwan in #2319
- fix:etcd get&watch not atomic by @wsx864321 in #2321
- feat: Hidden java by @anqiansong in #2333
- correct test case by @anyoptional in #2340
- fix:trace graceful stop,pre loss trace by @wsx864321 in #2358
- chore: refactor by @kevwan in #2365
- chore(deps): bump go.mongodb.org/mongo-driver from 1.10.1 to 1.10.2 by @dependabot in #2370
- chore(deps): bump go.uber.org/goleak from 1.1.12 to 1.2.0 by @dependabot in #2371
- feat: support baggage propagation in httpc by @kevwan in #2375
- chore(deps): bump github.com/lib/pq from 1.10.6 to 1.10.7 by @dependabot in #2373
- fix: issue #2359 by @anqiansong in #2368
- fix #2364 by @kevwan in #2377
- feat: support targetPort option in goctl kube by @kevwan in #2378
- chore(deps): bump go.opentelemetry.io/otel/sdk from 1.9.0 to 1.10.0 by @dependabot in #2383
- feat: add grpc trace exporter by @genewoo in #2379
- chore(deps): bump go.opentelemetry.io/otel/exporters/zipkin from 1.9.0 to 1.10.0 by @dependabot in #2385
- chore: refactor by @kevwan in #2388
- chore(deps): bump go.opentelemetry.io/otel/exporters/jaeger from 1.9.0 to 1.10.0 by @dependabot in #2389
- chore(deps): bump github.com/jhump/protoreflect from 1.12.0 to 1.13.0 by @dependabot in #2393
- chore(deps): bump go.etcd.io/etcd/api/v3 from 3.5.4 to 3.5.5 by @dependabot in #2394
- chore(deps): bump go.etcd.io/etcd/client/v3 from 3.5.4 to 3.5.5 by @dependabot in #2395
- chore(deps): bump go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc from 1.9.0 to 1.10.0 by @dependabot in #2402
- feat: mysql and redis metric support by @zhoushuguang in #2355
- chore: refactor the imports by @kevwan in #2406
New Contributors
- @fyyang made their first contribution in #2246
- @joshq00 made their first contribution in #2020
- @sado0823 made their first contribution in #2302
- @wsx864321 made their first contribution in #2304
- @yiGmMk made their first contribution in #2307
- @lppgo made their first contribution in #2314
- @lowang-bh made their first contribution in #2315
- @zlx362211854 made their first contribution in #2201
- @anyoptional made their first contribution in #2233
- @genewoo made their first contribution in #2379
Full Changelog: v1.4.0...v1.4.1
goctl/v1.4.1
v1.4.0
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 #2046
- chore: coding style by @kevwan in #2120
- feat: add Wrap and Wrapf in errorx by @kevwan in #2126
- fix: generated sql query fields do not match template by @qwernser in #2004
- feat: support logx.WithFields by @kevwan in #2128
- feat:Add
Routes
method for server by @czyt in #2125 - chore: add more tests by @kevwan in #2129
- chore: refactor by @kevwan in #2130
- docs: update goctl readme by @kevwan in #2136
- chore: remove unimplemented gateway by @kevwan in #2139
- chore(deps): bump go.mongodb.org/mongo-driver from 1.9.1 to 1.10.0 by @dependabot in #2150
- chore(deps): bump google.golang.org/grpc from 1.47.0 to 1.48.0 by @dependabot in #2147
- feat: restful -> grpc gateway by @kevwan in #2155
- feat: export gateway.Server to let users add middlewares by @kevwan in #2157
- feat: support form values in gateway by @kevwan in #2158
- feat: verify RpcPath on startup by @kevwan in #2159
- feat: set content-type to application/json by @kevwan in #2160
- feat: support google.api.http in gateway by @kevwan in #2161
- feat: support customized header to metadata processor by @kevwan in #2162
- chore: refactoring mapping name by @kevwan in #2168
- fix: goctl genhandler duplicate rest/httpx & template import custom by @smithyj in #2152
- fix: Update api template by @anqiansong in #2172
- fix: fix #2102, #2108 by @anqiansong in #2131
- feat: Support for multiple rpc service generation and rpc grouping by @anqiansong in #1972
- feat: Update goctl version by @anqiansong in #2178
- feat: logx support logs rotation based on size limitation. (#1652) by @SgtDaJim in #2167
- chore: refactoring logx by @kevwan in #2181
- chore: refactoring by @kevwan in #2182
- fix: fix switch doesn't work bug by @wubenqi in #2183
- fix:duplicate route check by @fisnone in #2154
- chore: let logx.SetWriter can be called anytime by @kevwan in #2186
- fix: remove invalid log fields in notLoggingContentMethods by @wubenqi in #2187
- support mulitple protoset files by @showurl in #2190
- fix(httpc): fix typo errors by @chenquan in #2189
- fix: logx test foo by @seth-shi in #2144
- fix: only setup logx once by @kevwan in #2188
- chore(deps): bump google.golang.org/protobuf from 1.28.0 to 1.28.1 by @dependabot in #2205
- feat(redislock): support set context by @zcong1993 in #2208
- chore: refactor redislock by @kevwan in #2210
- fix: handling rpc error on gateway by @kevwan in #2212
- chore(deps): bump go.opentelemetry.io/otel/exporters/jaeger from 1.8.0 to 1.9.0 by @dependabot in #2223
- chore(deps): bump go.opentelemetry.io/otel/exporters/zipkin from 1.8.0 to 1.9.0 by @dependabot in #2222
- fix: fix comment typo by @safeoy in #2220
- fix(logx): need to wait for the first caller to complete the execution. by @chenquan in #2213
- chore(deps): bump go.mongodb.org/mongo-driver from 1.10.0 to 1.10.1 by @dependabot in #2225
- chore: renaming configs by @kevwan in #2234
- fix: #2216 by @kevwan in #2235
- docs: update docs for gateway by @kevwan in #2236
- feat: more meaningful error messages, close body on httpc requests by @kevwan in #2238
New Contributors
- @LeeDF made their first contribution in #2046
- @qwernser made their first contribution in #2004
- @SgtDaJim made their first contribution in #2167
- @fisnone made their first contribution in #2154
- @seth-shi made their first contribution in #2144
- @zcong1993 made their first contribution in #2208
- @safeoy made their first contribution in #2220
Full Changelog: v1.3.5...v1.4.0
goctl/v1.4.0
Features
- Support for multiple rpc service generation and rpc grouping by @anqiansong on #1972
- goctl model mongo add easy flag for easy declare by @czyt on #2073
Fixes
- Fix url routing bug by @anqiansong on #2131
- Fix duplicate import rest/httpx by @smithyj on #2152
- Fix duplicate route check by @fisnone on #2154
What's Changed
- fix goctl rpc protoc strings.EqualFold Service.Name GoPackage by @LeeDF in #2046
- chore: coding style by @kevwan in #2120
- feat: add Wrap and Wrapf in errorx by @kevwan in #2126
- fix: generated sql query fields do not match template by @qwernser in #2004
- feat: support logx.WithFields by @kevwan in #2128
- feat:Add
Routes
method for server by @czyt in #2125 - chore: add more tests by @kevwan in #2129
- chore: refactor by @kevwan in #2130
- docs: update goctl readme by @kevwan in #2136
- chore: remove unimplemented gateway by @kevwan in #2139
- chore(deps): bump go.mongodb.org/mongo-driver from 1.9.1 to 1.10.0 by @dependabot in #2150
- chore(deps): bump google.golang.org/grpc from 1.47.0 to 1.48.0 by @dependabot in #2147
- feat: restful -> grpc gateway by @kevwan in #2155
- feat: export gateway.Server to let users add middlewares by @kevwan in #2157
- feat: support form values in gateway by @kevwan in #2158
- feat: verify RpcPath on startup by @kevwan in #2159
- feat: set content-type to application/json by @kevwan in #2160
- feat: support google.api.http in gateway by @kevwan in #2161
- feat: support customized header to metadata processor by @kevwan in #2162
- chore: refactoring mapping name by @kevwan in #2168
- fix: goctl genhandler duplicate rest/httpx & template import custom by @smithyj in #2152
- fix: Update api template by @anqiansong in #2172
- fix: fix #2102, #2108 by @anqiansong in #2131
- feat: Support for multiple rpc service generation and rpc grouping by @anqiansong in #1972
- feat: Update goctl version by @anqiansong in #2178
- feat: logx support logs rotation based on size limitation. (#1652) by @SgtDaJim in #2167
- chore: refactoring logx by @kevwan in #2181
- chore: refactoring by @kevwan in #2182
- fix: fix switch doesn't work bug by @wubenqi in #2183
- fix:duplicate route check by @fisnone in #2154
- chore: let logx.SetWriter can be called anytime by @kevwan in #2186
- fix: remove invalid log fields in notLoggingContentMethods by @wubenqi in #2187
- support mulitple protoset files by @showurl in #2190
- fix(httpc): fix typo errors by @chenquan in #2189
- fix: logx test foo by @seth-shi in #2144
- fix: only setup logx once by @kevwan in #2188
- chore(deps): bump google.golang.org/protobuf from 1.28.0 to 1.28.1 by @dependabot in #2205
- feat(redislock): support set context by @zcong1993 in #2208
- chore: refactor redislock by @kevwan in #2210
- fix: handling rpc error on gateway by @kevwan in #2212
- chore(deps): bump go.opentelemetry.io/otel/exporters/jaeger from 1.8.0 to 1.9.0 by @dependabot in #2223
- chore(deps): bump go.opentelemetry.io/otel/exporters/zipkin from 1.8.0 to 1.9.0 by @dependabot in #2222
- fix: fix comment typo by @safeoy in #2220
- fix(logx): need to wait for the first caller to complete the execution. by @chenquan in #2213
- chore(deps): bump go.mongodb.org/mongo-driver from 1.10.0 to 1.10.1 by @dependabot in #2225
- chore: renaming configs by @kevwan in #2234
- fix: #2216 by @kevwan in #2235
- docs: update docs for gateway by @kevwan in #2236
- feat: more meaningful error messages, close body on httpc requests by @kevwan in #2238
New Contributors
- @LeeDF made their first contribution in #2046
- @qwernser made their first contribution in #2004
- @SgtDaJim made their first contribution in #2167
- @fisnone made their first contribution in #2154
- @seth-shi made their first contribution in #2144
- @zcong1993 made their first contribution in #2208
- @safeoy made their first contribution in #2220
Full Changelog: tools/goctl/v1.3.9...tools/goctl/v1.4.0
v1.3.5
Features and Updates:
- add
svr.PrintRoutes()
to print registered routes in rest servers - convert grpc errors to http status codes automatically
- support to disable builtin middlewares and use self-defined ones in rest
- add trace-id, span-id in httpc
- add
TakeCtx
in PeriodLimit - minor improvements and bug fixes
What's Changed
- chore: update dependencies by @kevwan in #1963
- feat: print routes by @kevwan in #1964
- chore: better mongo logs by @kevwan in #1965
- chore: make print pretty by @kevwan in #1967
- fix: The validation of tag "options" is not working with int/uint type by @taobig in #1969
- chore: make methods consistent in signatures by @kevwan in #1971
- chore: update dependencies by @kevwan in #1985
- periodlimit new function TakeWithContext by @showurl in #1983
- feat: convert grpc errors to http status codes by @kevwan in #1997
- fix: not showing the size of the received bytes in tracing of zrpc clients. by @AtlanCI in #2003
- feat: add trace in httpc by @chenquan in #2011
- add user middleware chain function by @magickeha in #1913
- chore: refactor to simplify disabling builtin middlewares by @kevwan in #2031
- feat: rest.WithChain to replace builtin middlewares by @kevwan in #2033
- fix:
\u003cnil\u003e
log output when http server shutdown. by @brickzzhang in #2055 - feat: CompareAndSwapInt32 may be better than AddInt32 by @wxc421 in #2077
- Remove legacy code by @taobig in #2084
- fix concurrent map read and map write by @wangzeping722 in #2079
- fix: type matching supports string to int by @cjf8134 in #2038
- Remove legacy code by @taobig in #2086
- feat: add method to jsonx by @vfmh in #2049
- refactor:remove duplicate codes by @shssen in #2101
- fix #2109 by @kevwan in #2116
New Contributors
- @kevin0527 made their first contribution in #1916
- @taobig made their first contribution in #1969
- @swliao425 made their first contribution in #1996
- @gaffeyQiu made their first contribution in #1992
- @showurl made their first contribution in #1983
- @AtlanCI made their first contribution in #2003
- @magickeha made their first contribution in #1913
- @lord63 made their first contribution in #2047
- @czyt made their first contribution in #2061
- @brickzzhang made their first contribution in #2055
- @dependabot made their first contribution in #2064
- @wxc421 made their first contribution in #2077
- @vfmh made their first contribution in #2049
- @shssen made their first contribution in #2101
Full Changelog: v1.3.4...v1.3.5