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