@modern-js/prod-server 2.0.0-beta.2 → 2.0.0-beta.3

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,68 @@
1
1
  # @modern-js/prod-server
2
2
 
3
+ ## 2.0.0-beta.3
4
+
5
+ ### Major Changes
6
+
7
+ - dda38c9c3e: chore: v2
8
+
9
+ ### Minor Changes
10
+
11
+ - c9e800d39a: feat: support React18 streaming SSR
12
+ feat: 支持 React18 流式 SSR
13
+ - 543be9558e: feat: compile server loader and support handle loader request
14
+ feat: 编译 server loader 并支持处理 loader 的请求
15
+
16
+ ### Patch Changes
17
+
18
+ - d032d49e09: export createHandle
19
+ 导出 createHandle 函数
20
+ - 15bf09d9c8: feat: support completely custom server, export render() api for render single page
21
+ feat: 支持完全自定义 Server,导出 render() 方法用来渲染单个页面
22
+ - cc971eabfc: refactor: move server plugin load logic in `@modern-js/core`
23
+ refactor:移除在 `@modern-js/core` 中的 server 插件加载逻辑
24
+ - 40ed5874c6: feat: inject css chunk into html for streaming ssr
25
+ feat: streaming ssr 返回的 html 注入 css chunk
26
+ - 102d32e4ba: feat(server): add `req` and `res` to SSR context
27
+
28
+ feat(server): 添加 `req` 和 `res` 到 SSR context 中
29
+
30
+ - 3bbea92b2a: feat: support Hook、Middleware new API
31
+ feat: 支持 Hook、Middleware 的新 API
32
+ - 73cd29dd9f: fix(server): add favicon fallback handler
33
+
34
+ fix(server): 添加 favicon 兜底处理逻辑
35
+
36
+ - cce8ece: fix: handle some `TODO` & `FIXME`, change some tests
37
+ fix: 处理一些 `TODO` 和 `FIXME`, 修改了一些 tests
38
+ - 18aaf42249: fix: fix server loader redirects
39
+ fix: 修复 server loader 重定向错误
40
+ - 14b712da84: fix: use consistent alias type and default value across packages
41
+
42
+ fix: 在各个包中使用一致的 alias 类型定义和默认值
43
+
44
+ - Updated dependencies [6aca875]
45
+ - Updated dependencies [15bf09d9c8]
46
+ - Updated dependencies [2e60319]
47
+ - Updated dependencies [92f0eade39]
48
+ - Updated dependencies [edd1cfb1af]
49
+ - Updated dependencies [cc971eabfc]
50
+ - Updated dependencies [5b9049f2e9]
51
+ - Updated dependencies [92004d1906]
52
+ - Updated dependencies [b8bbe036c7]
53
+ - Updated dependencies [d5a31df781]
54
+ - Updated dependencies [dda38c9c3e]
55
+ - Updated dependencies [3bbea92b2a]
56
+ - Updated dependencies [b710adb]
57
+ - Updated dependencies [ea7cf06]
58
+ - Updated dependencies [bbe4c4a]
59
+ - Updated dependencies [e4558a0]
60
+ - Updated dependencies [abf3421a75]
61
+ - Updated dependencies [543be9558e]
62
+ - Updated dependencies [14b712da84]
63
+ - @modern-js/utils@2.0.0-beta.3
64
+ - @modern-js/server-core@2.0.0-beta.3
65
+
3
66
  ## 2.0.0-beta.2
4
67
 
5
68
  ### Major Changes
@@ -110,9 +110,7 @@ export class ModernServer {
110
110
 
111
111
  // Only work when without setting `assetPrefix`.
112
112
  // Setting `assetPrefix` means these resources should be uploaded to CDN.
113
- const staticPathRegExp = getStaticReg(this.conf.output || {},
114
- // FIXME:
115
- this.conf.html);
113
+ const staticPathRegExp = getStaticReg(this.conf.output || {}, this.conf.html);
116
114
  this.staticFileHandler = createStaticFileHandler([{
117
115
  path: staticPathRegExp,
118
116
  target: distDir
@@ -118,9 +118,7 @@ class ModernServer {
118
118
 
119
119
  // Only work when without setting `assetPrefix`.
120
120
  // Setting `assetPrefix` means these resources should be uploaded to CDN.
121
- const staticPathRegExp = (0, _utils2.getStaticReg)(this.conf.output || {},
122
- // FIXME:
123
- this.conf.html);
121
+ const staticPathRegExp = (0, _utils2.getStaticReg)(this.conf.output || {}, this.conf.html);
124
122
  this.staticFileHandler = (0, _serveFile.createStaticFileHandler)([{
125
123
  path: staticPathRegExp,
126
124
  target: distDir
@@ -121,9 +121,7 @@ export var ModernServer = /*#__PURE__*/function () {
121
121
  case 14:
122
122
  // Only work when without setting `assetPrefix`.
123
123
  // Setting `assetPrefix` means these resources should be uploaded to CDN.
124
- staticPathRegExp = getStaticReg(this.conf.output || {},
125
- // FIXME:
126
- this.conf.html);
124
+ staticPathRegExp = getStaticReg(this.conf.output || {}, this.conf.html);
127
125
  this.staticFileHandler = createStaticFileHandler([{
128
126
  path: staticPathRegExp,
129
127
  target: distDir
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "2.0.0-beta.2",
14
+ "version": "2.0.0-beta.3",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "types": "./dist/types/index.d.ts",
17
17
  "main": "./dist/js/node/index.js",
@@ -59,8 +59,8 @@
59
59
  "path-to-regexp": "^6.2.0",
60
60
  "serve-static": "^1.14.1",
61
61
  "ua-parser-js": "^0.7.28",
62
- "@modern-js/utils": "2.0.0-beta.2",
63
- "@modern-js/server-core": "2.0.0-beta.2"
62
+ "@modern-js/utils": "2.0.0-beta.3",
63
+ "@modern-js/server-core": "2.0.0-beta.3"
64
64
  },
65
65
  "devDependencies": {
66
66
  "@types/cookie": "^0.4.1",
@@ -76,10 +76,10 @@
76
76
  "node-mocks-http": "^1.11.0",
77
77
  "portfinder": "^1.0.28",
78
78
  "typescript": "^4",
79
- "@modern-js/types": "2.0.0-beta.2",
80
- "@modern-js/server-core": "2.0.0-beta.2",
81
- "@scripts/jest-config": "2.0.0-beta.2",
82
- "@scripts/build": "2.0.0-beta.2"
79
+ "@modern-js/types": "2.0.0-beta.3",
80
+ "@modern-js/server-core": "2.0.0-beta.3",
81
+ "@scripts/jest-config": "2.0.0-beta.3",
82
+ "@scripts/build": "2.0.0-beta.3"
83
83
  },
84
84
  "sideEffects": false,
85
85
  "modernConfig": {