Releases: go-dev-frame/sponge
Releases · go-dev-frame/sponge
v1.12.3
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
v1.11.1
Change log
Upgrade library versions:
- github.com/gin-contrib/cors: v1.7.1 -> v1.7.2
- golang.org/x/crypto: v0.26.0 -> v0.31.0
v1.11.0
Major Feature Updates
-
Customizable Primary Keys for SQL Tables:
- Primary key names are no longer restricted to
id
, and the type is no longer limited to integers. Other names and string types are now supported.
- Primary key names are no longer restricted to
-
Improved Code Generation:
- Added a command for generating code based on custom templates and fields.
- Added a command for generating code based on custom templates and SQL.
- Added a command for generating code based on custom templates and Protobuf.
- Added a
protoc
plugin for converting Protobuf to JSON. - Introduced a web interface for generating code using custom templates.
Framework and Code Enhancements
-
Simplified service code generation:
- Removed default code blocks for service registration and discovery and Nacos configuration center. If needed, users can add them manually.
-
Directory Structure Optimization:
- Moved
internal/model/init.go
to theinternal/database
directory.
- Moved
-
Simplified Dependencies:
- Replaced
pkg/ggorm
withpkg/sgorm
, reducing code dependencies during compilation. - Delete dropped library
pkg/mysql
- Replaced
New Commands and Tools
-
Command Enhancements:
- The
make proto
command now automatically initializes the database and imports dependencies fromtypes.proto
.
- The
-
Simplified command:
- Merge
sponge configmap
intosponge config
and rename itcm
, see the helpsponge config cm -h
.
- Merge
-
Architecture Diagram Generation:
- Automatically generates project business architecture diagrams based on service configurations. e.g. https://github.com/zhufuyi/spograph/blob/main/example.png
Upgrade Dependency Library Version
- google.golang.org/grpc:
v1.61.0
-->v1.67.1
- github.com/grpc-ecosystem/go-grpc-middleware:
v1.3.0
-->v2.1.0
- github.com/redis/go-redis/v9:
v9.6.1
-->v9.7.0
- go.etcd.io/etcd/client/v3:
v3.5.4
-->v3.5.13
Bug Fixes
v1.10.3
v1.10.1
Change log
- Modify the scripts in the large repository type so that the web service and grpc service code generated based on SQL can automatically complete the missing parts.
v1.10.0
Change log
- Modified the code directory structure for large repository services, making the
api
andthird_party
directories shared among all services, while keeping other directories unchanged. - Added an automatic initialization command for the large repository (mono-repo repository) service mode.
- Optimized the code merging rules, supporting the merging of gRPC template code, Handler code, Router configuration, and Error code.
- Added a distributed lock library dlock with support for
Redis
andEtcd
. - Optimized some
pkg
libraries (Scheduled Task Logging, ID Generation Functionality).