Releases: go-dev-frame/sponge
Releases · go-dev-frame/sponge
v1.14.0
Change Log
New Features
- Added a custom Copier utility library that supports automatic bidirectional conversion between time types and strings.
- Implemented automatic conversion from Swagger 2.0 to OpenAPI 3.0 specification.
- Added implementation of SSE (Server-Sent Events) for both server and client sides.
- MongoDB ORM supports complex conditional group queries, with automatic type recognition and conversion for values (integer/date-time).
- SGORM ORM supports automatic type recognition and conversion for values (integer/date-time).
Bug Fixes
- Fixed an issue where the Swagger API documentation generated from Protobuf was inconsistent with the actual API response format.
Dependency Upgrades
- Upgraded Gin framework from v1.9.1 to v1.10.1.
- Upgraded Copier library from v0.3.5 to v0.4.0.
v1.13.2
Change log
- Removed the custom binding implementation and standardized the use of Gin's default binding mechanism.
- Added a lightweight Gin-JWT middleware implementation to simplify the authentication process.
- Standardized variable naming conventions in the generated code to ensure consistency, with special handling for proper nouns.
- Deprecated the custom
$neqoperator in MongoDB queries to maintain consistency with native query syntax. - Added a whitelist validation mechanism for the
namefield in custom query APIs to effectively prevent SQL injection risks.
v1.13.1
Change log
New Features
- Enhanced Code Generation Tool
- Added command and UI for generating gRPC + HTTP service code based on SQL
- Introduced
goastlibrary for Go source code parsing - Added Gemini AI Assistant SDK
- Added command and UI for the AI Assistant to generate and merge code
make runcommand now supports specifying a configuration file
Refactoring & Optimization
- Core Logic Refactoring
- Optimized the logic for code generation and merging using the
protocplugin - Refactored the authentication module:
- Improved the
pkg/jwtpackage - Enhanced JWT authentication middleware for the Gin framework (
pkg/gin/middleware/jwtAuth.go)
- Improved the
- Optimized the logic for code generation and merging using the
Bug Fixes
- Database Related
- Fixed an issue where the
sgorm.Booltype could not properly read or assign PostgreSQL boolean fields
- Fixed an issue where the
- Cross-Platform Compatibility
- Resolved an issue where code archives appeared empty when extracted using the built-in tool on Windows
- Dependency Management
- Fixed a version conflict issue with the
go.opentelemetry.io/oteldependency #97
- Fixed a version conflict issue with the
v1.12.8
v1.12.7
Change log
- Added
StrToUintandUintToStrfunctions to fix the problem of converting sql to go type uint.
v1.12.6
Change log
- Built-in AI assistant (
DeepSeekorChatGPT) supports generation of business logic code from specified go files.
v1.12.5
Change log
- Support the use of
ChatGPTorDeepSeekassistant to analyze and generate business logic code based on prompts
v1.12.3
Change log
- Fixed zero-valued judgments for types decimal and json.
v1.12.2
Change log
- Custom conditional queries support
nullvalues and parenthesis group. - Generate code to support parsing mysql data types
bit(1)anddecimal. - Optimize gin and gRPC for jwt certification.
v1.12.1
Change log
Transfer ownership of the zhufuyi/sponge repository to the go-dev-frame/sponge.
Note: If the current version of Sponge is lower than v1.11.1, and you want to upgrade to a higher version, execute the following command:
go install github.com/go-dev-frame/sponge/cmd/sponge@latest
sponge upgrade