@modern-js/server 2.18.0 → 2.19.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,28 @@
|
|
|
1
1
|
# @modern-js/server
|
|
2
2
|
|
|
3
|
+
## 2.19.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 1134fe2: chore(deps): bump webpack from 5.76.2 to 5.82.1
|
|
8
|
+
|
|
9
|
+
chore(deps): 将 webpack 从 5.76.2 升级至 5.82.1
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [1134fe2]
|
|
12
|
+
- @modern-js/utils@2.19.0
|
|
13
|
+
- @modern-js/prod-server@2.19.0
|
|
14
|
+
- @modern-js/server-utils@2.19.0
|
|
15
|
+
- @modern-js/types@2.19.0
|
|
16
|
+
|
|
17
|
+
## 2.18.1
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- @modern-js/prod-server@2.18.1
|
|
22
|
+
- @modern-js/server-utils@2.18.1
|
|
23
|
+
- @modern-js/types@2.18.1
|
|
24
|
+
- @modern-js/utils@2.18.1
|
|
25
|
+
|
|
3
26
|
## 2.18.0
|
|
4
27
|
|
|
5
28
|
### Patch Changes
|
|
@@ -11,9 +11,8 @@ const _path = /* @__PURE__ */ _interop_require_default(require("path"));
|
|
|
11
11
|
const _https = require("https");
|
|
12
12
|
const _utils = require("@modern-js/utils");
|
|
13
13
|
const _prodserver = require("@modern-js/prod-server");
|
|
14
|
-
const _constants = require("@modern-js/utils/constants");
|
|
15
14
|
const _lodash = require("@modern-js/utils/lodash");
|
|
16
|
-
const
|
|
15
|
+
const _constants = require("../constants");
|
|
17
16
|
const _mock = require("../dev-tools/mock");
|
|
18
17
|
const _register = require("../dev-tools/register");
|
|
19
18
|
const _watcher = /* @__PURE__ */ _interop_require_wildcard(require("../dev-tools/watcher"));
|
|
@@ -79,7 +78,7 @@ function _interop_require_wildcard(obj, nodeInterop) {
|
|
|
79
78
|
class ModernDevServer extends _prodserver.ModernServer {
|
|
80
79
|
getDevOptions(options) {
|
|
81
80
|
const devOptions = typeof options.dev === "boolean" ? {} : options.dev;
|
|
82
|
-
const defaultOptions = (0,
|
|
81
|
+
const defaultOptions = (0, _constants.getDefaultDevOptions)();
|
|
83
82
|
return (0, _lodash.merge)(defaultOptions, devOptions);
|
|
84
83
|
}
|
|
85
84
|
addMiddlewareHandler(handlers) {
|
|
@@ -274,7 +273,7 @@ class ModernDevServer extends _prodserver.ModernServer {
|
|
|
274
273
|
delete require.cache[filepath];
|
|
275
274
|
}
|
|
276
275
|
});
|
|
277
|
-
const loadable = _path.default.join(distDir,
|
|
276
|
+
const loadable = _path.default.join(distDir, _utils.LOADABLE_STATS_FILE);
|
|
278
277
|
if (require.cache[loadable]) {
|
|
279
278
|
delete require.cache[loadable];
|
|
280
279
|
}
|
|
@@ -335,9 +335,8 @@ var __generator = function(thisArg, body) {
|
|
|
335
335
|
import { createServer } from "http";
|
|
336
336
|
import path from "path";
|
|
337
337
|
import { createServer as createHttpsServer } from "https";
|
|
338
|
-
import { API_DIR, SERVER_BUNDLE_DIRECTORY, SERVER_DIR, SHARED_DIR } from "@modern-js/utils";
|
|
338
|
+
import { API_DIR, SERVER_BUNDLE_DIRECTORY, SERVER_DIR, SHARED_DIR, LOADABLE_STATS_FILE } from "@modern-js/utils";
|
|
339
339
|
import { createProxyHandler, ModernServer, AGGRED_DIR } from "@modern-js/prod-server";
|
|
340
|
-
import { LOADABLE_STATS_FILE } from "@modern-js/utils/constants";
|
|
341
340
|
import { merge as deepMerge } from "@modern-js/utils/lodash";
|
|
342
341
|
import { getDefaultDevOptions } from "../constants";
|
|
343
342
|
import { createMockHandler } from "../dev-tools/mock";
|
|
@@ -14,9 +14,8 @@ function _define_property(obj, key, value) {
|
|
|
14
14
|
import { createServer } from "http";
|
|
15
15
|
import path from "path";
|
|
16
16
|
import { createServer as createHttpsServer } from "https";
|
|
17
|
-
import { API_DIR, SERVER_BUNDLE_DIRECTORY, SERVER_DIR, SHARED_DIR } from "@modern-js/utils";
|
|
17
|
+
import { API_DIR, SERVER_BUNDLE_DIRECTORY, SERVER_DIR, SHARED_DIR, LOADABLE_STATS_FILE } from "@modern-js/utils";
|
|
18
18
|
import { createProxyHandler, ModernServer, AGGRED_DIR } from "@modern-js/prod-server";
|
|
19
|
-
import { LOADABLE_STATS_FILE } from "@modern-js/utils/constants";
|
|
20
19
|
import { merge as deepMerge } from "@modern-js/utils/lodash";
|
|
21
20
|
import { getDefaultDevOptions } from "../constants";
|
|
22
21
|
import { createMockHandler } from "../dev-tools/mock";
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "2.
|
|
18
|
+
"version": "2.19.0",
|
|
19
19
|
"jsnext:source": "./src/index.ts",
|
|
20
20
|
"types": "./dist/types/index.d.ts",
|
|
21
21
|
"main": "./dist/cjs/index.js",
|
|
@@ -45,10 +45,10 @@
|
|
|
45
45
|
"minimatch": "^3.0.4",
|
|
46
46
|
"path-to-regexp": "^6.2.0",
|
|
47
47
|
"ws": "^8.2.0",
|
|
48
|
-
"@modern-js/prod-server": "2.
|
|
49
|
-
"@modern-js/server-utils": "2.
|
|
50
|
-
"@modern-js/types": "2.
|
|
51
|
-
"@modern-js/utils": "2.
|
|
48
|
+
"@modern-js/prod-server": "2.19.0",
|
|
49
|
+
"@modern-js/server-utils": "2.19.0",
|
|
50
|
+
"@modern-js/types": "2.19.0",
|
|
51
|
+
"@modern-js/utils": "2.19.0"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@types/connect-history-api-fallback": "^1.3.5",
|
|
@@ -61,11 +61,11 @@
|
|
|
61
61
|
"ts-node": "^10.1.0",
|
|
62
62
|
"tsconfig-paths": "4.1.1",
|
|
63
63
|
"typescript": "^4",
|
|
64
|
-
"webpack": "^5.
|
|
64
|
+
"webpack": "^5.82.1",
|
|
65
65
|
"websocket": "^1",
|
|
66
|
-
"@modern-js/server-core": "2.
|
|
67
|
-
"@scripts/build": "2.
|
|
68
|
-
"@scripts/jest-config": "2.
|
|
66
|
+
"@modern-js/server-core": "2.19.0",
|
|
67
|
+
"@scripts/build": "2.19.0",
|
|
68
|
+
"@scripts/jest-config": "2.19.0"
|
|
69
69
|
},
|
|
70
70
|
"peerDependencies": {
|
|
71
71
|
"devcert": "^1.0.0",
|