Skip to content

Releases: zhufuyi/sponge

v1.11.0

01 Dec 14:48
Compare
Choose a tag to compare

Major Feature Updates

  1. 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.
  2. 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

  1. Simplified service code generation:

    • Removed default code blocks for service registration and discovery and Nacos configuration center. If needed, users can add them manually.
  2. Directory Structure Optimization:

    • Moved internal/model/init.go to the internal/database directory.
  3. Simplified Dependencies:

    • Replaced pkg/ggorm with pkg/sgorm, reducing code dependencies during compilation.
    • Delete dropped library pkg/mysql

New Commands and Tools

  1. Command Enhancements:

    • The make proto command now automatically initializes the database and imports dependencies from types.proto.
  2. Simplified command:

    • Merge sponge configmap into sponge config and rename it cm, see the help sponge config cm -h.
  3. Architecture Diagram Generation:

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

27 Oct 10:16
Compare
Choose a tag to compare

Change log

  • Fix for specifying schema in postgesql #74.
  • Add statistics on grpc service connections in metrics.

v1.10.1

20 Sep 14:57
Compare
Choose a tag to compare

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

19 Sep 14:43
Compare
Choose a tag to compare

Change log

  • Modified the code directory structure for large repository services, making the api and third_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 and Etcd.
  • Optimized some pkg libraries (Scheduled Task Logging, ID Generation Functionality).

v1.9.3

06 Sep 10:34
Compare
Choose a tag to compare

Change log

  1. Fix logging bug #59.
  2. Add custom jwt authentication in grpc service.

v1.9.0

25 Aug 09:37
Compare
Choose a tag to compare

Change log

  1. Support automatic import of proto file dependency packages.
  2. Add the new command modify-proto-package.
  3. Update some dependency library versions:

v1.8.7

30 Jul 14:51
Compare
Choose a tag to compare

Change log

  1. Modify the returned ID type, it will affect the ID types of GetByID and List for ⓵Create web service based on sql, which are consistent with the ID types in the database.

Warning: If you are using code for ⓵Create web service based on sql before v1.8.6, do not modify the sponge version under go.mod and upgrade to v1.8.6 or above. Otherwise, the List interface will return empty data because the original size field has become invalid (replaced by limit field).

v1.8.6

27 Jul 13:35
Compare
Choose a tag to compare

Change log

  1. Change page field size to limit.
  2. Supporting custom bingdingXXX and response in the web(protobuf).
  3. Match message name xxxID in the protobuf file.

v1.8.5

20 Jul 04:10
Compare
Choose a tag to compare

Change log

  • Optimize error codes and logs.
  • Change protobuf demo.

v1.8.4

13 Jul 07:05
Compare
Choose a tag to compare

Change log

  • Add kafka client library.