@modern-js/plugin-data-loader 0.0.0-next-1686710299692 → 0.0.0-next-1686722870675
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,23 +1,26 @@
|
|
|
1
1
|
# @modern-js/plugin-data-loader
|
|
2
2
|
|
|
3
|
-
## 0.0.0-next-
|
|
3
|
+
## 0.0.0-next-1686722870675
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
|
-
-
|
|
7
|
+
- 7e6fb5fc1: chore: publishConfig add provenance config
|
|
8
8
|
|
|
9
9
|
chore: publishConfig 增加 provenance 配置
|
|
10
10
|
|
|
11
|
-
-
|
|
11
|
+
- a7a7ad779: chore: move some public code to the utils package
|
|
12
12
|
chore: 移动一些公共的代码到 utils 包
|
|
13
|
-
-
|
|
13
|
+
- 6dec7c2a1: test(utils): reuse the snapshot serializer of vitest config
|
|
14
14
|
|
|
15
15
|
test(utils): 复用 vitest 的 snapshot serializer
|
|
16
16
|
|
|
17
|
-
-
|
|
18
|
-
|
|
19
|
-
- Updated dependencies [
|
|
20
|
-
|
|
17
|
+
- e5259fb34: fix: absoluteEntryDir should support directory entry
|
|
18
|
+
fix: absoluteEntryDir 应该支持配置目录 entry,这里 document 会使用
|
|
19
|
+
- Updated dependencies [7e6fb5fc1]
|
|
20
|
+
- Updated dependencies [a7a7ad779]
|
|
21
|
+
- Updated dependencies [6dec7c2a1]
|
|
22
|
+
- Updated dependencies [c3216b5e0]
|
|
23
|
+
- @modern-js/utils@0.0.0-next-1686722870675
|
|
21
24
|
|
|
22
25
|
## 2.22.1
|
|
23
26
|
|
|
@@ -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-1686722870675",
|
|
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-1686722870675"
|
|
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
|
-
"@modern-js/
|
|
82
|
-
"@
|
|
83
|
-
"@scripts/build": "0.0.0-next-
|
|
84
|
-
"@scripts/jest-config": "0.0.0-next-1686710299692"
|
|
78
|
+
"@modern-js/core": "0.0.0-next-1686722870675",
|
|
79
|
+
"@modern-js/server-core": "0.0.0-next-1686722870675",
|
|
80
|
+
"@modern-js/types": "0.0.0-next-1686722870675",
|
|
81
|
+
"@scripts/jest-config": "0.0.0-next-1686722870675",
|
|
82
|
+
"@scripts/build": "0.0.0-next-1686722870675"
|
|
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": {
|