@modern-js/plugin-server 0.0.0-next-20221216022956 → 0.0.0-next-20221216030247
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 +42 -4
- package/dist/js/modern/cli.js +0 -5
- package/dist/js/node/cli.js +0 -5
- package/dist/js/treeshaking/cli.js +0 -8
- package/dist/types/cli.d.ts +5 -2
- package/package.json +17 -14
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @modern-js/plugin-server
|
|
2
2
|
|
|
3
|
-
## 0.0.0-next-
|
|
3
|
+
## 0.0.0-next-20221216030247
|
|
4
4
|
|
|
5
5
|
### Major Changes
|
|
6
6
|
|
|
@@ -34,9 +34,47 @@
|
|
|
34
34
|
- Updated dependencies [abf3421a7]
|
|
35
35
|
- Updated dependencies [543be9558]
|
|
36
36
|
- Updated dependencies [14b712da8]
|
|
37
|
-
- @modern-js/server-utils@0.0.0-next-
|
|
38
|
-
- @modern-js/utils@0.0.0-next-
|
|
39
|
-
- @modern-js/babel-compiler@0.0.0-next-
|
|
37
|
+
- @modern-js/server-utils@0.0.0-next-20221216030247
|
|
38
|
+
- @modern-js/utils@0.0.0-next-20221216030247
|
|
39
|
+
- @modern-js/babel-compiler@0.0.0-next-20221216030247
|
|
40
|
+
|
|
41
|
+
## 2.0.0-beta.4
|
|
42
|
+
|
|
43
|
+
### Major Changes
|
|
44
|
+
|
|
45
|
+
- dda38c9c3e: chore: v2
|
|
46
|
+
|
|
47
|
+
### Patch Changes
|
|
48
|
+
|
|
49
|
+
- 3bbea92b2a: feat: support Hook、Middleware new API
|
|
50
|
+
feat: 支持 Hook、Middleware 的新 API
|
|
51
|
+
- Updated dependencies [9b915e0c10]
|
|
52
|
+
- Updated dependencies [7879e8f]
|
|
53
|
+
- Updated dependencies [d4e8e6fb90]
|
|
54
|
+
- Updated dependencies [6aca875]
|
|
55
|
+
- Updated dependencies [2e6031955e]
|
|
56
|
+
- Updated dependencies [7b7d12c]
|
|
57
|
+
- Updated dependencies [92f0eade39]
|
|
58
|
+
- Updated dependencies [edd1cfb1af]
|
|
59
|
+
- Updated dependencies [cc971eabfc]
|
|
60
|
+
- Updated dependencies [5b9049f2e9]
|
|
61
|
+
- Updated dependencies [a8642da58f]
|
|
62
|
+
- Updated dependencies [92004d1906]
|
|
63
|
+
- Updated dependencies [b8bbe036c7]
|
|
64
|
+
- Updated dependencies [c2bb0f1745]
|
|
65
|
+
- Updated dependencies [d5a31df781]
|
|
66
|
+
- Updated dependencies [dda38c9c3e]
|
|
67
|
+
- Updated dependencies [3bbea92b2a]
|
|
68
|
+
- Updated dependencies [b710adb843]
|
|
69
|
+
- Updated dependencies [ea7cf06]
|
|
70
|
+
- Updated dependencies [bbe4c4a]
|
|
71
|
+
- Updated dependencies [e4558a0]
|
|
72
|
+
- Updated dependencies [abf3421a75]
|
|
73
|
+
- Updated dependencies [543be9558e]
|
|
74
|
+
- Updated dependencies [14b712da84]
|
|
75
|
+
- @modern-js/server-utils@2.0.0-beta.4
|
|
76
|
+
- @modern-js/utils@2.0.0-beta.4
|
|
77
|
+
- @modern-js/babel-compiler@2.0.0-beta.4
|
|
40
78
|
|
|
41
79
|
## 2.0.0-beta.3
|
|
42
80
|
|
package/dist/js/modern/cli.js
CHANGED
|
@@ -22,7 +22,6 @@ import fs from "fs";
|
|
|
22
22
|
import path from "path";
|
|
23
23
|
import { compile } from "@modern-js/server-utils";
|
|
24
24
|
import { SHARED_DIR, SERVER_DIR } from "@modern-js/utils";
|
|
25
|
-
import { SERVER_PLUGIN_SERVER } from "@modern-js/utils/constants";
|
|
26
25
|
const TS_CONFIG_FILENAME = "tsconfig.json";
|
|
27
26
|
var cli_default = () => ({
|
|
28
27
|
name: "@modern-js/plugin-server",
|
|
@@ -65,10 +64,6 @@ var cli_default = () => ({
|
|
|
65
64
|
);
|
|
66
65
|
}
|
|
67
66
|
});
|
|
68
|
-
},
|
|
69
|
-
collectServerPlugins({ plugins }) {
|
|
70
|
-
plugins.push(SERVER_PLUGIN_SERVER);
|
|
71
|
-
return { plugins };
|
|
72
67
|
}
|
|
73
68
|
})
|
|
74
69
|
});
|
package/dist/js/node/cli.js
CHANGED
|
@@ -30,7 +30,6 @@ var import_fs = __toESM(require("fs"));
|
|
|
30
30
|
var import_path = __toESM(require("path"));
|
|
31
31
|
var import_server_utils = require("@modern-js/server-utils");
|
|
32
32
|
var import_utils = require("@modern-js/utils");
|
|
33
|
-
var import_constants = require("@modern-js/utils/constants");
|
|
34
33
|
var __async = (__this, __arguments, generator) => {
|
|
35
34
|
return new Promise((resolve, reject) => {
|
|
36
35
|
var fulfilled = (value) => {
|
|
@@ -93,10 +92,6 @@ var cli_default = () => ({
|
|
|
93
92
|
);
|
|
94
93
|
}
|
|
95
94
|
});
|
|
96
|
-
},
|
|
97
|
-
collectServerPlugins({ plugins }) {
|
|
98
|
-
plugins.push(import_constants.SERVER_PLUGIN_SERVER);
|
|
99
|
-
return { plugins };
|
|
100
95
|
}
|
|
101
96
|
})
|
|
102
97
|
});
|
|
@@ -126,7 +126,6 @@ import fs from "fs";
|
|
|
126
126
|
import path from "path";
|
|
127
127
|
import { compile } from "@modern-js/server-utils";
|
|
128
128
|
import { SHARED_DIR, SERVER_DIR } from "@modern-js/utils";
|
|
129
|
-
import { SERVER_PLUGIN_SERVER } from "@modern-js/utils/constants";
|
|
130
129
|
var TS_CONFIG_FILENAME = "tsconfig.json";
|
|
131
130
|
var cli_default = function() {
|
|
132
131
|
return {
|
|
@@ -185,13 +184,6 @@ var cli_default = function() {
|
|
|
185
184
|
}
|
|
186
185
|
});
|
|
187
186
|
})();
|
|
188
|
-
},
|
|
189
|
-
collectServerPlugins: function collectServerPlugins(param) {
|
|
190
|
-
var plugins = param.plugins;
|
|
191
|
-
plugins.push(SERVER_PLUGIN_SERVER);
|
|
192
|
-
return {
|
|
193
|
-
plugins: plugins
|
|
194
|
-
};
|
|
195
187
|
}
|
|
196
188
|
};
|
|
197
189
|
}
|
package/dist/types/cli.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import type { CliPlugin } from '@modern-js/core';
|
|
2
|
-
import
|
|
2
|
+
import { UserConfig } from '@modern-js/server-core';
|
|
3
3
|
|
|
4
|
-
declare const _default: () => CliPlugin<
|
|
4
|
+
declare const _default: () => CliPlugin<{
|
|
5
|
+
userConfig: UserConfig;
|
|
6
|
+
normalizedConfig: Required<UserConfig>;
|
|
7
|
+
}>;
|
|
5
8
|
|
|
6
9
|
export default _default;
|
package/package.json
CHANGED
|
@@ -11,14 +11,18 @@
|
|
|
11
11
|
"modern",
|
|
12
12
|
"modern.js"
|
|
13
13
|
],
|
|
14
|
-
"version": "0.0.0-next-
|
|
14
|
+
"version": "0.0.0-next-20221216030247",
|
|
15
15
|
"types": "./dist/types/server.d.ts",
|
|
16
|
-
"jsnext:source": "./src/
|
|
17
|
-
"main": "./dist/js/node/
|
|
16
|
+
"jsnext:source": "./src/server.ts",
|
|
17
|
+
"main": "./dist/js/node/server.js",
|
|
18
18
|
"exports": {
|
|
19
19
|
".": {
|
|
20
|
-
"
|
|
21
|
-
|
|
20
|
+
"node": {
|
|
21
|
+
"jsnext:source": "./src/server.ts",
|
|
22
|
+
"import": "./dist/js/modern/server.js",
|
|
23
|
+
"require": "./dist/js/node/server.js"
|
|
24
|
+
},
|
|
25
|
+
"default": "./dist/js/treeshaking/server.js"
|
|
22
26
|
},
|
|
23
27
|
"./cli": {
|
|
24
28
|
"jsnext:source": "./src/cli.ts",
|
|
@@ -44,21 +48,20 @@
|
|
|
44
48
|
},
|
|
45
49
|
"dependencies": {
|
|
46
50
|
"@babel/runtime": "^7.18.0",
|
|
47
|
-
"@modern-js/babel-compiler": "0.0.0-next-
|
|
48
|
-
"@modern-js/server-utils": "0.0.0-next-
|
|
49
|
-
"@modern-js/utils": "0.0.0-next-
|
|
51
|
+
"@modern-js/babel-compiler": "0.0.0-next-20221216030247",
|
|
52
|
+
"@modern-js/server-utils": "0.0.0-next-20221216030247",
|
|
53
|
+
"@modern-js/utils": "0.0.0-next-20221216030247"
|
|
50
54
|
},
|
|
51
55
|
"devDependencies": {
|
|
52
56
|
"typescript": "^4",
|
|
53
57
|
"@types/jest": "^27",
|
|
54
58
|
"@types/node": "^14",
|
|
55
59
|
"jest": "^27",
|
|
56
|
-
"@modern-js/server-core": "0.0.0-next-
|
|
57
|
-
"@modern-js/
|
|
58
|
-
"@scripts/build": "0.0.0-next-
|
|
59
|
-
"@modern-js/
|
|
60
|
-
"@
|
|
61
|
-
"@scripts/jest-config": "0.0.0-next-20221216022956"
|
|
60
|
+
"@modern-js/server-core": "0.0.0-next-20221216030247",
|
|
61
|
+
"@modern-js/core": "0.0.0-next-20221216030247",
|
|
62
|
+
"@scripts/build": "0.0.0-next-20221216030247",
|
|
63
|
+
"@modern-js/types": "0.0.0-next-20221216030247",
|
|
64
|
+
"@scripts/jest-config": "0.0.0-next-20221216030247"
|
|
62
65
|
},
|
|
63
66
|
"sideEffects": [
|
|
64
67
|
"*.css",
|