@modern-js/runtime 1.0.0-rc.14 → 1.0.0-rc.19
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 +96 -0
- package/dist/js/modern/cli/index.js +2 -3
- package/dist/js/node/cli/index.js +4 -8
- package/dist/js/treeshaking/cli/index.js +2 -3
- package/package.json +11 -11
- package/src/cli/index.ts +9 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,101 @@
|
|
|
1
1
|
# @modern-js/runtime
|
|
2
2
|
|
|
3
|
+
## 1.0.0-rc.19
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 224f7fe: fix server route match
|
|
8
|
+
- 30ac27c: feat: add generator package description
|
|
9
|
+
- 204c626: feat: initial
|
|
10
|
+
- 63be0a5: fix: #118 #104
|
|
11
|
+
- Updated dependencies [224f7fe]
|
|
12
|
+
- Updated dependencies [30ac27c]
|
|
13
|
+
- Updated dependencies [204c626]
|
|
14
|
+
- Updated dependencies [63be0a5]
|
|
15
|
+
- @modern-js/core@1.0.0-rc.19
|
|
16
|
+
- @modern-js/plugin-router@1.0.0-rc.19
|
|
17
|
+
- @modern-js/plugin-ssr@1.0.0-rc.19
|
|
18
|
+
- @modern-js/plugin-state@1.0.0-rc.19
|
|
19
|
+
- @modern-js/runtime-core@1.0.0-rc.19
|
|
20
|
+
- @modern-js/bff-runtime@1.0.0-rc.19
|
|
21
|
+
- @modern-js/utils@1.0.0-rc.19
|
|
22
|
+
|
|
23
|
+
## 1.0.0-rc.18
|
|
24
|
+
|
|
25
|
+
### Patch Changes
|
|
26
|
+
|
|
27
|
+
- 224f7fe: fix server route match
|
|
28
|
+
- 30ac27c: feat: add generator package description
|
|
29
|
+
- 204c626: feat: initial
|
|
30
|
+
- 63be0a5: fix: #118 #104
|
|
31
|
+
- Updated dependencies [224f7fe]
|
|
32
|
+
- Updated dependencies [30ac27c]
|
|
33
|
+
- Updated dependencies [204c626]
|
|
34
|
+
- Updated dependencies [63be0a5]
|
|
35
|
+
- @modern-js/core@1.0.0-rc.18
|
|
36
|
+
- @modern-js/plugin-router@1.0.0-rc.18
|
|
37
|
+
- @modern-js/plugin-ssr@1.0.0-rc.18
|
|
38
|
+
- @modern-js/plugin-state@1.0.0-rc.18
|
|
39
|
+
- @modern-js/runtime-core@1.0.0-rc.18
|
|
40
|
+
- @modern-js/bff-runtime@1.0.0-rc.18
|
|
41
|
+
- @modern-js/utils@1.0.0-rc.18
|
|
42
|
+
|
|
43
|
+
## 1.0.0-rc.17
|
|
44
|
+
|
|
45
|
+
### Patch Changes
|
|
46
|
+
|
|
47
|
+
- 224f7fe: fix server route match
|
|
48
|
+
- 30ac27c: feat: add generator package description
|
|
49
|
+
- 204c626: feat: initial
|
|
50
|
+
- fix: #118 #104
|
|
51
|
+
- Updated dependencies [224f7fe]
|
|
52
|
+
- Updated dependencies [30ac27c]
|
|
53
|
+
- Updated dependencies [204c626]
|
|
54
|
+
- Updated dependencies [undefined]
|
|
55
|
+
- @modern-js/core@1.0.0-rc.17
|
|
56
|
+
- @modern-js/plugin-router@1.0.0-rc.17
|
|
57
|
+
- @modern-js/plugin-ssr@1.0.0-rc.17
|
|
58
|
+
- @modern-js/plugin-state@1.0.0-rc.17
|
|
59
|
+
- @modern-js/runtime-core@1.0.0-rc.17
|
|
60
|
+
- @modern-js/bff-runtime@1.0.0-rc.17
|
|
61
|
+
- @modern-js/utils@1.0.0-rc.17
|
|
62
|
+
|
|
63
|
+
## 1.0.0-rc.16
|
|
64
|
+
|
|
65
|
+
### Patch Changes
|
|
66
|
+
|
|
67
|
+
- 224f7fe: fix server route match
|
|
68
|
+
- 30ac27c: feat: add generator package description
|
|
69
|
+
- 204c626: feat: initial
|
|
70
|
+
- Updated dependencies [224f7fe]
|
|
71
|
+
- Updated dependencies [30ac27c]
|
|
72
|
+
- Updated dependencies [204c626]
|
|
73
|
+
- @modern-js/core@1.0.0-rc.16
|
|
74
|
+
- @modern-js/plugin-router@1.0.0-rc.16
|
|
75
|
+
- @modern-js/plugin-ssr@1.0.0-rc.16
|
|
76
|
+
- @modern-js/plugin-state@1.0.0-rc.16
|
|
77
|
+
- @modern-js/runtime-core@1.0.0-rc.16
|
|
78
|
+
- @modern-js/bff-runtime@1.0.0-rc.16
|
|
79
|
+
- @modern-js/utils@1.0.0-rc.16
|
|
80
|
+
|
|
81
|
+
## 1.0.0-rc.15
|
|
82
|
+
|
|
83
|
+
### Patch Changes
|
|
84
|
+
|
|
85
|
+
- 224f7fe: fix server route match
|
|
86
|
+
- 30ac27c: feat: add generator package description
|
|
87
|
+
- 204c626: feat: initial
|
|
88
|
+
- Updated dependencies [224f7fe]
|
|
89
|
+
- Updated dependencies [30ac27c]
|
|
90
|
+
- Updated dependencies [204c626]
|
|
91
|
+
- @modern-js/core@1.0.0-rc.15
|
|
92
|
+
- @modern-js/plugin-router@1.0.0-rc.15
|
|
93
|
+
- @modern-js/plugin-ssr@1.0.0-rc.15
|
|
94
|
+
- @modern-js/plugin-state@1.0.0-rc.15
|
|
95
|
+
- @modern-js/runtime-core@1.0.0-rc.15
|
|
96
|
+
- @modern-js/bff-runtime@1.0.0-rc.15
|
|
97
|
+
- @modern-js/utils@1.0.0-rc.15
|
|
98
|
+
|
|
3
99
|
## 1.0.0-rc.14
|
|
4
100
|
|
|
5
101
|
### Patch Changes
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import path from '
|
|
1
|
+
import { path, PLUGIN_SCHEMAS, createRuntimeExportsUtils, upath } from '@modern-js/utils';
|
|
2
2
|
import { createPlugin, usePlugins, useAppContext } from '@modern-js/core';
|
|
3
|
-
import { PLUGIN_SCHEMAS, createRuntimeExportsUtils } from '@modern-js/utils';
|
|
4
3
|
|
|
5
4
|
const useInternalDirectory = () => {
|
|
6
5
|
try {
|
|
@@ -11,7 +10,7 @@ const useInternalDirectory = () => {
|
|
|
11
10
|
}; // eslint-disable-next-line react-hooks/rules-of-hooks
|
|
12
11
|
|
|
13
12
|
|
|
14
|
-
usePlugins([require.resolve('@modern-js/plugin-state/cli'), require.resolve('@modern-js/plugin-router/cli'), require.resolve('@modern-js/plugin-ssr/cli')]);
|
|
13
|
+
usePlugins([upath.normalizeSafe(require.resolve('@modern-js/plugin-state/cli')), upath.normalizeSafe(require.resolve('@modern-js/plugin-router/cli')), upath.normalizeSafe(require.resolve('@modern-js/plugin-ssr/cli'))]);
|
|
15
14
|
export default createPlugin(() => {
|
|
16
15
|
let runtimeExportsUtils = {};
|
|
17
16
|
return {
|
|
@@ -5,24 +5,20 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
|
|
8
|
-
var _path = _interopRequireDefault(require("path"));
|
|
9
|
-
|
|
10
|
-
var _core = require("@modern-js/core");
|
|
11
|
-
|
|
12
8
|
var _utils = require("@modern-js/utils");
|
|
13
9
|
|
|
14
|
-
|
|
10
|
+
var _core = require("@modern-js/core");
|
|
15
11
|
|
|
16
12
|
const useInternalDirectory = () => {
|
|
17
13
|
try {
|
|
18
14
|
return (0, _core.useAppContext)().internalDirectory;
|
|
19
15
|
} catch (_unused) {
|
|
20
|
-
return
|
|
16
|
+
return _utils.path.join(process.cwd(), 'node_modules/.modern-js');
|
|
21
17
|
}
|
|
22
18
|
}; // eslint-disable-next-line react-hooks/rules-of-hooks
|
|
23
19
|
|
|
24
20
|
|
|
25
|
-
(0, _core.usePlugins)([require.resolve('@modern-js/plugin-state/cli'), require.resolve('@modern-js/plugin-router/cli'), require.resolve('@modern-js/plugin-ssr/cli')]);
|
|
21
|
+
(0, _core.usePlugins)([_utils.upath.normalizeSafe(require.resolve('@modern-js/plugin-state/cli')), _utils.upath.normalizeSafe(require.resolve('@modern-js/plugin-router/cli')), _utils.upath.normalizeSafe(require.resolve('@modern-js/plugin-ssr/cli'))]);
|
|
26
22
|
|
|
27
23
|
var _default = (0, _core.createPlugin)(() => {
|
|
28
24
|
let runtimeExportsUtils = {};
|
|
@@ -47,7 +43,7 @@ var _default = (0, _core.createPlugin)(() => {
|
|
|
47
43
|
},
|
|
48
44
|
|
|
49
45
|
addRuntimeExports() {
|
|
50
|
-
const runtimePackage =
|
|
46
|
+
const runtimePackage = _utils.path.resolve(__dirname, '../../../../');
|
|
51
47
|
|
|
52
48
|
runtimeExportsUtils.addExport(`export * from '${runtimePackage}'`);
|
|
53
49
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import path from '
|
|
1
|
+
import { path, PLUGIN_SCHEMAS, createRuntimeExportsUtils, upath } from '@modern-js/utils';
|
|
2
2
|
import { createPlugin, usePlugins, useAppContext } from '@modern-js/core';
|
|
3
|
-
import { PLUGIN_SCHEMAS, createRuntimeExportsUtils } from '@modern-js/utils';
|
|
4
3
|
|
|
5
4
|
var useInternalDirectory = function useInternalDirectory() {
|
|
6
5
|
try {
|
|
@@ -11,7 +10,7 @@ var useInternalDirectory = function useInternalDirectory() {
|
|
|
11
10
|
}; // eslint-disable-next-line react-hooks/rules-of-hooks
|
|
12
11
|
|
|
13
12
|
|
|
14
|
-
usePlugins([require.resolve('@modern-js/plugin-state/cli'), require.resolve('@modern-js/plugin-router/cli'), require.resolve('@modern-js/plugin-ssr/cli')]);
|
|
13
|
+
usePlugins([upath.normalizeSafe(require.resolve('@modern-js/plugin-state/cli')), upath.normalizeSafe(require.resolve('@modern-js/plugin-router/cli')), upath.normalizeSafe(require.resolve('@modern-js/plugin-ssr/cli'))]);
|
|
15
14
|
export default createPlugin(function () {
|
|
16
15
|
var runtimeExportsUtils = {};
|
|
17
16
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@modern-js/runtime",
|
|
3
|
-
"version": "1.0.0-rc.
|
|
3
|
+
"version": "1.0.0-rc.19",
|
|
4
4
|
"jsnext:source": "./src/index.ts",
|
|
5
5
|
"types": "./type.d.ts",
|
|
6
6
|
"main": "./dist/js/node/index.js",
|
|
@@ -96,12 +96,12 @@
|
|
|
96
96
|
"dependencies": {
|
|
97
97
|
"@babel/runtime": "^7",
|
|
98
98
|
"@loadable/component": "^5.15.0",
|
|
99
|
-
"@modern-js/bff-runtime": "^1.0.0-rc.
|
|
100
|
-
"@modern-js/plugin-router": "^1.0.0-rc.
|
|
101
|
-
"@modern-js/plugin-ssr": "^1.0.0-rc.
|
|
102
|
-
"@modern-js/plugin-state": "^1.0.0-rc.
|
|
103
|
-
"@modern-js/runtime-core": "^1.0.0-rc.
|
|
104
|
-
"@modern-js/utils": "^1.0.0-rc.
|
|
99
|
+
"@modern-js/bff-runtime": "^1.0.0-rc.19",
|
|
100
|
+
"@modern-js/plugin-router": "^1.0.0-rc.19",
|
|
101
|
+
"@modern-js/plugin-ssr": "^1.0.0-rc.19",
|
|
102
|
+
"@modern-js/plugin-state": "^1.0.0-rc.19",
|
|
103
|
+
"@modern-js/runtime-core": "^1.0.0-rc.19",
|
|
104
|
+
"@modern-js/utils": "^1.0.0-rc.19",
|
|
105
105
|
"@types/loadable__component": "^5.13.4",
|
|
106
106
|
"@types/react-helmet": "^6.1.2",
|
|
107
107
|
"@types/styled-components": "^5.1.13",
|
|
@@ -114,12 +114,12 @@
|
|
|
114
114
|
"@types/react": "^17",
|
|
115
115
|
"@types/react-dom": "^17",
|
|
116
116
|
"typescript": "^4",
|
|
117
|
-
"@modern-js/core": "^1.0.0-rc.
|
|
118
|
-
"@modern-js/plugin-testing": "^1.0.0-rc.
|
|
119
|
-
"@modern-js/module-tools": "^1.0.0-rc.
|
|
117
|
+
"@modern-js/core": "^1.0.0-rc.19",
|
|
118
|
+
"@modern-js/plugin-testing": "^1.0.0-rc.19",
|
|
119
|
+
"@modern-js/module-tools": "^1.0.0-rc.19"
|
|
120
120
|
},
|
|
121
121
|
"peerDependencies": {
|
|
122
|
-
"@modern-js/core": "^1.0.0-rc.
|
|
122
|
+
"@modern-js/core": "^1.0.0-rc.19"
|
|
123
123
|
},
|
|
124
124
|
"sideEffects": false,
|
|
125
125
|
"modernConfig": {},
|
package/src/cli/index.ts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import {
|
|
2
|
+
path,
|
|
3
|
+
PLUGIN_SCHEMAS,
|
|
4
|
+
createRuntimeExportsUtils,
|
|
5
|
+
upath,
|
|
6
|
+
} from '@modern-js/utils';
|
|
2
7
|
import { createPlugin, usePlugins, useAppContext } from '@modern-js/core';
|
|
3
|
-
import { PLUGIN_SCHEMAS, createRuntimeExportsUtils } from '@modern-js/utils';
|
|
4
8
|
|
|
5
9
|
const useInternalDirectory = () => {
|
|
6
10
|
try {
|
|
@@ -12,9 +16,9 @@ const useInternalDirectory = () => {
|
|
|
12
16
|
|
|
13
17
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
14
18
|
usePlugins([
|
|
15
|
-
require.resolve('@modern-js/plugin-state/cli'),
|
|
16
|
-
require.resolve('@modern-js/plugin-router/cli'),
|
|
17
|
-
require.resolve('@modern-js/plugin-ssr/cli'),
|
|
19
|
+
upath.normalizeSafe(require.resolve('@modern-js/plugin-state/cli')),
|
|
20
|
+
upath.normalizeSafe(require.resolve('@modern-js/plugin-router/cli')),
|
|
21
|
+
upath.normalizeSafe(require.resolve('@modern-js/plugin-ssr/cli')),
|
|
18
22
|
]);
|
|
19
23
|
|
|
20
24
|
export default createPlugin(
|