@modern-js/types 1.5.3 → 1.5.5
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 +14 -0
- package/package.json +4 -3
- package/server/context.d.ts +6 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @modern-js/types
|
|
2
2
|
|
|
3
|
+
## 1.5.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 2dacc89: support set header & status in render
|
|
8
|
+
- Updated dependencies [f29e9ba]
|
|
9
|
+
- @modern-js/plugin@1.4.0
|
|
10
|
+
|
|
11
|
+
## 1.5.4
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- 192dbc78: adjust ssr types
|
|
16
|
+
|
|
3
17
|
## 1.5.3
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
"modern",
|
|
12
12
|
"modern.js"
|
|
13
13
|
],
|
|
14
|
-
"version": "1.5.
|
|
14
|
+
"version": "1.5.5",
|
|
15
15
|
"types": "./index.d.ts",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@modern-js/plugin": "^1.
|
|
17
|
+
"@modern-js/plugin": "^1.4.0",
|
|
18
18
|
"http-proxy-middleware": "^2.0.4",
|
|
19
19
|
"webpack": "^5.54.0"
|
|
20
20
|
},
|
|
@@ -45,7 +45,8 @@
|
|
|
45
45
|
"files": [
|
|
46
46
|
"src/**/*",
|
|
47
47
|
"tsconfig.json",
|
|
48
|
-
"package.json"
|
|
48
|
+
"package.json",
|
|
49
|
+
"tests/**/*"
|
|
49
50
|
],
|
|
50
51
|
"output": []
|
|
51
52
|
}
|
package/server/context.d.ts
CHANGED
|
@@ -52,9 +52,13 @@ export type BaseSSRServerContext = {
|
|
|
52
52
|
query: Record<string, string>;
|
|
53
53
|
headers: IncomingHttpHeaders;
|
|
54
54
|
host: string;
|
|
55
|
-
|
|
55
|
+
cookieMap: Record<string, any>;
|
|
56
56
|
[propsName: string]: any;
|
|
57
57
|
};
|
|
58
|
+
response: {
|
|
59
|
+
setHeader: (key: string, value: any) => void;
|
|
60
|
+
status: (code: number) => void;
|
|
61
|
+
};
|
|
58
62
|
redirection: { url?: string; status?: number };
|
|
59
63
|
distDir: string;
|
|
60
64
|
template: string;
|
|
@@ -88,4 +92,5 @@ export interface ISAppContext {
|
|
|
88
92
|
server?: any;
|
|
89
93
|
serverPkg?: any;
|
|
90
94
|
}[];
|
|
95
|
+
[key: string]: unknown;
|
|
91
96
|
}
|