@modern-js/plugin-data-loader 0.0.0-next-20221209071922 → 0.0.0-next-20221209080421
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 +31 -24
- package/dist/js/modern/cli/create-request.js +24 -38
- package/dist/js/modern/cli/generate-client.js +9 -10
- package/dist/js/modern/cli/loader.js +15 -37
- package/dist/js/modern/server/index.js +62 -101
- package/dist/js/node/cli/create-request.js +32 -56
- package/dist/js/node/cli/generate-client.js +15 -33
- package/dist/js/node/cli/loader.js +21 -56
- package/dist/js/node/server/index.js +74 -129
- package/dist/js/treeshaking/cli/create-request.js +68 -195
- package/dist/js/treeshaking/cli/generate-client.js +18 -35
- package/dist/js/treeshaking/cli/loader.js +31 -145
- package/dist/js/treeshaking/server/index.js +294 -554
- package/dist/types/server/index.d.ts +1 -3
- package/package.json +10 -10
|
@@ -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 type ServerContext = Pick<ModernServerContext, 'req' | 'res' | 'params' | 'headers' | 'method' | 'url' | 'host' | 'protocol' | 'origin' | 'href' | 'path' | 'query'>;
|
|
4
|
+
export declare 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;
|
|
@@ -14,7 +14,5 @@ export declare const handleRequest: ({
|
|
|
14
14
|
serverRoutes: ServerRoute[];
|
|
15
15
|
distDir: string;
|
|
16
16
|
}) => Promise<void>;
|
|
17
|
-
|
|
18
17
|
declare const _default: () => ServerPlugin;
|
|
19
|
-
|
|
20
18
|
export default _default;
|
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-20221209080421",
|
|
15
15
|
"jsnext:source": "./src/index.ts",
|
|
16
16
|
"types": "./dist/types/index.d.ts",
|
|
17
17
|
"main": "./dist/js/node/index.js",
|
|
@@ -42,9 +42,9 @@
|
|
|
42
42
|
"@babel/runtime": "^7.18.0",
|
|
43
43
|
"@remix-run/node": "^1.7.0",
|
|
44
44
|
"path-to-regexp": "^6.2.0",
|
|
45
|
-
"react-router-dom": "^6.4.
|
|
46
|
-
"@modern-js/babel-compiler": "0.0.0-next-
|
|
47
|
-
"@modern-js/utils": "0.0.0-next-
|
|
45
|
+
"react-router-dom": "^6.4.4",
|
|
46
|
+
"@modern-js/babel-compiler": "0.0.0-next-20221209080421",
|
|
47
|
+
"@modern-js/utils": "0.0.0-next-20221209080421"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@types/babel__core": "^7.1.15",
|
|
@@ -57,13 +57,13 @@
|
|
|
57
57
|
"supertest": "^6.1.6",
|
|
58
58
|
"ts-jest": "^27.0.5",
|
|
59
59
|
"typescript": "^4",
|
|
60
|
-
"webpack": "^5.
|
|
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/build": "0.0.0-next-
|
|
66
|
-
"@scripts/jest-config": "0.0.0-next-
|
|
62
|
+
"@modern-js/core": "0.0.0-next-20221209080421",
|
|
63
|
+
"@modern-js/server-core": "0.0.0-next-20221209080421",
|
|
64
|
+
"@modern-js/types": "0.0.0-next-20221209080421",
|
|
65
|
+
"@scripts/build": "0.0.0-next-20221209080421",
|
|
66
|
+
"@scripts/jest-config": "0.0.0-next-20221209080421"
|
|
67
67
|
},
|
|
68
68
|
"sideEffects": false,
|
|
69
69
|
"publishConfig": {
|