@modern-js/server-core 2.21.1 → 2.22.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,14 @@
1
1
  # @modern-js/server-plugin
2
2
 
3
+ ## 2.22.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [3d48836]
8
+ - Updated dependencies [5050e8e]
9
+ - @modern-js/utils@2.22.0
10
+ - @modern-js/plugin@2.22.0
11
+
3
12
  ## 2.21.1
4
13
 
5
14
  ### Patch Changes
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
4
4
  });
5
5
  Object.defineProperty(exports, "loadPlugins", {
6
6
  enumerable: true,
7
- get: () => loadPlugins
7
+ get: function() {
8
+ return loadPlugins;
9
+ }
8
10
  });
9
11
  const _utils = require("@modern-js/utils");
10
12
  const _plugin = require("./plugin");
@@ -10,14 +10,30 @@ function _export(target, all) {
10
10
  });
11
11
  }
12
12
  _export(exports, {
13
- AppContext: () => AppContext,
14
- setAppContext: () => setAppContext,
15
- ConfigContext: () => ConfigContext,
16
- useConfigContext: () => useConfigContext,
17
- useAppContext: () => useAppContext,
18
- createServerManager: () => createServerManager,
19
- serverManager: () => serverManager,
20
- createPlugin: () => createPlugin
13
+ AppContext: function() {
14
+ return AppContext;
15
+ },
16
+ setAppContext: function() {
17
+ return setAppContext;
18
+ },
19
+ ConfigContext: function() {
20
+ return ConfigContext;
21
+ },
22
+ useConfigContext: function() {
23
+ return useConfigContext;
24
+ },
25
+ useAppContext: function() {
26
+ return useAppContext;
27
+ },
28
+ createServerManager: function() {
29
+ return createServerManager;
30
+ },
31
+ serverManager: function() {
32
+ return serverManager;
33
+ },
34
+ createPlugin: function() {
35
+ return createPlugin;
36
+ }
21
37
  });
22
38
  const _plugin = require("@modern-js/plugin");
23
39
  const gather = (0, _plugin.createParallelWorkflow)();
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "2.21.1",
18
+ "version": "2.22.0",
19
19
  "jsnext:source": "./src/index.ts",
20
20
  "types": "./dist/types/index.d.ts",
21
21
  "main": "./dist/cjs/index.js",
@@ -33,8 +33,8 @@
33
33
  },
34
34
  "dependencies": {
35
35
  "@swc/helpers": "0.5.1",
36
- "@modern-js/plugin": "2.21.1",
37
- "@modern-js/utils": "2.21.1"
36
+ "@modern-js/plugin": "2.22.0",
37
+ "@modern-js/utils": "2.22.0"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@types/jest": "^29",
@@ -43,10 +43,10 @@
43
43
  "jest": "^29",
44
44
  "ts-jest": "^29.1.0",
45
45
  "typescript": "^5",
46
- "@modern-js/types": "2.21.1",
47
- "@modern-js/babel-preset-app": "2.21.1",
48
- "@scripts/jest-config": "2.21.1",
49
- "@scripts/build": "2.21.1"
46
+ "@modern-js/types": "2.22.0",
47
+ "@modern-js/babel-preset-app": "2.22.0",
48
+ "@scripts/build": "2.22.0",
49
+ "@scripts/jest-config": "2.22.0"
50
50
  },
51
51
  "sideEffects": false,
52
52
  "publishConfig": {