@modern-js/runtime 2.18.1 → 2.19.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,21 @@
1
1
  # @modern-js/runtime
2
2
 
3
+ ## 2.19.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 8a3a2e5: feat: support modifyRoutes hook for router v5
8
+ feat: 为 router v5 支持 modifyRoutes hook
9
+
10
+ ### Patch Changes
11
+
12
+ - 579d3d5: fix: config hook can't get nomarlized config
13
+ fix: config hook 不能拿到固定后的 config
14
+ - Updated dependencies [1134fe2]
15
+ - @modern-js/utils@2.19.0
16
+ - @modern-js/plugin@2.19.0
17
+ - @modern-js/types@2.19.0
18
+
3
19
  ## 2.18.1
4
20
 
5
21
  ### Patch Changes
@@ -42,7 +42,7 @@ const _default = () => {
42
42
  config() {
43
43
  const appContext = api.useAppContext();
44
44
  pluginsExportsUtils = (0, _utils.createRuntimeExportsUtils)(appContext.internalDirectory, "plugins");
45
- const userConfig = api.useResolvedConfigContext();
45
+ const userConfig = api.useConfigContext();
46
46
  const { bundlerType = "webpack" } = api.useAppContext();
47
47
  const babelConfig = (() => {
48
48
  if (bundlerType === "webpack") {
@@ -48,7 +48,7 @@ export default function() {
48
48
  config: function config() {
49
49
  var appContext = api.useAppContext();
50
50
  pluginsExportsUtils = createRuntimeExportsUtils(appContext.internalDirectory, "plugins");
51
- var userConfig = api.useResolvedConfigContext();
51
+ var userConfig = api.useConfigContext();
52
52
  var _api_useAppContext = api.useAppContext(), _api_useAppContext_bundlerType = _api_useAppContext.bundlerType, bundlerType = _api_useAppContext_bundlerType === void 0 ? "webpack" : _api_useAppContext_bundlerType;
53
53
  var babelConfig = function() {
54
54
  if (bundlerType === "webpack") {
@@ -29,7 +29,7 @@ export default () => {
29
29
  config() {
30
30
  const appContext = api.useAppContext();
31
31
  pluginsExportsUtils = createRuntimeExportsUtils(appContext.internalDirectory, "plugins");
32
- const userConfig = api.useResolvedConfigContext();
32
+ const userConfig = api.useConfigContext();
33
33
  const { bundlerType = "webpack" } = api.useAppContext();
34
34
  const babelConfig = (() => {
35
35
  if (bundlerType === "webpack") {
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "2.18.1",
18
+ "version": "2.19.0",
19
19
  "engines": {
20
20
  "node": ">=14.17.6"
21
21
  },
@@ -162,9 +162,9 @@
162
162
  "react-side-effect": "^2.1.1",
163
163
  "redux-logger": "^3.0.6",
164
164
  "styled-components": "^5.3.1",
165
- "@modern-js/plugin": "2.18.1",
166
- "@modern-js/types": "2.18.1",
167
- "@modern-js/utils": "2.18.1"
165
+ "@modern-js/plugin": "2.19.0",
166
+ "@modern-js/types": "2.19.0",
167
+ "@modern-js/utils": "2.19.0"
168
168
  },
169
169
  "peerDependencies": {
170
170
  "react": ">=17",
@@ -184,11 +184,11 @@
184
184
  "react-dom": "^18",
185
185
  "ts-jest": "^29.0.5",
186
186
  "typescript": "^4",
187
- "@modern-js/app-tools": "2.18.1",
188
- "@modern-js/core": "2.18.1",
189
- "@modern-js/server-core": "2.18.1",
190
- "@scripts/build": "2.18.1",
191
- "@scripts/jest-config": "2.18.1"
187
+ "@modern-js/app-tools": "2.19.0",
188
+ "@modern-js/core": "2.19.0",
189
+ "@modern-js/server-core": "2.19.0",
190
+ "@scripts/build": "2.19.0",
191
+ "@scripts/jest-config": "2.19.0"
192
192
  },
193
193
  "sideEffects": false,
194
194
  "modernConfig": {},