Skip to content

Releases: go-dev-frame/sponge

v1.14.0

22 Jun 09:30
Compare
Choose a tag to compare

Change Log

New Features

  1. Added a custom Copier utility library that supports automatic bidirectional conversion between time types and strings.
  2. Implemented automatic conversion from Swagger 2.0 to OpenAPI 3.0 specification.
  3. Added implementation of SSE (Server-Sent Events) for both server and client sides.
  4. MongoDB ORM supports complex conditional group queries, with automatic type recognition and conversion for values (integer/date-time).
  5. SGORM ORM supports automatic type recognition and conversion for values (integer/date-time).

Bug Fixes

  1. Fixed an issue where the Swagger API documentation generated from Protobuf was inconsistent with the actual API response format.

Dependency Upgrades

  1. Upgraded Gin framework from v1.9.1 to v1.10.1.
  2. Upgraded Copier library from v0.3.5 to v0.4.0.

v1.13.2

18 May 16:01
Compare
Choose a tag to compare

Change log

  1. Removed the custom binding implementation and standardized the use of Gin's default binding mechanism.
  2. Added a lightweight Gin-JWT middleware implementation to simplify the authentication process.
  3. Standardized variable naming conventions in the generated code to ensure consistency, with special handling for proper nouns.
  4. Deprecated the custom $neq operator in MongoDB queries to maintain consistency with native query syntax.
  5. Added a whitelist validation mechanism for the name field in custom query APIs to effectively prevent SQL injection risks.

v1.13.1

12 Apr 10:56
Compare
Choose a tag to compare

Change log

New Features

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

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

Bug Fixes

  1. Database Related
    • Fixed an issue where the sgorm.Bool type could not properly read or assign PostgreSQL boolean fields
  2. Cross-Platform Compatibility
    • Resolved an issue where code archives appeared empty when extracted using the built-in tool on Windows
  3. Dependency Management
    • Fixed a version conflict issue with the go.opentelemetry.io/otel dependency #97

v1.12.8

02 Mar 13:11
Compare
Choose a tag to compare

Change log

  • Modified the README.md file to include the new features and changes.
  • Support static files in a Gin web application.
  • Fix bug #95.

v1.12.7

16 Feb 15:55
Compare
Choose a tag to compare

Change log

  • Added StrToUint and UintToStr functions to fix the problem of converting sql to go type uint.

v1.12.6

08 Feb 13:31
Compare
Choose a tag to compare

Change log

  • Built-in AI assistant (DeepSeek or ChatGPT) supports generation of business logic code from specified go files.

v1.12.5

25 Jan 11:57
Compare
Choose a tag to compare

Change log

  • Support the use of ChatGPT or DeepSeek assistant to analyze and generate business logic code based on prompts

v1.12.3

20 Jan 05:50
Compare
Choose a tag to compare

Change log

  • Fixed zero-valued judgments for types decimal and json.

v1.12.2

19 Jan 15:19
Compare
Choose a tag to compare

Change log

  • Custom conditional queries support null values and parenthesis group.
  • Generate code to support parsing mysql data types bit(1) and decimal.
  • Optimize gin and gRPC for jwt certification.

v1.12.1

19 Dec 16:16
Compare
Choose a tag to compare

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