@modern-js/plugin-data-loader 0.0.0-next-20221220123827 → 0.0.0-next-20221220142415
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 +30 -30
- package/dist/types/server/index.d.ts +1 -1
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,50 +1,50 @@
|
|
|
1
1
|
# @modern-js/plugin-data-loader
|
|
2
2
|
|
|
3
|
-
## 0.0.0-next-
|
|
3
|
+
## 0.0.0-next-20221220142415
|
|
4
4
|
|
|
5
5
|
### Major Changes
|
|
6
6
|
|
|
7
|
-
-
|
|
7
|
+
- dda38c9c3: chore: v2
|
|
8
8
|
|
|
9
9
|
### Minor Changes
|
|
10
10
|
|
|
11
|
-
-
|
|
11
|
+
- b710adb84: feat: extract the data loader
|
|
12
12
|
feat: 提取 data loader
|
|
13
|
-
-
|
|
13
|
+
- 543be9558: feat: compile server loader and support handle loader request
|
|
14
14
|
feat: 编译 server loader 并支持处理 loader 的请求
|
|
15
15
|
|
|
16
16
|
### Patch Changes
|
|
17
17
|
|
|
18
|
-
-
|
|
18
|
+
- 6604f1b8b: feat: support router basename
|
|
19
19
|
feat: router 插件支持设置 basename
|
|
20
|
-
-
|
|
20
|
+
- 217c43a05: fix: should generate path correctly for data loader
|
|
21
21
|
fix: 应该生成正确的路径给 data loader
|
|
22
|
-
-
|
|
22
|
+
- 2e6031955: fix: some optimizations for router and loader
|
|
23
23
|
fix: 一些 router 和 loader 的优化
|
|
24
24
|
q
|
|
25
|
-
-
|
|
25
|
+
- ea7cf0625: chore: bump webpack/babel-loader/postcss-loader/tsconfig-paths
|
|
26
26
|
|
|
27
27
|
chore: 升级 webpack/babel-loader/postcss-loader/tsconfig-paths 版本
|
|
28
28
|
|
|
29
|
-
- Updated dependencies [
|
|
30
|
-
- Updated dependencies [
|
|
31
|
-
- Updated dependencies [
|
|
32
|
-
- Updated dependencies [
|
|
33
|
-
- Updated dependencies [
|
|
34
|
-
- Updated dependencies [
|
|
35
|
-
- Updated dependencies [
|
|
36
|
-
- Updated dependencies [
|
|
37
|
-
- Updated dependencies [
|
|
38
|
-
- Updated dependencies [
|
|
39
|
-
- Updated dependencies [
|
|
40
|
-
- Updated dependencies [
|
|
41
|
-
- Updated dependencies [
|
|
42
|
-
- Updated dependencies [
|
|
43
|
-
- Updated dependencies [
|
|
44
|
-
- Updated dependencies [
|
|
45
|
-
- Updated dependencies [
|
|
46
|
-
- Updated dependencies [
|
|
47
|
-
- Updated dependencies [
|
|
48
|
-
- Updated dependencies [
|
|
49
|
-
- @modern-js/utils@0.0.0-next-
|
|
50
|
-
- @modern-js/babel-compiler@0.0.0-next-
|
|
29
|
+
- Updated dependencies [7879e8f71]
|
|
30
|
+
- Updated dependencies [6aca87501]
|
|
31
|
+
- Updated dependencies [2e6031955]
|
|
32
|
+
- Updated dependencies [7b7d12cf8]
|
|
33
|
+
- Updated dependencies [92f0eade3]
|
|
34
|
+
- Updated dependencies [edd1cfb1a]
|
|
35
|
+
- Updated dependencies [cc971eabf]
|
|
36
|
+
- Updated dependencies [5b9049f2e]
|
|
37
|
+
- Updated dependencies [92004d190]
|
|
38
|
+
- Updated dependencies [b8bbe036c]
|
|
39
|
+
- Updated dependencies [d5a31df78]
|
|
40
|
+
- Updated dependencies [dda38c9c3]
|
|
41
|
+
- Updated dependencies [3bbea92b2]
|
|
42
|
+
- Updated dependencies [b710adb84]
|
|
43
|
+
- Updated dependencies [ea7cf0625]
|
|
44
|
+
- Updated dependencies [bbe4c4ab6]
|
|
45
|
+
- Updated dependencies [e4558a0bc]
|
|
46
|
+
- Updated dependencies [abf3421a7]
|
|
47
|
+
- Updated dependencies [543be9558]
|
|
48
|
+
- Updated dependencies [14b712da8]
|
|
49
|
+
- @modern-js/utils@0.0.0-next-20221220142415
|
|
50
|
+
- @modern-js/babel-compiler@0.0.0-next-20221220142415
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ServerPlugin } from '@modern-js/server-core';
|
|
2
2
|
import type { ModernServerContext, ServerRoute } from '@modern-js/types';
|
|
3
3
|
import { Response as NodeResponse } from '@remix-run/node';
|
|
4
|
-
export
|
|
4
|
+
export type ServerContext = Pick<ModernServerContext, 'req' | 'res' | 'params' | 'headers' | 'method' | 'url' | 'host' | 'protocol' | 'origin' | 'href' | 'path' | 'query'>;
|
|
5
5
|
export declare function isRedirectResponse(response: NodeResponse): boolean;
|
|
6
6
|
export declare function isResponse(value: any): value is NodeResponse;
|
|
7
7
|
export declare const getPathWithoutEntry: (pathname: string, entryPath: string) => string;
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"modern",
|
|
12
12
|
"modern.js"
|
|
13
13
|
],
|
|
14
|
-
"version": "0.0.0-next-
|
|
14
|
+
"version": "0.0.0-next-20221220142415",
|
|
15
15
|
"jsnext:source": "./src/index.ts",
|
|
16
16
|
"types": "./dist/types/index.d.ts",
|
|
17
17
|
"main": "./dist/js/node/index.js",
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
"@remix-run/node": "^1.7.0",
|
|
44
44
|
"path-to-regexp": "^6.2.0",
|
|
45
45
|
"react-router-dom": "^6.4.4",
|
|
46
|
-
"@modern-js/babel-compiler": "0.0.0-next-
|
|
47
|
-
"@modern-js/utils": "0.0.0-next-
|
|
46
|
+
"@modern-js/babel-compiler": "0.0.0-next-20221220142415",
|
|
47
|
+
"@modern-js/utils": "0.0.0-next-20221220142415"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@types/babel__core": "^7.1.15",
|
|
@@ -59,11 +59,11 @@
|
|
|
59
59
|
"typescript": "^4",
|
|
60
60
|
"webpack": "^5.75.0",
|
|
61
61
|
"webpack-chain": "^6.5.1",
|
|
62
|
-
"@modern-js/core": "0.0.0-next-
|
|
63
|
-
"@modern-js/server-core": "0.0.0-next-
|
|
64
|
-
"@modern-js/types": "0.0.0-next-
|
|
65
|
-
"@scripts/
|
|
66
|
-
"@scripts/
|
|
62
|
+
"@modern-js/core": "0.0.0-next-20221220142415",
|
|
63
|
+
"@modern-js/server-core": "0.0.0-next-20221220142415",
|
|
64
|
+
"@modern-js/types": "0.0.0-next-20221220142415",
|
|
65
|
+
"@scripts/jest-config": "0.0.0-next-20221220142415",
|
|
66
|
+
"@scripts/build": "0.0.0-next-20221220142415"
|
|
67
67
|
},
|
|
68
68
|
"sideEffects": false,
|
|
69
69
|
"publishConfig": {
|