zenweb 3.19.0 → 3.19.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +22 -0
- package/README.md +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,31 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [3.19.1] - 2023-4-1
|
|
4
|
+
- 更新: @zenweb/helper: ^3.6.1
|
|
5
|
+
|
|
3
6
|
## [3.19.0] - 2023-4-1
|
|
4
7
|
- 更新: typecasts: 3.0.0
|
|
5
8
|
- 更新: @zenweb/body: ^3.7.0
|
|
6
9
|
- 更新: @zenweb/helper: ^3.6.0
|
|
10
|
+
```ts
|
|
11
|
+
export class DemoController {
|
|
12
|
+
@mapping({ method: 'POST' })
|
|
13
|
+
typecast(body: BodyHelper) {
|
|
14
|
+
return body.get({
|
|
15
|
+
kw: 'trim',
|
|
16
|
+
news: {
|
|
17
|
+
// 嵌套对象 news
|
|
18
|
+
// 嵌套用法与 get({}) 用法一致,可以无限嵌套
|
|
19
|
+
type: 'object',
|
|
20
|
+
pick: {
|
|
21
|
+
id: '!int',
|
|
22
|
+
title: '!string',
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
```
|
|
7
29
|
|
|
8
30
|
## [3.18.1] - 2023-4-1
|
|
9
31
|
- 更新: typecasts: 2.8.0
|
package/README.md
CHANGED
|
@@ -111,7 +111,7 @@ npm run dev
|
|
|
111
111
|
- [validation](https://www.npmjs.com/package/@zenweb/validation) JSONSchema 验证
|
|
112
112
|
- [mysql](https://www.npmjs.com/package/@zenweb/mysql) MySQL 数据库支持
|
|
113
113
|
- [orm](https://www.npmjs.com/package/@zenweb/orm) ORM 支持
|
|
114
|
-
- [
|
|
114
|
+
- [template](https://www.npmjs.com/package/@zenweb/template) 模版渲染
|
|
115
115
|
- [schedule](https://www.npmjs.com/package/@zenweb/schedule) 定时任务
|
|
116
116
|
- [form](https://www.npmjs.com/package/@zenweb/form) 统一表单(多用于后台)
|
|
117
117
|
- [grid](https://www.npmjs.com/package/@zenweb/grid) 统一表格(多用于后台)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zenweb",
|
|
3
|
-
"version": "3.19.
|
|
3
|
+
"version": "3.19.1",
|
|
4
4
|
"description": "Modular lightweight web framework based on Koa",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"typings": "./dist/index.d.ts",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"@zenweb/body": "^3.7.0",
|
|
31
31
|
"@zenweb/controller": "^3.13.0",
|
|
32
32
|
"@zenweb/core": "^3.5.5",
|
|
33
|
-
"@zenweb/helper": "^3.6.
|
|
33
|
+
"@zenweb/helper": "^3.6.1",
|
|
34
34
|
"@zenweb/inject": "^3.18.0",
|
|
35
35
|
"@zenweb/log": "^3.2.1",
|
|
36
36
|
"@zenweb/messagecode": "^3.4.0",
|