@modern-js/plugin-router-v5 2.56.1 → 2.56.3-alpha.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.
@@ -25,9 +25,9 @@ var import_jsx_runtime = require("react/jsx-runtime");
|
|
25
25
|
var import_react = require("react");
|
26
26
|
var import_history = require("history");
|
27
27
|
var import_react_router_dom = require("react-router-dom");
|
28
|
-
var import_runtime = require("@
|
28
|
+
var import_runtime = require("@meta/runtime");
|
29
29
|
var import_parsed = require("@modern-js/runtime-utils/parsed");
|
30
|
-
var import_context = require("@
|
30
|
+
var import_context = require("@meta/runtime/context");
|
31
31
|
var import_utils = require("./utils");
|
32
32
|
var import_hooks = require("./hooks");
|
33
33
|
const routerPlugin = ({ serverBase = [], history: customHistory, supportHtml5History = true, routesConfig, createRoutes, historyOptions = {} }) => {
|
@@ -3,9 +3,9 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
3
|
import { useContext } from "react";
|
4
4
|
import { createBrowserHistory, createHashHistory } from "history";
|
5
5
|
import { Router, StaticRouter, useRouteMatch, useLocation, useHistory } from "react-router-dom";
|
6
|
-
import { RuntimeReactContext, isBrowser } from "@
|
6
|
+
import { RuntimeReactContext, isBrowser } from "@meta/runtime";
|
7
7
|
import { parsedJSONFromElement } from "@modern-js/runtime-utils/parsed";
|
8
|
-
import { getGlobalLayoutApp, getGlobalRoutes } from "@
|
8
|
+
import { getGlobalLayoutApp, getGlobalRoutes } from "@meta/runtime/context";
|
9
9
|
import { renderRoutes, getLocation, urlJoin } from "./utils";
|
10
10
|
import { modifyRoutesHook } from "./hooks";
|
11
11
|
var routerPlugin = function(param) {
|
@@ -2,9 +2,9 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useContext } from "react";
|
3
3
|
import { createBrowserHistory, createHashHistory } from "history";
|
4
4
|
import { Router, StaticRouter, useRouteMatch, useLocation, useHistory } from "react-router-dom";
|
5
|
-
import { RuntimeReactContext, isBrowser } from "@
|
5
|
+
import { RuntimeReactContext, isBrowser } from "@meta/runtime";
|
6
6
|
import { parsedJSONFromElement } from "@modern-js/runtime-utils/parsed";
|
7
|
-
import { getGlobalLayoutApp, getGlobalRoutes } from "@
|
7
|
+
import { getGlobalLayoutApp, getGlobalRoutes } from "@meta/runtime/context";
|
8
8
|
import { renderRoutes, getLocation, urlJoin } from "./utils";
|
9
9
|
import { modifyRoutesHook } from "./hooks";
|
10
10
|
const routerPlugin = ({ serverBase = [], history: customHistory, supportHtml5History = true, routesConfig, createRoutes, historyOptions = {} }) => {
|
package/package.json
CHANGED
@@ -15,7 +15,7 @@
|
|
15
15
|
"modern",
|
16
16
|
"modern.js"
|
17
17
|
],
|
18
|
-
"version": "2.56.
|
18
|
+
"version": "2.56.3-alpha.0",
|
19
19
|
"jsnext:source": "./src/index.ts",
|
20
20
|
"types": "./dist/types/cli/index.d.ts",
|
21
21
|
"main": "./dist/cjs/cli/index.js",
|
@@ -59,15 +59,15 @@
|
|
59
59
|
"history": "^4.7.9",
|
60
60
|
"react-router-dom": "^5.3.4",
|
61
61
|
"@swc/helpers": "0.5.3",
|
62
|
-
"@modern-js/
|
63
|
-
"@modern-js/utils": "2.56.
|
64
|
-
"@modern-js/
|
65
|
-
"@modern-js/plugin": "2.56.
|
62
|
+
"@modern-js/types": "2.56.2",
|
63
|
+
"@modern-js/runtime-utils": "2.56.2",
|
64
|
+
"@modern-js/utils": "2.56.2",
|
65
|
+
"@modern-js/plugin": "2.56.2"
|
66
66
|
},
|
67
67
|
"peerDependencies": {
|
68
68
|
"react": ">=17",
|
69
69
|
"react-dom": ">=17",
|
70
|
-
"@modern-js/runtime": "^2.56.
|
70
|
+
"@modern-js/runtime": "^2.56.2"
|
71
71
|
},
|
72
72
|
"devDependencies": {
|
73
73
|
"@testing-library/react": "^13.4.0",
|
@@ -79,17 +79,16 @@
|
|
79
79
|
"react-dom": "^18",
|
80
80
|
"ts-jest": "^29.1.0",
|
81
81
|
"typescript": "^5",
|
82
|
-
"@modern-js/app-tools": "2.56.
|
83
|
-
"@modern-js/core": "2.56.
|
84
|
-
"@scripts/build": "2.56.
|
85
|
-
"@
|
86
|
-
"@
|
82
|
+
"@modern-js/app-tools": "2.56.2",
|
83
|
+
"@modern-js/core": "2.56.2",
|
84
|
+
"@scripts/build": "2.56.2",
|
85
|
+
"@scripts/jest-config": "2.56.2",
|
86
|
+
"@modern-js/runtime": "2.56.3-alpha.0"
|
87
87
|
},
|
88
88
|
"sideEffects": false,
|
89
89
|
"publishConfig": {
|
90
90
|
"registry": "https://registry.npmjs.org/",
|
91
|
-
"access": "public"
|
92
|
-
"provenance": true
|
91
|
+
"access": "public"
|
93
92
|
},
|
94
93
|
"scripts": {
|
95
94
|
"dev": "modern-lib build --watch",
|