Skip to content

Releases: cloudwego/hertz

v0.4.1

18 Nov 06:36
ec22b5a
Compare
Choose a tag to compare

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

21 Nov 02:58
ec22b5a
Compare
Choose a tag to compare

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

28 Oct 08:28
8864a2a
Compare
Choose a tag to compare

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

20 Sep 10:18
31f6d7b
Compare
Choose a tag to compare

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:

@hushengquan @BaiZe1998

cmd/hz/v0.3.0

20 Sep 10:30
31f6d7b
Compare
Choose a tag to compare

Feat

[#179] feat: tidy the generated go tag

Optimize

[#235] optimize: softlink the plugin to $GOPATH/bin

Fix

[#216] fix: same package for self

Chore

[#259] chore: update hz version v0.3.0

v0.3.1

14 Sep 09:02
0bbfc48
Compare
Choose a tag to compare

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

29 Aug 04:02
a83e52c
Compare
Choose a tag to compare

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

v0.2.1

03 Aug 03:45
5f3b064
Compare
Choose a tag to compare

Fix

[#164] fix: missing reset isTLS field when recycle Request
[#154] fix: add missing port when use domain

Style

[#150] style: translate Chinese comments to English

v0.2.0

22 Jul 03:19
3ac19d5
Compare
Choose a tag to compare

Feature

[#124] feat: add option to remove hijackConnPool
[#116] feat: update for tempalte
[#130] feat: add a warning log for invalid character in Cookie.Value
[#143] feat: custom signal to gracefull shutdown
[#114] feat: release buffer in standard network method
[#112] feat: parse post args in bodystream
[#105] feat: client abstracts hostclient layer
[#92] feat: hz support windows
[#102] feat: client removes default retry logic

Optimize

[#111] optimize: pre-allocate slice when calling bytesconv.AppendHTTPDate
[#128] optimize: remove useless judgement
[#108] optimize: avoid parsing regular expression repeatly

Chore

[#125] Update pr-check.yml

Fix

[#104] fix: use defer to guarantee that mutex will be unlocked
[#96] fix: ci exec /bin/license-eye: exec format error

Style

[#103] style: fixed the typo “ungzipped” to “gunzipped”
[#90] style: use const var and removed duplicate type conversions

Refactor

[#94] refactor: use appendCookiePart to simpify code

Docs

[#97] docs: use comma to separate && remove extra space


Thanks a lot to those community contributors who submit some pull requests for this version:
@zhoulilily @lgbgbl @likzn @Ai-Zixun @kezhenxu94 @L2ncE @FlameMida

cmd/hz/v0.2.0

22 Jul 07:12
a77c10c
Compare
Choose a tag to compare

[#116] feat: update for tempalte