@modern-js/types 2.31.2 → 2.32.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 +21 -0
- package/LICENSE +1 -1
- package/cli/index.d.ts +3 -1
- package/package.json +4 -4
- package/server/utils.d.ts +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @modern-js/types
|
|
2
2
|
|
|
3
|
+
## 2.32.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 90e053a: feat(app-tools): add comments for configurations and functions
|
|
8
|
+
|
|
9
|
+
feat(app-tools): 为配置和函数添加 comments 说明
|
|
10
|
+
|
|
11
|
+
## 2.32.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- 4323e68: feat: support client-data file
|
|
16
|
+
feat: 支持 client-data 文件
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- 6076166: fix: packaging errors found by publint
|
|
21
|
+
|
|
22
|
+
fix: 修复 publint 检测到的 packaging 问题
|
|
23
|
+
|
|
3
24
|
## 2.31.2
|
|
4
25
|
|
|
5
26
|
## 2.31.1
|
package/LICENSE
CHANGED
package/cli/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export type JestConfig = JestConfigTypes.Config;
|
|
|
7
7
|
export interface TestConfig {
|
|
8
8
|
/**
|
|
9
9
|
* Decide which transformer will be used to compile file
|
|
10
|
-
*
|
|
10
|
+
* @default 'babel-jest'
|
|
11
11
|
*/
|
|
12
12
|
transformer?: 'babel-jest' | 'ts-jest';
|
|
13
13
|
|
|
@@ -73,6 +73,8 @@ export type NestedRoute<T = string | (() => JSX.Element)> = Merge<
|
|
|
73
73
|
{
|
|
74
74
|
type: 'nested';
|
|
75
75
|
parentId?: string;
|
|
76
|
+
data?: string;
|
|
77
|
+
clientData?: string;
|
|
76
78
|
children?: NestedRoute<T>[];
|
|
77
79
|
filename?: string;
|
|
78
80
|
_component?: string;
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "2.
|
|
18
|
+
"version": "2.32.1",
|
|
19
19
|
"types": "./index.d.ts",
|
|
20
20
|
"exports": {
|
|
21
21
|
".": {
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"default": "./index.d.ts"
|
|
24
24
|
},
|
|
25
25
|
"./server": {
|
|
26
|
-
"jsnext:source": "./server/index.d.ts",
|
|
27
26
|
"types": "./server/index.d.ts",
|
|
27
|
+
"jsnext:source": "./server/index.d.ts",
|
|
28
28
|
"default": "./server/index.d.ts"
|
|
29
29
|
}
|
|
30
30
|
},
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"http-proxy-middleware": "^2.0.4",
|
|
46
46
|
"jest": "^29",
|
|
47
47
|
"type-fest": "2.15.0",
|
|
48
|
-
"@scripts/
|
|
49
|
-
"@scripts/
|
|
48
|
+
"@scripts/build": "2.32.1",
|
|
49
|
+
"@scripts/jest-config": "2.32.1"
|
|
50
50
|
},
|
|
51
51
|
"sideEffects": false,
|
|
52
52
|
"publishConfig": {
|
package/server/utils.d.ts
CHANGED
|
@@ -23,10 +23,10 @@ export interface ServerTiming {
|
|
|
23
23
|
addServeTiming: (name: string, dur: number, decs?: string) => this;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
export type Reporter = {
|
|
26
|
+
export type Reporter<C = any> = {
|
|
27
27
|
sessionId?: string;
|
|
28
28
|
userId?: string;
|
|
29
|
-
client?:
|
|
29
|
+
client?: C;
|
|
30
30
|
|
|
31
31
|
init: (payload: { match: any }) => void | Promise<void>;
|
|
32
32
|
|