@modern-js/runtime 1.0.0-rc.8 → 1.0.0-rc.9
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 +16 -0
- package/dist/js/modern/cli/index.js +1 -1
- package/dist/js/modern/exports/model.js +1 -0
- package/dist/js/node/cli/index.js +1 -1
- package/dist/js/node/exports/model.js +2 -0
- package/dist/js/treeshaking/cli/index.js +1 -1
- package/dist/js/treeshaking/exports/model.js +1 -0
- package/dist/types/exports/model.d.ts +1 -0
- package/package.json +10 -10
- package/src/cli/index.ts +1 -1
- package/src/exports/model.ts +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @modern-js/runtime
|
|
2
2
|
|
|
3
|
+
## 1.0.0-rc.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 224f7fe: fix server route match
|
|
8
|
+
- 204c626: feat: initial
|
|
9
|
+
- Updated dependencies [224f7fe]
|
|
10
|
+
- Updated dependencies [204c626]
|
|
11
|
+
- @modern-js/core@1.0.0-rc.9
|
|
12
|
+
- @modern-js/plugin-router@1.0.0-rc.9
|
|
13
|
+
- @modern-js/plugin-ssr@1.0.0-rc.9
|
|
14
|
+
- @modern-js/plugin-state@1.0.0-rc.9
|
|
15
|
+
- @modern-js/runtime-core@1.0.0-rc.9
|
|
16
|
+
- @modern-js/bff-runtime@1.0.0-rc.9
|
|
17
|
+
- @modern-js/utils@1.0.0-rc.9
|
|
18
|
+
|
|
3
19
|
## 1.0.0-rc.8
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -4,7 +4,7 @@ import { PLUGIN_SCHEMAS, createRuntimeExportsUtils } from '@modern-js/utils';
|
|
|
4
4
|
|
|
5
5
|
const useInternalDirectory = () => {
|
|
6
6
|
try {
|
|
7
|
-
return useAppContext().
|
|
7
|
+
return useAppContext().internalDirectory;
|
|
8
8
|
} catch (_unused) {
|
|
9
9
|
return path.join(process.cwd(), 'node_modules/.modern-js');
|
|
10
10
|
}
|
|
@@ -15,7 +15,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
15
15
|
|
|
16
16
|
const useInternalDirectory = () => {
|
|
17
17
|
try {
|
|
18
|
-
return (0, _core.useAppContext)().
|
|
18
|
+
return (0, _core.useAppContext)().internalDirectory;
|
|
19
19
|
} catch (_unused) {
|
|
20
20
|
return _path.default.join(process.cwd(), 'node_modules/.modern-js');
|
|
21
21
|
}
|
|
@@ -4,7 +4,7 @@ import { PLUGIN_SCHEMAS, createRuntimeExportsUtils } from '@modern-js/utils';
|
|
|
4
4
|
|
|
5
5
|
var useInternalDirectory = function useInternalDirectory() {
|
|
6
6
|
try {
|
|
7
|
-
return useAppContext().
|
|
7
|
+
return useAppContext().internalDirectory;
|
|
8
8
|
} catch (_unused) {
|
|
9
9
|
return path.join(process.cwd(), 'node_modules/.modern-js');
|
|
10
10
|
}
|
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.9",
|
|
4
4
|
"jsnext:source": "./src/index.ts",
|
|
5
5
|
"types": "./type.d.ts",
|
|
6
6
|
"main": "./dist/js/node/index.js",
|
|
@@ -96,13 +96,13 @@
|
|
|
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/core": "^1.0.0-rc.
|
|
101
|
-
"@modern-js/plugin-router": "^1.0.0-rc.
|
|
102
|
-
"@modern-js/plugin-ssr": "^1.0.0-rc.
|
|
103
|
-
"@modern-js/plugin-state": "^1.0.0-rc.
|
|
104
|
-
"@modern-js/runtime-core": "^1.0.0-rc.
|
|
105
|
-
"@modern-js/utils": "^1.0.0-rc.
|
|
99
|
+
"@modern-js/bff-runtime": "^1.0.0-rc.9",
|
|
100
|
+
"@modern-js/core": "^1.0.0-rc.9",
|
|
101
|
+
"@modern-js/plugin-router": "^1.0.0-rc.9",
|
|
102
|
+
"@modern-js/plugin-ssr": "^1.0.0-rc.9",
|
|
103
|
+
"@modern-js/plugin-state": "^1.0.0-rc.9",
|
|
104
|
+
"@modern-js/runtime-core": "^1.0.0-rc.9",
|
|
105
|
+
"@modern-js/utils": "^1.0.0-rc.9",
|
|
106
106
|
"@types/loadable__component": "^5.13.4",
|
|
107
107
|
"@types/react-helmet": "^6.1.2",
|
|
108
108
|
"@types/styled-components": "^5.1.13",
|
|
@@ -115,8 +115,8 @@
|
|
|
115
115
|
"@types/react": "^17",
|
|
116
116
|
"@types/react-dom": "^17",
|
|
117
117
|
"typescript": "^4",
|
|
118
|
-
"@modern-js/plugin-testing": "^1.0.0-rc.
|
|
119
|
-
"@modern-js/module-tools": "^1.0.0-rc.
|
|
118
|
+
"@modern-js/plugin-testing": "^1.0.0-rc.9",
|
|
119
|
+
"@modern-js/module-tools": "^1.0.0-rc.9"
|
|
120
120
|
},
|
|
121
121
|
"sideEffects": false,
|
|
122
122
|
"modernConfig": {},
|
package/src/cli/index.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { PLUGIN_SCHEMAS, createRuntimeExportsUtils } from '@modern-js/utils';
|
|
|
4
4
|
|
|
5
5
|
const useInternalDirectory = () => {
|
|
6
6
|
try {
|
|
7
|
-
return useAppContext().
|
|
7
|
+
return useAppContext().internalDirectory;
|
|
8
8
|
} catch {
|
|
9
9
|
return path.join(process.cwd(), 'node_modules/.modern-js');
|
|
10
10
|
}
|
package/src/exports/model.ts
CHANGED