@modern-js/types 1.2.1 → 1.3.2

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,31 @@
1
1
  # @modern-js/types
2
2
 
3
+ ## 1.3.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 6891e4c2: add addDefineTypes define
8
+
9
+ ## 1.3.1
10
+
11
+ ### Patch Changes
12
+
13
+ - 78279953: compiler entry bug fix and dev build console
14
+ - 4d72edea: support dev compiler by entry
15
+
16
+ ## 1.3.0
17
+
18
+ ### Minor Changes
19
+
20
+ - ec4dbffb: feat: support as a pure api service
21
+
22
+ ### Patch Changes
23
+
24
+ - 816fd721: support more server context
25
+ - bfbea9a7: support multi base url and dynamic base url
26
+ - 24f616ca: feat: support custom meta info
27
+ - 272cab15: refactor server plugin manager
28
+
3
29
  ## 1.2.1
4
30
 
5
31
  ### Patch Changes
package/cli/index.d.ts CHANGED
@@ -44,6 +44,7 @@ export interface HtmlTemplates {
44
44
  }
45
45
 
46
46
  export interface IAppContext {
47
+ metaName: string; // name for generating conventional constants, such as .modern-js
47
48
  appDirectory: string;
48
49
  configFile: string | false;
49
50
  ip?: string;
@@ -61,8 +62,12 @@ export interface IAppContext {
61
62
  serverPath?: any;
62
63
  }[];
63
64
  entrypoints: Entrypoint[];
65
+ checkedEntries: string[];
64
66
  serverRoutes: ServerRoute[];
65
67
  htmlTemplates: HtmlTemplates;
68
+ existSrc: boolean;
69
+ internalDirAlias: string;
70
+ internalSrcAlias: string;
66
71
  }
67
72
 
68
73
  export interface Hooks {
@@ -125,4 +130,5 @@ export interface Hooks {
125
130
  entrypoint: Entrypoint;
126
131
  code: string;
127
132
  }>;
133
+ addDefineTypes: AsyncWaterfall<void>;
128
134
  }
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "1.2.1",
14
+ "version": "1.3.2",
15
15
  "types": "./index.d.ts",
16
16
  "dependencies": {
17
17
  "@modern-js/plugin": "^1.2.1",
@@ -36,9 +36,7 @@
36
36
  "sideEffects": false,
37
37
  "publishConfig": {
38
38
  "registry": "https://registry.npmjs.org/",
39
- "access": "public",
40
- "main": "",
41
- "types": "./index.d.ts"
39
+ "access": "public"
42
40
  },
43
41
  "scripts": {
44
42
  "test": "jest --passWithNoTests"
@@ -51,7 +51,9 @@ export type BaseSSRServerContext = {
51
51
  pathname: string;
52
52
  query: Record<string, string>;
53
53
  headers: IncomingHttpHeaders;
54
+ host: string;
54
55
  cookie?: string;
56
+ [propsName: string]: any;
55
57
  };
56
58
  redirection: { url?: string; status?: number };
57
59
  distDir: string;
@@ -60,4 +62,5 @@ export type BaseSSRServerContext = {
60
62
  logger: Logger;
61
63
  metrics?: Metrics;
62
64
  loadableManifest?: string;
65
+ cacheConfig?: any;
63
66
  };