Releases: cloudwego/hertz
cmd/hz/v0.6.0
Feat
[#635] feat(hz): search go mod to the upper level
[#619] feat(hz): use third model as "import" for handlers
[#599] feat(hz): add compile script for "new" command
Fix
[#638] fix(hz): bad template separator for windows environment
[#616] fix(hz): panic when user delete go.mod under non-gopath
[#586] fix(hz): wrong struct name in handler file for pb
Optimize:
[#605] optimize(hz): optimize the use experience for hz client
[#611] optimize(hz): package name for generated file
[#530] optimize(hz): refuse all new operation if there already exists a project
v0.5.2
cmd/hz/v0.5.2
Feat
[#574] feat(hz): add mod flag for update command
v0.5.1
cmd/hz/v0.5.1
v0.5.0
Feat
[#467] feat: add support for stream-based interface in network and protocol layers
[#456] feat: add ResponseHeader.contentEncoding
[#380] feat: improve observability of hostclient
[#454] feat: add connection hook: OnAccept
and OnConnect
Fix
[#515] fix: client cannot parse stream body correctly when transfer-encoding is 'identity'
[#501] fix: TestOnPrePare race
Optimize
[#447] optimize: add WithDialFunc for client
[#473] optimize: support SetCustomFormValueFunc to define custom ctx.FormValue
[#412] optimize(http1): try parse response even if get writing errors
[#433] optimize: add requestOptions for global client APIs
Test
[#457] test: add tests for pkg/app/server/registry
[#404] test: add more tests for pkg/app/context
Ci
[#508] ci: update go version and refactor code
[#490] ci: automatically skip when there is a label except invalid issue
[#478] ci: add Question
issue template and improve ci about invalid question.
[#437] ci: add a labeler to limit the specification of the issue template
Docs
[#464] docs(README): add HTTP2 extension and optimize extensions sort order
Thanks a lot to those community contributors who submit some pull requests for this version:
@wang-tsh @L2ncE @springrain @mamil @chenghonour @gityh2021
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