@modern-js/server 1.22.4 → 1.22.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
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @modern-js/server
|
|
2
2
|
|
|
3
|
+
## 1.22.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 727ab43: chore(devServer): make hmr client protocol configurable
|
|
8
|
+
|
|
9
|
+
chore(devServer): 支持配置 hmr client protocol
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [cc2d4fc]
|
|
12
|
+
- @modern-js/prod-server@1.22.5
|
|
13
|
+
- @modern-js/server-utils@1.22.5
|
|
14
|
+
- @modern-js/types@1.22.5
|
|
15
|
+
- @modern-js/utils@1.22.5
|
|
16
|
+
|
|
3
17
|
## 1.22.4
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -11,10 +11,11 @@ export default class DevServerPlugin {
|
|
|
11
11
|
const {
|
|
12
12
|
client
|
|
13
13
|
} = this.options;
|
|
14
|
+
const protocol = client !== null && client !== void 0 && client.protocol ? `&protocol=${client.protocol}` : '';
|
|
14
15
|
const host = client !== null && client !== void 0 && client.host ? `&host=${client.host}` : '';
|
|
15
16
|
const path = client !== null && client !== void 0 && client.path ? `&path=${client.path}` : '';
|
|
16
17
|
const port = client !== null && client !== void 0 && client.port ? `&port=${client.port}` : '';
|
|
17
|
-
const clientEntry = `${require.resolve("./hmr-client")}?${host}${path}${port}`; // use a hook to add entries if available
|
|
18
|
+
const clientEntry = `${require.resolve("./hmr-client")}?${host}${path}${port}${protocol}`; // use a hook to add entries if available
|
|
18
19
|
|
|
19
20
|
new compiler.webpack.EntryPlugin(compiler.context, clientEntry, {
|
|
20
21
|
name: undefined
|
|
@@ -18,10 +18,11 @@ class DevServerPlugin {
|
|
|
18
18
|
const {
|
|
19
19
|
client
|
|
20
20
|
} = this.options;
|
|
21
|
+
const protocol = client !== null && client !== void 0 && client.protocol ? `&protocol=${client.protocol}` : '';
|
|
21
22
|
const host = client !== null && client !== void 0 && client.host ? `&host=${client.host}` : '';
|
|
22
23
|
const path = client !== null && client !== void 0 && client.path ? `&path=${client.path}` : '';
|
|
23
24
|
const port = client !== null && client !== void 0 && client.port ? `&port=${client.port}` : '';
|
|
24
|
-
const clientEntry = `${require.resolve("./hmr-client")}?${host}${path}${port}`; // use a hook to add entries if available
|
|
25
|
+
const clientEntry = `${require.resolve("./hmr-client")}?${host}${path}${port}${protocol}`; // use a hook to add entries if available
|
|
25
26
|
|
|
26
27
|
new compiler.webpack.EntryPlugin(compiler.context, clientEntry, {
|
|
27
28
|
name: undefined
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"modern",
|
|
12
12
|
"modern.js"
|
|
13
13
|
],
|
|
14
|
-
"version": "1.22.
|
|
14
|
+
"version": "1.22.5",
|
|
15
15
|
"jsnext:source": "./src/index.ts",
|
|
16
16
|
"types": "./dist/types/index.d.ts",
|
|
17
17
|
"main": "./dist/js/node/index.js",
|
|
@@ -35,10 +35,10 @@
|
|
|
35
35
|
"minimatch": "^3.0.4",
|
|
36
36
|
"path-to-regexp": "^6.2.0",
|
|
37
37
|
"ws": "^8.2.0",
|
|
38
|
-
"@modern-js/prod-server": "1.22.
|
|
39
|
-
"@modern-js/server-utils": "1.22.
|
|
40
|
-
"@modern-js/types": "1.22.
|
|
41
|
-
"@modern-js/utils": "1.22.
|
|
38
|
+
"@modern-js/prod-server": "1.22.5",
|
|
39
|
+
"@modern-js/server-utils": "1.22.5",
|
|
40
|
+
"@modern-js/types": "1.22.5",
|
|
41
|
+
"@modern-js/utils": "1.22.5"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@types/connect-history-api-fallback": "^1.3.5",
|
|
@@ -53,10 +53,10 @@
|
|
|
53
53
|
"typescript": "^4",
|
|
54
54
|
"webpack": "^5.74.0",
|
|
55
55
|
"websocket": "^1",
|
|
56
|
-
"@modern-js/core": "1.22.
|
|
57
|
-
"@modern-js/server-core": "1.22.
|
|
58
|
-
"@scripts/build": "1.22.
|
|
59
|
-
"@scripts/jest-config": "1.22.
|
|
56
|
+
"@modern-js/core": "1.22.5",
|
|
57
|
+
"@modern-js/server-core": "1.22.5",
|
|
58
|
+
"@scripts/build": "1.22.5",
|
|
59
|
+
"@scripts/jest-config": "1.22.5"
|
|
60
60
|
},
|
|
61
61
|
"peerDependencies": {
|
|
62
62
|
"ts-node": "^10.1.0",
|