zenweb 3.11.1 → 3.12.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 +43 -0
- package/README.md +0 -38
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -1
- package/package.json +2 -2
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 3.12.1
|
|
4
|
+
- 导出: ParamHelper
|
|
5
|
+
|
|
6
|
+
## 3.12.0
|
|
7
|
+
- 更新: @zenweb/body: ^3.2.0 ObjectBody
|
|
8
|
+
|
|
9
|
+
## 3.11.1
|
|
10
|
+
> null 大检查! 所有项目强制开启 TS strict 模式,不再忽略 null 检查
|
|
11
|
+
- 更新:
|
|
12
|
+
- @zenweb/body: ^3.1.1
|
|
13
|
+
- @zenweb/controller: ^3.9.1
|
|
14
|
+
- @zenweb/core: ^3.5.1
|
|
15
|
+
- @zenweb/helper: ^3.3.1
|
|
16
|
+
- @zenweb/log: ^3.2.1
|
|
17
|
+
- @zenweb/messagecode: ^3.2.1
|
|
18
|
+
- @zenweb/meta: ^2.4.1
|
|
19
|
+
- @zenweb/result: ^3.0.1
|
|
20
|
+
|
|
21
|
+
## 3.11.0
|
|
22
|
+
- @zenweb/helper: ^3.3.0
|
|
23
|
+
- 去除 Helper
|
|
24
|
+
- 新增 QueryHelper, ParamHelper, TypeCastHelper
|
|
25
|
+
- @zenweb/body: ^3.1.0
|
|
26
|
+
- 新增 BodyHelper 数据类型转换&校验
|
|
27
|
+
|
|
28
|
+
## 3.10.0
|
|
29
|
+
- update:
|
|
30
|
+
- @zenweb/core: ^3.5.0
|
|
31
|
+
- 新增: Core.moduleExists
|
|
32
|
+
- 新增: SetupHelper.assertModuleExists
|
|
33
|
+
- 修改: Core.setup 方法增加 name 参数
|
|
34
|
+
- 删除: SetupHelper.checkCoreProperty
|
|
35
|
+
- 删除: SetupHelper.checkContextProperty
|
|
36
|
+
- @zenweb/body: ^3.0.0
|
|
37
|
+
- 使用依赖注入重构,去除 xml 和 文件上传表单支持,取消的这两个作为独立模块分离。
|
|
38
|
+
- @zenweb/helper: ^3.1.0
|
|
39
|
+
- 使用依赖注入重构,不再支持 ctx.helper 调用
|
|
40
|
+
- @zenweb/router: ^3.3.0
|
|
41
|
+
- @zenweb/controller: ^3.9.0
|
|
42
|
+
- @zenweb/messagecode: ^3.2.0
|
|
43
|
+
- @zenweb/inject: ^3.18.0
|
package/README.md
CHANGED
|
@@ -35,41 +35,3 @@
|
|
|
35
35
|
|
|
36
36
|
## 废弃模块
|
|
37
37
|
- [service](https://www.npmjs.com/package/@zenweb/service) 废弃,已被 3.0 注入技术替代
|
|
38
|
-
|
|
39
|
-
## Changelog
|
|
40
|
-
|
|
41
|
-
### 3.11.1
|
|
42
|
-
> null 大检查! 所有项目强制开启 TS strict 模式,不再忽略 null 检查
|
|
43
|
-
- 更新:
|
|
44
|
-
- @zenweb/body: ^3.1.1
|
|
45
|
-
- @zenweb/controller: ^3.9.1
|
|
46
|
-
- @zenweb/core: ^3.5.1
|
|
47
|
-
- @zenweb/helper: ^3.3.1
|
|
48
|
-
- @zenweb/log: ^3.2.1
|
|
49
|
-
- @zenweb/messagecode: ^3.2.1
|
|
50
|
-
- @zenweb/meta: ^2.4.1
|
|
51
|
-
- @zenweb/result: ^3.0.1
|
|
52
|
-
|
|
53
|
-
### 3.11.0
|
|
54
|
-
- @zenweb/helper: ^3.3.0
|
|
55
|
-
- 去除 Helper
|
|
56
|
-
- 新增 QueryHelper, ParamHelper, TypeCastHelper
|
|
57
|
-
- @zenweb/body: ^3.1.0
|
|
58
|
-
- 新增 BodyHelper 数据类型转换&校验
|
|
59
|
-
|
|
60
|
-
### 3.10.0
|
|
61
|
-
- update:
|
|
62
|
-
- @zenweb/core: ^3.5.0
|
|
63
|
-
- 新增: Core.moduleExists
|
|
64
|
-
- 新增: SetupHelper.assertModuleExists
|
|
65
|
-
- 修改: Core.setup 方法增加 name 参数
|
|
66
|
-
- 删除: SetupHelper.checkCoreProperty
|
|
67
|
-
- 删除: SetupHelper.checkContextProperty
|
|
68
|
-
- @zenweb/body: ^3.0.0
|
|
69
|
-
- 使用依赖注入重构,去除 xml 和 文件上传表单支持,取消的这两个作为独立模块分离。
|
|
70
|
-
- @zenweb/helper: ^3.1.0
|
|
71
|
-
- 使用依赖注入重构,不再支持 ctx.helper 调用
|
|
72
|
-
- @zenweb/router: ^3.3.0
|
|
73
|
-
- @zenweb/controller: ^3.9.0
|
|
74
|
-
- @zenweb/messagecode: ^3.2.0
|
|
75
|
-
- @zenweb/inject: ^3.18.0
|
package/dist/index.d.ts
CHANGED
|
@@ -5,8 +5,8 @@ export { Router } from '@zenweb/router';
|
|
|
5
5
|
export { ResultFail } from '@zenweb/result';
|
|
6
6
|
export { Controller, controller, mapping } from '@zenweb/controller';
|
|
7
7
|
export { Next, SetupFunction, Context, Middleware } from '@zenweb/core';
|
|
8
|
-
export { Body, BodyHelper } from '@zenweb/body';
|
|
9
|
-
export { QueryHelper, TypeCastHelper } from '@zenweb/helper';
|
|
8
|
+
export { Body, ObjectBody, BodyHelper } from '@zenweb/body';
|
|
9
|
+
export { QueryHelper, TypeCastHelper, ParamHelper } from '@zenweb/helper';
|
|
10
10
|
export { Core, CreateOptions, };
|
|
11
11
|
/**
|
|
12
12
|
* @param options 模块配置项
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.create = exports.Core = exports.TypeCastHelper = exports.QueryHelper = exports.BodyHelper = exports.Body = exports.Context = exports.mapping = exports.controller = exports.Controller = exports.ResultFail = exports.Router = exports.scope = exports.factory = exports.inject = exports.init = void 0;
|
|
3
|
+
exports.create = exports.Core = exports.ParamHelper = exports.TypeCastHelper = exports.QueryHelper = exports.BodyHelper = exports.ObjectBody = exports.Body = exports.Context = exports.mapping = exports.controller = exports.Controller = exports.ResultFail = exports.Router = exports.scope = exports.factory = exports.inject = exports.init = void 0;
|
|
4
4
|
const inject_1 = require("@zenweb/inject");
|
|
5
5
|
const meta_1 = require("@zenweb/meta");
|
|
6
6
|
const log_1 = require("@zenweb/log");
|
|
@@ -29,10 +29,12 @@ var core_2 = require("@zenweb/core");
|
|
|
29
29
|
Object.defineProperty(exports, "Context", { enumerable: true, get: function () { return core_2.Context; } });
|
|
30
30
|
var body_2 = require("@zenweb/body");
|
|
31
31
|
Object.defineProperty(exports, "Body", { enumerable: true, get: function () { return body_2.Body; } });
|
|
32
|
+
Object.defineProperty(exports, "ObjectBody", { enumerable: true, get: function () { return body_2.ObjectBody; } });
|
|
32
33
|
Object.defineProperty(exports, "BodyHelper", { enumerable: true, get: function () { return body_2.BodyHelper; } });
|
|
33
34
|
var helper_2 = require("@zenweb/helper");
|
|
34
35
|
Object.defineProperty(exports, "QueryHelper", { enumerable: true, get: function () { return helper_2.QueryHelper; } });
|
|
35
36
|
Object.defineProperty(exports, "TypeCastHelper", { enumerable: true, get: function () { return helper_2.TypeCastHelper; } });
|
|
37
|
+
Object.defineProperty(exports, "ParamHelper", { enumerable: true, get: function () { return helper_2.ParamHelper; } });
|
|
36
38
|
/**
|
|
37
39
|
* @param options 模块配置项
|
|
38
40
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zenweb",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.12.1",
|
|
4
4
|
"description": "Modular lightweight web framework based on Koa",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"typings": "./dist/index.d.ts",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"url": "https://github.com/yefei/zenweb/issues"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@zenweb/body": "^3.
|
|
35
|
+
"@zenweb/body": "^3.2.0",
|
|
36
36
|
"@zenweb/controller": "^3.9.1",
|
|
37
37
|
"@zenweb/core": "^3.5.1",
|
|
38
38
|
"@zenweb/helper": "^3.3.1",
|