@modern-js/types 1.1.4 → 1.1.5-rc.0

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 CHANGED
@@ -1,5 +1,12 @@
1
1
  # @modern-js/types
2
2
 
3
+ ## 1.1.5-rc.0
4
+
5
+ ### Patch Changes
6
+
7
+ - e51b1db3: feat: support custom sdk, interceptor, headers for bff request
8
+ - @modern-js/plugin@1.1.2
9
+
3
10
  ## 1.1.4
4
11
 
5
12
  ### Patch Changes
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "1.1.4",
14
+ "version": "1.1.5-rc.0",
15
15
  "main": "",
16
16
  "types": "./index.d.ts",
17
17
  "dependencies": {
@@ -27,8 +27,8 @@
27
27
  "@types/node": "^14",
28
28
  "@types/react": "^17",
29
29
  "@types/react-dom": "^17",
30
- "@modern-js/plugin-testing": "^1.1.1",
31
- "@modern-js/module-tools": "^1.1.2"
30
+ "@modern-js/plugin-testing": "^1.2.2",
31
+ "@modern-js/module-tools": "^1.1.4"
32
32
  },
33
33
  "sideEffects": false,
34
34
  "publishConfig": {
@@ -44,3 +44,20 @@ export interface ModernServerContext {
44
44
 
45
45
  resHasHandled: () => boolean;
46
46
  }
47
+
48
+ export type BaseSSRServerContext = {
49
+ request: {
50
+ params: Record<string, string>;
51
+ pathname: string;
52
+ query: Record<string, string>;
53
+ headers: IncomingHttpHeaders;
54
+ cookie?: string;
55
+ };
56
+ redirection: { url?: string; status?: number };
57
+ distDir: string;
58
+ template: string;
59
+ entryName: string;
60
+ logger: Logger;
61
+ metrics?: Metrics;
62
+ loadableManifest?: string;
63
+ };