@modern-js/plugin-server 2.0.0-beta.1 → 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,70 @@
1
1
  # @modern-js/plugin-server
2
2
 
3
+ ## 2.0.0-beta.3
4
+
5
+ ### Major Changes
6
+
7
+ - dda38c9c3e: chore: v2
8
+
9
+ ### Patch Changes
10
+
11
+ - 3bbea92b2a: feat: support Hook、Middleware new API
12
+ feat: 支持 Hook、Middleware 的新 API
13
+ - Updated dependencies [9b915e0c10]
14
+ - Updated dependencies [d4e8e6f]
15
+ - Updated dependencies [6aca875]
16
+ - Updated dependencies [2e60319]
17
+ - Updated dependencies [92f0eade39]
18
+ - Updated dependencies [edd1cfb1af]
19
+ - Updated dependencies [cc971eabfc]
20
+ - Updated dependencies [5b9049f2e9]
21
+ - Updated dependencies [a8642da58f]
22
+ - Updated dependencies [92004d1906]
23
+ - Updated dependencies [b8bbe036c7]
24
+ - Updated dependencies [c2bb0f1]
25
+ - Updated dependencies [d5a31df781]
26
+ - Updated dependencies [dda38c9c3e]
27
+ - Updated dependencies [3bbea92b2a]
28
+ - Updated dependencies [b710adb]
29
+ - Updated dependencies [ea7cf06]
30
+ - Updated dependencies [bbe4c4a]
31
+ - Updated dependencies [e4558a0]
32
+ - Updated dependencies [abf3421a75]
33
+ - Updated dependencies [543be9558e]
34
+ - Updated dependencies [14b712da84]
35
+ - @modern-js/server-utils@2.0.0-beta.3
36
+ - @modern-js/utils@2.0.0-beta.3
37
+ - @modern-js/babel-compiler@2.0.0-beta.3
38
+
39
+ ## 2.0.0-beta.2
40
+
41
+ ### Major Changes
42
+
43
+ - dda38c9c3e: chore: v2
44
+
45
+ ### Patch Changes
46
+
47
+ - 3bbea92b2a: feat: support Hook、Middleware new API
48
+ feat: 支持 Hook、Middleware 的新 API
49
+ - Updated dependencies [9b915e0c10]
50
+ - Updated dependencies [92f0ead]
51
+ - Updated dependencies [edd1cfb1af]
52
+ - Updated dependencies [cc971eabfc]
53
+ - Updated dependencies [5b9049f2e9]
54
+ - Updated dependencies [a8642da58f]
55
+ - Updated dependencies [92004d1]
56
+ - Updated dependencies [b8bbe036c7]
57
+ - Updated dependencies [c2bb0f1]
58
+ - Updated dependencies [d5a31df781]
59
+ - Updated dependencies [dda38c9c3e]
60
+ - Updated dependencies [3bbea92b2a]
61
+ - Updated dependencies [abf3421a75]
62
+ - Updated dependencies [543be9558e]
63
+ - Updated dependencies [14b712da84]
64
+ - @modern-js/server-utils@2.0.0-beta.2
65
+ - @modern-js/utils@2.0.0-beta.2
66
+ - @modern-js/babel-compiler@2.0.0-beta.2
67
+
3
68
  ## 2.0.0-beta.1
4
69
 
5
70
  ### Major Changes
@@ -31,7 +31,6 @@ export default (() => ({
31
31
  } = modernConfig;
32
32
  const {
33
33
  alias,
34
- envVars,
35
34
  globalVars
36
35
  } = modernConfig.source;
37
36
  const {
@@ -41,7 +40,6 @@ export default (() => ({
41
40
  await compile(appDirectory, {
42
41
  server,
43
42
  alias,
44
- envVars,
45
43
  globalVars,
46
44
  babelConfig: babel
47
45
  }, {
@@ -38,7 +38,6 @@ var _default = () => ({
38
38
  } = modernConfig;
39
39
  const {
40
40
  alias,
41
- envVars,
42
41
  globalVars
43
42
  } = modernConfig.source;
44
43
  const {
@@ -48,7 +47,6 @@ var _default = () => ({
48
47
  await (0, _serverUtils.compile)(appDirectory, {
49
48
  server,
50
49
  alias,
51
- envVars,
52
50
  globalVars,
53
51
  babelConfig: babel
54
52
  }, {
@@ -15,7 +15,7 @@ export default (function () {
15
15
  },
16
16
  afterBuild: function afterBuild() {
17
17
  return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
18
- var _api$useAppContext, appDirectory, distDirectory, modernConfig, distDir, serverDir, sharedDir, tsconfigPath, sourceDirs, server, _modernConfig$source, alias, envVars, globalVars, babel;
18
+ var _api$useAppContext, appDirectory, distDirectory, modernConfig, distDir, serverDir, sharedDir, tsconfigPath, sourceDirs, server, _modernConfig$source, alias, globalVars, babel;
19
19
  return _regeneratorRuntime().wrap(function _callee$(_context) {
20
20
  while (1) {
21
21
  switch (_context.prev = _context.next) {
@@ -34,7 +34,7 @@ export default (function () {
34
34
  sourceDirs.push(sharedDir);
35
35
  }
36
36
  server = modernConfig.server;
37
- _modernConfig$source = modernConfig.source, alias = _modernConfig$source.alias, envVars = _modernConfig$source.envVars, globalVars = _modernConfig$source.globalVars;
37
+ _modernConfig$source = modernConfig.source, alias = _modernConfig$source.alias, globalVars = _modernConfig$source.globalVars;
38
38
  babel = modernConfig.tools.babel;
39
39
  if (!(sourceDirs.length > 0)) {
40
40
  _context.next = 15;
@@ -44,7 +44,6 @@ export default (function () {
44
44
  return compile(appDirectory, {
45
45
  server: server,
46
46
  alias: alias,
47
- envVars: envVars,
48
47
  globalVars: globalVars,
49
48
  babelConfig: babel
50
49
  }, {
@@ -1,3 +1,7 @@
1
1
  import type { CliPlugin } from '@modern-js/core';
2
- declare const _default: () => CliPlugin;
2
+ import { UserConfig } from '@modern-js/server-core';
3
+ declare const _default: () => CliPlugin<{
4
+ userConfig: UserConfig;
5
+ normalizedConfig: Required<UserConfig>;
6
+ }>;
3
7
  export default _default;
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "2.0.0-beta.1",
14
+ "version": "2.0.0-beta.3",
15
15
  "types": "./dist/types/server.d.ts",
16
16
  "jsnext:source": "./src/server.ts",
17
17
  "main": "./dist/js/node/server.js",
@@ -48,20 +48,20 @@
48
48
  },
49
49
  "dependencies": {
50
50
  "@babel/runtime": "^7.18.0",
51
- "@modern-js/babel-compiler": "2.0.0-beta.1",
52
- "@modern-js/server-utils": "2.0.0-beta.1",
53
- "@modern-js/utils": "2.0.0-beta.1"
51
+ "@modern-js/babel-compiler": "2.0.0-beta.3",
52
+ "@modern-js/server-utils": "2.0.0-beta.3",
53
+ "@modern-js/utils": "2.0.0-beta.3"
54
54
  },
55
55
  "devDependencies": {
56
56
  "typescript": "^4",
57
57
  "@types/jest": "^27",
58
58
  "@types/node": "^14",
59
59
  "jest": "^27",
60
- "@modern-js/server-core": "2.0.0-beta.1",
61
- "@modern-js/core": "2.0.0-beta.1",
62
- "@scripts/build": "2.0.0-beta.1",
63
- "@modern-js/types": "2.0.0-beta.1",
64
- "@scripts/jest-config": "2.0.0-beta.1"
60
+ "@modern-js/server-core": "2.0.0-beta.3",
61
+ "@modern-js/core": "2.0.0-beta.3",
62
+ "@scripts/build": "2.0.0-beta.3",
63
+ "@modern-js/types": "2.0.0-beta.3",
64
+ "@scripts/jest-config": "2.0.0-beta.3"
65
65
  },
66
66
  "sideEffects": [
67
67
  "*.css",
@@ -74,9 +74,9 @@
74
74
  "registry": "https://registry.npmjs.org/"
75
75
  },
76
76
  "scripts": {
77
- "dev": "modern build --watch",
78
- "build": "modern build",
79
- "new": "modern new",
77
+ "dev": "modern-lib build --watch",
78
+ "build": "modern-lib build",
79
+ "new": "modern-lib new",
80
80
  "test": "jest --passWithNoTests"
81
81
  }
82
82
  }