Releases: go-dev-frame/sponge
Releases · go-dev-frame/sponge
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
$neq
operator in MongoDB queries to maintain consistency with native query syntax. - Added a whitelist validation mechanism for the
name
field 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
goast
library for Go source code parsing - Added Gemini AI Assistant SDK
- Added command and UI for the AI Assistant to generate and merge code
make run
command now supports specifying a configuration file
Refactoring & Optimization
- Core Logic Refactoring
- Optimized the logic for code generation and merging using the
protoc
plugin - Refactored the authentication module:
- Improved the
pkg/jwt
package - 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.Bool
type 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/otel
dependency #97
- Fixed a version conflict issue with the
v1.12.8
v1.12.7
Change log
- Added
StrToUint
andUintToStr
functions to fix the problem of converting sql to go type uint.
v1.12.6
Change log
- Built-in AI assistant (
DeepSeek
orChatGPT
) supports generation of business logic code from specified go files.
v1.12.5
Change log
- Support the use of
ChatGPT
orDeepSeek
assistant 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
null
values 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
v1.12.0
Change log
Transfer ownership of the zhufuyi/sponge
repository to the go-dev-frame/sponge
.
Note: If you currently have Sponge v1.11.1 and below, if you want to upgrade to a higher version, execute the following command:
go install github.com/go-dev-frame/sponge@latest
sponge upgrade