@modern-js/plugin-data-loader 0.0.0-next-1686655458975 → 0.0.0-next-1686665391379
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,6 +1,6 @@
|
|
|
1
1
|
# @modern-js/plugin-data-loader
|
|
2
2
|
|
|
3
|
-
## 0.0.0-next-
|
|
3
|
+
## 0.0.0-next-1686665391379
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
@@ -14,10 +14,12 @@
|
|
|
14
14
|
|
|
15
15
|
test(utils): 复用 vitest 的 snapshot serializer
|
|
16
16
|
|
|
17
|
+
- e5259fb34: fix: absoluteEntryDir should support directory entry
|
|
18
|
+
fix: absoluteEntryDir 应该支持配置目录 entry,这里 document 会使用
|
|
17
19
|
- Updated dependencies [7e6fb5fc1]
|
|
18
20
|
- Updated dependencies [a7a7ad779]
|
|
19
21
|
- Updated dependencies [6dec7c2a1]
|
|
20
|
-
- @modern-js/utils@0.0.0-next-
|
|
22
|
+
- @modern-js/utils@0.0.0-next-1686665391379
|
|
21
23
|
|
|
22
24
|
## 2.22.1
|
|
23
25
|
|
|
@@ -18,7 +18,7 @@ _export(exports, {
|
|
|
18
18
|
}
|
|
19
19
|
});
|
|
20
20
|
const _pathtoregexp = require("path-to-regexp");
|
|
21
|
-
const
|
|
21
|
+
const _router = require("@modern-js/utils/runtime/router");
|
|
22
22
|
const _constants = require("../common/constants");
|
|
23
23
|
const _data = require("./data");
|
|
24
24
|
const getRequestUrl = ({ params, request, routeId }) => {
|
|
@@ -36,7 +36,7 @@ const handleRedirectResponse = (res) => {
|
|
|
36
36
|
const { headers } = res;
|
|
37
37
|
const location = headers.get("X-Modernjs-Redirect");
|
|
38
38
|
if (location) {
|
|
39
|
-
throw (0,
|
|
39
|
+
throw (0, _router.redirect)(location);
|
|
40
40
|
}
|
|
41
41
|
return res;
|
|
42
42
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator";
|
|
2
2
|
import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator";
|
|
3
3
|
import { compile } from "path-to-regexp";
|
|
4
|
-
import { redirect } from "
|
|
4
|
+
import { redirect } from "@modern-js/utils/runtime/router";
|
|
5
5
|
import { LOADER_ID_PARAM, DIRECT_PARAM, CONTENT_TYPE_DEFERRED } from "../common/constants";
|
|
6
6
|
import { parseDeferredReadableStream } from "./data";
|
|
7
7
|
export var getRequestUrl = function(param) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { compile } from "path-to-regexp";
|
|
2
|
-
import { redirect } from "
|
|
2
|
+
import { redirect } from "@modern-js/utils/runtime/router";
|
|
3
3
|
import { LOADER_ID_PARAM, DIRECT_PARAM, CONTENT_TYPE_DEFERRED } from "../common/constants";
|
|
4
4
|
import { parseDeferredReadableStream } from "./data";
|
|
5
5
|
export const getRequestUrl = ({ params, request, routeId }) => {
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "0.0.0-next-
|
|
18
|
+
"version": "0.0.0-next-1686665391379",
|
|
19
19
|
"engines": {
|
|
20
20
|
"node": ">=14.17.6"
|
|
21
21
|
},
|
|
@@ -57,9 +57,8 @@
|
|
|
57
57
|
"@babel/core": "^7.21.8",
|
|
58
58
|
"@remix-run/node": "^1.12.0",
|
|
59
59
|
"path-to-regexp": "^6.2.0",
|
|
60
|
-
"react-router-dom": "^6.8.1",
|
|
61
60
|
"@swc/helpers": "0.5.1",
|
|
62
|
-
"@modern-js/utils": "0.0.0-next-
|
|
61
|
+
"@modern-js/utils": "0.0.0-next-1686665391379"
|
|
63
62
|
},
|
|
64
63
|
"devDependencies": {
|
|
65
64
|
"@types/babel__core": "^7.20.0",
|
|
@@ -76,16 +75,14 @@
|
|
|
76
75
|
"webpack-chain": "^6.5.1",
|
|
77
76
|
"react": "^18",
|
|
78
77
|
"react-dom": "^18",
|
|
79
|
-
"
|
|
80
|
-
"@modern-js/core": "0.0.0-next-
|
|
81
|
-
"@
|
|
82
|
-
"@modern-js/types": "0.0.0-next-
|
|
83
|
-
"@scripts/
|
|
84
|
-
"@scripts/jest-config": "0.0.0-next-1686655458975"
|
|
78
|
+
"@modern-js/core": "0.0.0-next-1686665391379",
|
|
79
|
+
"@modern-js/server-core": "0.0.0-next-1686665391379",
|
|
80
|
+
"@scripts/build": "0.0.0-next-1686665391379",
|
|
81
|
+
"@modern-js/types": "0.0.0-next-1686665391379",
|
|
82
|
+
"@scripts/jest-config": "0.0.0-next-1686665391379"
|
|
85
83
|
},
|
|
86
84
|
"peerDependencies": {
|
|
87
|
-
"react": ">=17.0.0"
|
|
88
|
-
"react-router-dom": "^6.8.1"
|
|
85
|
+
"react": ">=17.0.0"
|
|
89
86
|
},
|
|
90
87
|
"sideEffects": false,
|
|
91
88
|
"publishConfig": {
|