Releases: cloudwego/hertz
cmd/hz/v0.5.0
Feat
[#511] feat(hz): Hz supports specifying client generate dir for client command
[#471] feat(hz): Hz supports generating client code based IDL
Fix:
[#516] fix(hz): Fix hz client code error problem.
[#510] fix(hz): Fix the problem that the client's input is a basic type and support multi-service
[#497] fix(hz): Fix the problem for validating ".hz" failed when specify the "out_dir" flag
v0.4.2
Feat
[#440] feat: add resp.SetBodyStreamNoReset
method
[#418] feat: Adapt the logic after moving HTTP2 logic to hertz-contrib
Optimize
[#441] optimize: ignore sighup signal if binary is run by nohup
[#430] optimize(http1): return 413 status code if request body is too large
Fix
[#421] fix: doRequestFollowRedirectsBuffer
cannot get body in HTTP2 scenario. The affected interfaces include Client.Get
, Client.Post
, etc.
Test
[#372] test: add more tests for pkg/common/utils
[#419] test: add tests for pkg/app/client/retry/retry.go
[#417] test: add tests for pkg/app/client/discovery/discovery.go
[#405] test: add more tests for pkg/app/middlewares/server/basic_auth
Docs
[#438] docs(README): add csrf and loadbalance description
Thanks a lot to those community contributors who submit some pull requests for this version:
@sod-lol @L2ncE @mamil
v0.4.1
Feat
[#367] feat: add RequestHeader.SetNoDefaultContentType to omit the 'Content-Type' header entirely if no 'Content-Type was specified'
[#344] feat: support 'write timeout' for hertz client and server
[#356] feat: distinguish between global and local transporter
Optimize
[#357] optimize: zero idle timeout acts the same for 'netpoll' and 'standard' network library
Fix
[#373] fix: trace changed the root context by mistake
[#364] fix: add prefix to no-format log print function when use system logger
[#321] fix: ignore body that should not set content-length
Test
[#372] test: add unit tests for pkg/common/utils
[#382] test: listen localhost instead of all ip addr for unit test
[#298] test: add unit test for pkg/common/hlog
Docs
[#370] docs(README): add more blogs
[#362] docs(README): improve logger description
[#354] docs(README): add contributors
[#350] docs(README): incorrect image name causes README to fail to refer
[#352] docs(README): add logger extension
[#345] docs(README): update performance image in README and README_CN
[#337] docs(README): add slack link
Style
[#335] style: replace the return type of 'sd.Discovery' with 'client.Middleware'
[#347] style: modify the interface check way
[#348] style: empty slice and redundant type conversion and .gitignore add develop tools
Thanks a lot to those community contributors who submit some pull requests for this version:
@kyoukaya @byene0923 @sod-lol @L2ncE @Skyenought @demoManito
cmd/hz/v0.4.0
Feat
[#311] feat(hz): generate handler file by method and support the "api.handler_path" annotation to aggregate handlers
[#371] feat(hz): add 'pb_camel_json_tag' to generate json tag with camel naming style
[#315] feat(hz): add plugin flag for 'protoc' and 'thriftgo'
[#312] feat(hz): add model command to generate model only
[#308] feat(hz): modify the go_package generation rules to align 'protoc-gen-go'
Fix
[#353] fix(hz): use defer in the 'for' loop
[#327] fix(hz): fix the error of inserting to import for different os
[#341] fix(hz): fix the problem that no import in handler for protobuf idl
Refactor
[#383] refactor(hz): open hz code for being called
Chore
[#388] chore(hz): release hz v0.4.0
Thanks a lot to those community contributors who submit some pull requests for this version:
@Hanson @SeigeC
v0.4.0
Feat
[#289] feat: render support IndentedJSON
[#304] feat: support errors format for the recovery middleware
[#278] feat: add compile tag for json implementation
[#239] feat: add retry extention for client
[#265] feat: add closeNoResetBuffer method for standard network
[#258] feat: errors support format
Optimize
[#295] optimize: ignore flushing error when connection is closed or reset
[#322] optimize: modify the default log of the recovery middleware
[#280] optimize: add listening log when use standard lib
[#266] optimize(hlog): distinguish systemlogger and defaultlogger
Refactor
[#318] refactor: add SetRetryIf to remain compatible
Fix
[#282] fix: potential edge bugs of retry
Test
[#299] test: enrich ut for pkg/protocol/header.go
[#290] test: enrich ut for pkg/app/server/option.go
[#274] test: increase internal/bytesconv unit test statement coverage
[#285] test: enrich unit tests for pkg/protocol/request.go
[#271] test: ut supplementary for pkg/network
[#264] test: add ut for hertz/pkg/common/adaptor
[#267] test: pkg/common/config test coverage
Docs
[#328] docs: add lark extension to readme.md
[#325] docs: update performance data in README and README_cn
[#307] docs(README): add hertz extensions list
Style
[#316] style: remove empty comments for license
Build
[#313] build: upgrade version for urfave/cli to fix the help option
[#272] build: upgrade sonic version
Chore
[#310] chore: change license header style to avoid format error of buildtag from CI check
Thanks a lot to those community contributors who submit some pull requests for this version:
@BaiZe1998 @L2ncE @rogerogers @CSWYF3634076 @justlorain @Alexdener @zstone12 @chyroc
v0.3.2
Feat
[#198] feat: add the function to get the client dialer name
[#251] feat: add a startup log to display the name of the loaded network library
Refactor
[#238] refactor: refactor the client logic initialize for HostClient and TlsHostClient
Optimize
[#226] optimize: add a warning log for illegal status code
Fix
[#249] fix: add channel signal judge to allow onShutdownHook to complete or timeout
[#232] fix: fix some trailing slash redirect bugs
Chore
[#217] chore: update pr template
Thanks a lot to those community contributors who submit some pull requests for this version:
cmd/hz/v0.3.0
v0.3.1
Feat
[#207] feat: add auto-reloading for html render
Optimize
[#223] optimize: add RequestContext.SetCookie Method
Fix
[#149] fix: client may create wrong connection because of race problem
Chore
[#242] chore: update netpoll version from v0.2.4 to v0.2.6
[#191] chore: update sonic version to support Go 1.19
[#219] chore: fix grammer of pull request template
Thanks a lot to those community contributors who submit some pull requests for this version:
@byene0923
v0.3.0
Feat
[#182] feat: add service registration & service discovery & load balancing
[#203] feat: add v6 support for AddMissingPort function
Refactor
[#175] refactor: distinguish between global dialer and local dialer
Optimize
[#205] optimize: func checkPathValid returns true if the path is valid
Test
[#174] test: correcting TestRouterMiddlewareAndStatic
Fix
[#208] fix: deregister failed when service shutdown
[#202] fix: get wrong local loopback IPv6
[#184] fix: hijack conn throw timeout err when use standard network lib
Chore
[#186] chore: support codecov
[#196] chore: fix some typos in logs
Thanks a lot to those community contributors who submit some pull requests for this version:
@ackerr @wangbei98 @safeoy