goctl/v1.9.0
- fear: add uuid:varchar to p2m by @hoshi200 in https://github.com/zeromicro/go-zero/pull/5022
- feat: support sse in api files by @kevwan in https://github.com/zeromicro/go-zero/pull/5074
- feat: supported sse generation by @kesonan in https://github.com/zeromicro/go-zero/pull/5082
- feat: Support projectPkg template variables in config, handler, logic, main, and svc template files by @geekeryy in https://github.com/zeromicro/go-zero/pull/4939
- feat: support goctl --module to set go module by @kevwan in https://github.com/zeromicro/go-zero/pull/5135
- @charmfocus made their first contribution in https://github.com/zeromicro/go-zero/pull/5010
- @csbzy made their first contribution in https://github.com/zeromicro/go-zero/pull/5024
- @DengY11 made their first contribution in https://github.com/zeromicro/go-zero/pull/5035
- @queryfast made their first contribution in https://github.com/zeromicro/go-zero/pull/5051
- @sunhao1296 made their first contribution in https://github.com/zeromicro/go-zero/pull/5065
- @ipinak made their first contribution in https://github.com/zeromicro/go-zero/pull/5029
Full Changelog: https://github.com/zeromicro/go-zero/compare/tools/goctl/v1.8.5...tools/goctl/v1.9.0
goctl/v1.9.0-alpha
- fear: add uuid:varchar to p2m by @hoshi200 in https://github.com/zeromicro/go-zero/pull/5022
- feat: support sse in api files by @kevwan in https://github.com/zeromicro/go-zero/pull/5074
- feat: supported sse generation by @kesonan in https://github.com/zeromicro/go-zero/pull/5082
- @charmfocus made their first contribution in https://github.com/zeromicro/go-zero/pull/5010
- @csbzy made their first contribution in https://github.com/zeromicro/go-zero/pull/5024
- @DengY11 made their first contribution in https://github.com/zeromicro/go-zero/pull/5035
- @queryfast made their first contribution in https://github.com/zeromicro/go-zero/pull/5051
- @sunhao1296 made their first contribution in https://github.com/zeromicro/go-zero/pull/5065
- @ipinak made their first contribution in https://github.com/zeromicro/go-zero/pull/5029
Full Changelog: https://github.com/zeromicro/go-zero/compare/tools/goctl/v1.8.5...tools/goctl/v1.9.0-alpha
v1.9.0
- feat: support masking sensitive data in logx by @kevwan in #5003
- feat: add field tag (
-
) skip logic inunwrapFields
in sqlx by @charmfocus in #5010 - feat: upgrade to mongo-driver v2, and move v1 to
zero-contrib
by @me-cs in #4687 - feat: add generic TypedSet with 2x performance boost and compile-time by @codeErrorSleep in #4888
- feat: add custom middleware support with onion model in gateway by @DengY11 in #5035
- feat: redis support consumer groups by @jk2K in #4912
- feat: ignore unknown fields in gateway request parsing by @guonaihong in #5058
- fix: issue with etcd key disappearing and unable to auto-re-register by @guonaihong in #4960
- fix: SSE timeout will affected by http.Server's WriteTimeout by @csbzy in #5024
- fix: unmarshal problem on env vars for type env string by @kevwan in #5037
- fix: large memory usage on detail logging post requests by @kevwan in #5039
- fix: Resolve HTML escaping issue during JSON serialization in httpx by @Disdjj in #5032
- fix: resolve concurrent get may lead to empty result in ImmutableResource by @sunhao1296 in #5065
- optimize: logging with fields by @kevwan in #5066
- @Twilikiss made their first contribution in #4997
- @charmfocus made their first contribution in #5010
- @csbzy made their first contribution in #5024
- @DengY11 made their first contribution in #5035
- @queryfast made their first contribution in #5051
- @sunhao1296 made their first contribution in #5065
- @ipinak made their first contribution in #5029
Detailed Release Notes: https://go-zero.dev/en/reference/releases/v1.9.0 Full Changelog: https://github.com/zeromicro/go-zero/compare/v1.8.5...v1.9.0
goctl/v1.8.5
- Bug Fix: Fix for issue #4943 — fix goctl api swagger error (@kesonan)
- Bug Fix: Fixed goctl api swagger panic with nil pointer when there is a wrong field tag in the API file (#4936)
- Bug Fix: Resolved issue where
timeout: 0s
was not working in API files (#4932, @kevwan) - Bug Fix: Corrected PostgreSQL
numeric
type mapping in goctl model generation (#4992, @AnlynnLee) - Enhancement: Improved POST JSON parameter determination logic in goctl API Swagger and added unit tests (#4997, @Twilikiss)
- @wanwusangzhi made their first contribution (#4944)
- @geekeryy made their first contribution (#4979)
- @Twilikiss made their first contribution (#4997)
Full Changelog: tools/goctl/v1.8.4...tools/goctl/v1.8.5
v1.8.5
- SQL Read/Write Splitting: Introduced SQL read/write splitting for improved database performance and scalability (#4976, #4990, #5000).
- Serverless Support in REST: Added support for serverless use in REST services (#5001).
- Fixed HTTP SSE method timeout not working when timeout is set by server (#4932)
- Fixed timeout
0s
not working in API files (#4932) - Fixed panic caused by
time.Duration
type with numerical values (#4944) - Fixed duration type comparison in environment variable processing (#4979)
Full Changelog: v1.8.4...v1.8.5
goctl/v1.8.4
- goctl 1.8.4 Features & Beta: New features and improvements in goctl, including mongo model generation with cache prefix and improved swagger consume types (#4849, #4869, #4903, #4907).
- Bug Fixes & Compatibility: Multiple bug fixes for backward compatibility, timeout settings, spelling, type handling, and more (#4852, #4895, #4914, #4916, #4917, #4918, #4920, #4785, #4931).
- goctl features of 1.8.4-alpha by @kesonan in #4849
- goctl: v1.8.4-beta by @kesonan in #4890
- fix(goctl): Fix getting swagger consume types by @jaronnie in #4903
- feat(goctl): generate mongo model with cache prefix by @smiley-yoyo in #4907
- @yguilai made their first contribution in #4874
- @Caplost made their first contribution in #4917
- @smiley-yoyo made their first contribution in #4907
Full Changelog: https://github.com/zeromicro/go-zero/compare/tools/goctl/v1.8.3...tools/goctl/v1.8.4
v1.8.4
- Continuous profiling support (#4867).
- Embedded File Server Enhancements: Added support to serve files using
embed.FS
, simplifying static file serving (#4847, #4851). - Performance Optimizations: Improved performance for hashing and slicing operations (#4891, #4877).
- New Features:
- Optimizations:
Thank you to all our contributors!
Full Changelog: https://github.com/zeromicro/go-zero/compare/v1.8.3...v1.8.4
tools/goctl/v1.8.4-beta
- Fixed goctl bugs.
We welcome our new contributor:
- @yguilai made their first contribution in https://github.com/zeromicro/go-zero/pull/4874
Full Changelog: https://github.com/zeromicro/go-zero/compare/tools/goctl/v1.8.3...tools/goctl/v1.8.4-beta
Special thanks to all contributors who made this release possible:
- @kevwan
- @dushaoshuai
- @me-cs
- @kesonan
- @yguilai
- @codeErrorSleep
- @dependabot
We encourage testing this beta release and welcome feedback from the community!
goctl/v1.8.4-alpha
- Swagger Enhancements:
- Bug fix: Removed example generation for
query
,path
, andheader
request bodies, which aren't supported in API spec 2.0. - Feature: Added support for response and JSON request body definitions. Enabled via the
useDefinitions
keyword in the API file.
- Bug fix: Removed example generation for
- API Code Generation Updates:
- Added
--type-group
flag for grouping types by file. - Introduced
group
keyword in@server
block for type separation.
- Added
- API Parser Improvements:
- Added support for identifier values in
info
key-value pairs.
- Added support for identifier values in
Check the PR description for detailed examples and usage.
Full Changelog: v1.8.3...v1.8.4-alpha
goctl/v1.8.3
- Built-in Swagger Support: Generate Swagger documents in
goctl
. Key features include:- Custom Authentication: Configure custom Swagger authentication.
- Complex Structures: Generate Swagger definitions for complex structures.
- Custom Example Values: Add custom example values in Swagger.
- Custom Response Body Format: Define response body formats.
- Custom Business Error Codes: Enumerate error codes for business logic.
- Custom Generated File: Specify the generated Swagger file name.
- For more details, refer to:
- fix: Form fields of request optional by @soasurs in #4755
- fix: The parameter "required" in the Swagger document generated for repair is incorrect by @kesonan in #4791
- fix: Array schema generation incorrect by @kesonan in #4801
- fix: pg gen model missing cache prefix by @SpectatorNan in #4788
- fix: goctl api tsgen by @wwwfeng in #4726
- chore(deps): Bump
github.com/emicklei/proto
from1.14.0
to1.14.1
in/tools/goctl
by @dependabot in #4817 - chore(deps): Bump
github.com/redis/go-redis/v9
from9.7.3
to9.8.0
by @dependabot in #4821
- Fix: The issue of generating Swagger
@doc
"xxx" that fails and use the right ... by @Rankgice in #4816
- @hthuz made their first contribution in #4766
- @dushaoshuai made their first contribution in #4809
- @Rankgice made their first contribution in #4816
- @Disdjj made their first contribution in #4790
- @hoshi200 made their first contribution in #4741
- @wwwfeng made their first contribution in #4726
Full Changelog: Compare v1.8.2...v1.8.3