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
v1.8.3
- MCP Server SDK: Added comprehensive Model Context Protocol server SDK support with real-time communication, JSON-RPC, prompt management, and more.
- API Route Improvements: Enhanced handling of special characters in API route paths.
-
MCP server SDK:
- Real-time Communication: Robust SSE-based system with persistent client connections
- JSON-RPC Support: Complete implementation with proper request processing and response formatting
- Tool System: Register custom tools with schema validation and support for various return types
- Prompt Management: Static prompts with templating and dynamic prompts with handler functions
- Resource Handling: Register and deliver file resources with proper MIME type support
- Embedded Resources: Include files directly in conversation messages
- Content Flexibility: Support for text, code, images, and binary content
- Protocol Features: Proper initialization sequences and capability negotiation
- Comprehensive Error Handling: Proper error reporting with appropriate error codes
- Performance Optimizations: Configurable timeouts and efficient resource management
- Context Awareness: All handlers receive context for timeout and cancellation support
⚠️ API Stability Notice: Since this is the initial release of the MCP SDK and AI technology is rapidly evolving, the APIs might change in future releases to improve developer experience and adapt to emerging industry standards.📚 Tutorial: For detailed documentation and usage examples, check out the MCP Tutorial
-
API Enhancements:
- Fixed handling of special characters (like periods) in API route paths
- Fixed marshaler bug when handling arrays
- Bumped github.com/redis/go-redis/v9 from 9.7.3 to 9.8.0
A warm welcome to our new contributors who made their first contributions to go-zero in this release:
- @hthuz
- @Disdjj
- @hoshi200
- Full Changelog: https://github.com/zeromicro/go-zero/compare/v1.8.2...v1.8.3
- GitHub Release: https://github.com/zeromicro/go-zero/releases/tag/v1.8.3
- MCP Documentation: https://github.com/zeromicro/go-zero/blob/master/mcp/readme.md
goctl/v1.8.3-beta
We are excited to announce the release of go-zero v1.8.3-beta, bringing new features, important fixes, and experimental capabilities to enhance your development experience.
-
[Experimental] Swagger Enhancements:
- Built-in support for generating Swagger documents in
goctl
.- 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.
For more details, refer to:
- 中文文档 | English
- Built-in support for generating Swagger documents in
-
[Experimental] API Types File Splitting:
- Optional form fields in requests. (#4755)
- Corrected the
required
parameter in generated Swagger documents. (#4791) - Fixed Swagger separator issue on Windows OS. (#4799)
- Resolved incorrect array schema generation. (#4801)
- Fixed missing security definition and JSON body data error in Swagger. (#4808)
For a detailed list of changes, refer to the Full Changelog.
Thank you to all the contributors who made this release possible! 🎉
goctl/v1.8.2
- PostgreSQL Data Types: Fixed issues with numeric/decimal data types in PostgreSQL (#4686)
We're excited to welcome the following new contributors to the go-zero project:
- MCP Server Support: We'll be adding Model Context Protocol (MCP) server support in the next release.
- Full Changelog: v1.8.1...v1.8.2
v1.8.2
We're pleased to announce the release of go-zero v1.8.2. This release includes new features, bug fixes, dependency updates, and code improvements.
- SSE Support: Added
rest.WithSSE
to build Server-Sent Events routes more easily (#4729) - Redis Command: Added support for Redis
GETDEL
command (#4709) - HTTP Client Enhancement: Added support for serialization of anonymous fields in HTTP client (httpc) (#4676)
- PostgreSQL Data Types: Fixed issues with numeric/decimal data types in PostgreSQL (#4686)
- Bumped github.com/prometheus/client_golang from 1.21.0 to 1.21.1 (#4683)
- Bumped github.com/fullstorydev/grpcurl from 1.9.2 to 1.9.3 (#4701)
- Bumped github.com/redis/go-redis/v9 from 9.7.1 to 9.7.3 (#4722)
- Bumped github.com/golang-jwt/jwt/v4 from 4.5.1 to 4.5.2 (#4734)
- Bumped github.com/jackc/pgx/v5 from 5.7.2 to 5.7.4 (#4737)
We're excited to welcome the following new contributors to the go-zero project:
- MCP Server Support: We'll be adding Model Context Protocol (MCP) server support in the next release.
- Full Changelog: v1.8.1...v1.8.2
goctl/v1.8.1
- Fixed version to match with the release by @chenrui333
- Added version check workflow by @kevwan
- Upgraded go-zero version in goctl by @kevwan
This release includes several dependency updates:
- Updated github.com/spf13/cobra from 1.8.1 to 1.9.1
- Updated github.com/go-sql-driver/mysql from 1.8.1 to 1.9.0
For a complete list of changes, please check the full changelog.