@modern-js/runtime-utils 2.58.1 → 2.58.3
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/dist/cjs/browser/nestedRoutes.js +1 -1
- package/dist/esm/browser/nestedRoutes.js +2 -2
- package/dist/esm-node/browser/nestedRoutes.js +2 -2
- package/dist/types/node/fileReader.d.ts +1 -1
- package/dist/types/node/loaderContext/createRequestCtx.d.ts +2 -2
- package/dist/types/node/storer/container.d.ts +1 -1
- package/dist/types/node/storer/storage.d.ts +1 -1
- package/dist/types/node/stream.d.ts +1 -1
- package/package.json +6 -5
|
@@ -23,9 +23,9 @@ __export(nestedRoutes_exports, {
|
|
|
23
23
|
});
|
|
24
24
|
module.exports = __toCommonJS(nestedRoutes_exports);
|
|
25
25
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
26
|
+
var import_constants = require("@modern-js/utils/universal/constants");
|
|
26
27
|
var import_react = require("react");
|
|
27
28
|
var import_react_router_dom = require("react-router-dom");
|
|
28
|
-
var import_constants = require("@modern-js/utils/universal/constants");
|
|
29
29
|
var import_time = require("../time");
|
|
30
30
|
const transformNestedRoutes = (routes, reporter) => {
|
|
31
31
|
const routeElements = [];
|
|
@@ -3,9 +3,9 @@ import { _ as _object_spread } from "@swc/helpers/_/_object_spread";
|
|
|
3
3
|
import { _ as _object_spread_props } from "@swc/helpers/_/_object_spread_props";
|
|
4
4
|
import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator";
|
|
5
5
|
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
6
|
-
import { Suspense } from "react";
|
|
7
|
-
import { createRoutesFromElements, Outlet, Route } from "react-router-dom";
|
|
8
6
|
import { LOADER_REPORTER_NAME } from "@modern-js/utils/universal/constants";
|
|
7
|
+
import { Suspense } from "react";
|
|
8
|
+
import { Outlet, Route, createRoutesFromElements } from "react-router-dom";
|
|
9
9
|
import { time } from "../time";
|
|
10
10
|
var transformNestedRoutes = function(routes, reporter) {
|
|
11
11
|
var routeElements = [];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { Suspense } from "react";
|
|
3
|
-
import { createRoutesFromElements, Outlet, Route } from "react-router-dom";
|
|
4
2
|
import { LOADER_REPORTER_NAME } from "@modern-js/utils/universal/constants";
|
|
3
|
+
import { Suspense } from "react";
|
|
4
|
+
import { Outlet, Route, createRoutesFromElements } from "react-router-dom";
|
|
5
5
|
import { time } from "../time";
|
|
6
6
|
const transformNestedRoutes = (routes, reporter) => {
|
|
7
7
|
const routeElements = [];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RequestPayload } from '@modern-js/types';
|
|
2
|
-
import { LoaderContext } from './createLoaderCtx';
|
|
1
|
+
import type { RequestPayload } from '@modern-js/types';
|
|
2
|
+
import type { LoaderContext } from './createLoaderCtx';
|
|
3
3
|
interface Get<P extends Record<string, unknown>> {
|
|
4
4
|
<Key extends keyof P>(key: Key): P[Key];
|
|
5
5
|
<T>(key: LoaderContext<T>): T;
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "2.58.
|
|
18
|
+
"version": "2.58.3",
|
|
19
19
|
"_comment": "Provide ESM and CJS exports, ESM is used by runtime package, for treeshaking",
|
|
20
20
|
"exports": {
|
|
21
21
|
"./router": {
|
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
"default": "./dist/esm/remixRouter.js"
|
|
30
30
|
},
|
|
31
31
|
"./browser": {
|
|
32
|
+
"types": "./dist/types/browser/index.d.ts",
|
|
32
33
|
"jsnext:source": "./src/browser/index.d.ts",
|
|
33
34
|
"require": "./dist/cjs/browser/index.js",
|
|
34
35
|
"default": "./dist/esm/browser/index.js"
|
|
@@ -130,7 +131,7 @@
|
|
|
130
131
|
"lru-cache": "^6.0.0",
|
|
131
132
|
"react-router-dom": "6.22.0",
|
|
132
133
|
"serialize-javascript": "^6.0.0",
|
|
133
|
-
"@modern-js/utils": "2.58.
|
|
134
|
+
"@modern-js/utils": "2.58.3"
|
|
134
135
|
},
|
|
135
136
|
"peerDependencies": {
|
|
136
137
|
"react": ">=17.0.0",
|
|
@@ -153,9 +154,9 @@
|
|
|
153
154
|
"react": "^18.2.0",
|
|
154
155
|
"react-dom": "^18.2.0",
|
|
155
156
|
"typescript": "^5",
|
|
156
|
-
"@
|
|
157
|
-
"@scripts/
|
|
158
|
-
"@
|
|
157
|
+
"@modern-js/types": "2.58.3",
|
|
158
|
+
"@scripts/jest-config": "2.58.3",
|
|
159
|
+
"@scripts/build": "2.58.3"
|
|
159
160
|
},
|
|
160
161
|
"sideEffects": false,
|
|
161
162
|
"scripts": {
|