|
1 | 1 |
|
2 |
| -### **Major Feature Updates** |
| 2 | +## Change log |
3 | 3 |
|
4 |
| -1. **Customizable Primary Keys for SQL Tables**: |
5 |
| - - 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. |
| 4 | +Upgrade library versions: |
6 | 5 |
|
7 |
| -2. **Improved Code Generation**: |
8 |
| - - Added a command for generating code based on custom templates and fields. |
9 |
| - - Added a command for generating code based on custom templates and SQL. |
10 |
| - - Added a command for generating code based on custom templates and Protobuf. |
11 |
| - - Added a `protoc` plugin for converting Protobuf to JSON. |
12 |
| - - Introduced a web interface for generating code using custom templates. |
13 |
| - |
14 |
| -### **Framework and Code Enhancements** |
15 |
| - |
16 |
| -3. **Simplified service code generation**: |
17 |
| - - Removed default code blocks for service registration and discovery and Nacos configuration center. If needed, users can add them manually. |
18 |
| - |
19 |
| -4. **Directory Structure Optimization**: |
20 |
| - - Moved `internal/model/init.go` to the `internal/database` directory. |
21 |
| - |
22 |
| -5. **Simplified Dependencies**: |
23 |
| - - Replaced `pkg/ggorm` with `pkg/sgorm`, reducing code dependencies during compilation. |
24 |
| - - Delete dropped library `pkg/mysql` |
25 |
| - |
26 |
| -### **New Commands and Tools** |
27 |
| - |
28 |
| -6. **Command Enhancements**: |
29 |
| - - The `make proto` command now automatically initializes the database and imports dependencies from `types.proto`. |
30 |
| - |
31 |
| -7. **Simplified command**: |
32 |
| - - Merge `sponge configmap` into `sponge config` and rename it `cm`, see the help `sponge config cm -h`. |
33 |
| - |
34 |
| -8. **Architecture Diagram Generation**: |
35 |
| - - Automatically generates project business architecture diagrams based on service configurations. e.g. https://github.com/zhufuyi/spograph/blob/main/example.png |
36 |
| - |
37 |
| -### **Upgrade Dependency Library Version** |
38 |
| - |
39 |
| -- google.golang.org/grpc: `v1.61.0` --> `v1.67.1` |
40 |
| -- github.com/grpc-ecosystem/go-grpc-middleware: `v1.3.0` --> `v2.1.0` |
41 |
| -- github.com/redis/go-redis/v9: `v9.6.1` --> `v9.7.0` |
42 |
| -- go.etcd.io/etcd/client/v3: `v3.5.4` --> `v3.5.13` |
43 |
| - |
44 |
| -### **Bug Fixes** |
45 |
| - |
46 |
| -- [#78](https://github.com/zhufuyi/sponge/issues/78) |
47 |
| -- [#83](https://github.com/zhufuyi/sponge/issues/83) |
48 |
| -- [#86](https://github.com/zhufuyi/sponge/issues/86) |
49 |
| -- [#88](https://github.com/zhufuyi/sponge/issues/88) |
| 6 | +- [**github.com/gin-contrib/cors**](https://github.com/gin-contrib/cors): v1.7.1 -> v1.7.2 |
| 7 | +- [**golang.org/x/crypto**](https://golang.org/x/crypto): v0.26.0 -> v0.31.0 |
0 commit comments