@modern-js/server-core 2.13.4 → 2.15.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,36 @@
1
1
  # @modern-js/server-plugin
2
2
 
3
+ ## 2.15.0
4
+
5
+ ### Patch Changes
6
+
7
+ - @modern-js/plugin@2.15.0
8
+ - @modern-js/utils@2.15.0
9
+
10
+ ## 2.14.0
11
+
12
+ ### Patch Changes
13
+
14
+ - 8a3c693: chore(server): no longer replace globalVars when compiler is babel
15
+
16
+ chore(server): 进行 babel compile 时不再替换 globalVars
17
+
18
+ - 9321bef: feat: adjust server.worker config to deploy.worker.ssr
19
+
20
+ feat: 调整 server.worker 为 deploy.worker.ssr
21
+
22
+ - 60a81d0: feat: add ssr.inlineScript for use inline json instead inline script when ssr
23
+ feat: 添加 ssr.inlineScript 用于在 ssr 模式下使用内联 json 而不是内联脚本
24
+ - Updated dependencies [4779152]
25
+ - Updated dependencies [9321bef]
26
+ - Updated dependencies [9b45c58]
27
+ - Updated dependencies [52d0cb1]
28
+ - Updated dependencies [60a81d0]
29
+ - Updated dependencies [dacef96]
30
+ - Updated dependencies [16399fd]
31
+ - @modern-js/utils@2.14.0
32
+ - @modern-js/plugin@2.14.0
33
+
3
34
  ## 2.13.4
4
35
 
5
36
  ### Patch Changes
@@ -9,6 +9,7 @@ export type Routes = Record<string, Route>;
9
9
  export type SSR = boolean | {
10
10
  forceCSR?: boolean;
11
11
  mode?: SSRMode;
12
+ inlineScript?: boolean;
12
13
  };
13
14
  export type SSRByEntries = Record<string, SSR>;
14
15
  export interface ServerUserConfig {
@@ -24,7 +25,6 @@ export interface ServerUserConfig {
24
25
  watchOptions?: WatchOptions;
25
26
  compiler?: 'babel' | 'typescript';
26
27
  enableFrameworkExt?: boolean;
27
- worker?: boolean;
28
28
  }
29
29
  export type ServerNormalizedConfig = ServerUserConfig;
30
30
  export {};
@@ -1,15 +1,6 @@
1
1
  import type { Alias } from '@modern-js/utils';
2
2
  import type { ChainedConfig } from './share';
3
- type JSONPrimitive = string | number | boolean | null | undefined;
4
- type JSONArray = Array<JSONValue>;
5
- type JSONObject = {
6
- [key: string]: JSONValue;
7
- };
8
- type JSONValue = JSONPrimitive | JSONObject | JSONArray;
9
3
  export interface SourceUserConfig {
10
4
  alias?: ChainedConfig<Alias>;
11
- define?: Record<string, any>;
12
- globalVars?: Record<string, JSONValue>;
13
5
  }
14
- export type SourceNormalizedConfig = SourceUserConfig;
15
- export {};
6
+ export type SourceNormalizedConfig = SourceUserConfig;
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "2.13.4",
14
+ "version": "2.15.0",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "types": "./dist/types/index.d.ts",
17
17
  "main": "./dist/cjs/index.js",
@@ -28,8 +28,8 @@
28
28
  }
29
29
  },
30
30
  "dependencies": {
31
- "@modern-js/plugin": "2.13.4",
32
- "@modern-js/utils": "2.13.4"
31
+ "@modern-js/plugin": "2.15.0",
32
+ "@modern-js/utils": "2.15.0"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@types/jest": "^29",
@@ -38,10 +38,10 @@
38
38
  "jest": "^29",
39
39
  "ts-jest": "^29.0.5",
40
40
  "typescript": "^4",
41
- "@modern-js/types": "2.13.4",
42
- "@modern-js/babel-preset-app": "2.13.4",
43
- "@scripts/build": "2.13.4",
44
- "@scripts/jest-config": "2.13.4"
41
+ "@modern-js/types": "2.15.0",
42
+ "@modern-js/babel-preset-app": "2.15.0",
43
+ "@scripts/build": "2.15.0",
44
+ "@scripts/jest-config": "2.15.0"
45
45
  },
46
46
  "sideEffects": false,
47
47
  "publishConfig": {