@modern-js/plugin-data-loader 2.0.0-canary.7 → 2.0.1

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.
@@ -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 declare type ServerContext = Pick<ModernServerContext, 'req' | 'res' | 'params' | 'headers' | 'method' | 'url' | 'host' | 'protocol' | 'origin' | 'href' | 'path' | 'query'>;
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": "2.0.0-canary.7",
14
+ "version": "2.0.1",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "types": "./dist/types/index.d.ts",
17
17
  "main": "./dist/js/node/index.js",
@@ -40,18 +40,13 @@
40
40
  "dependencies": {
41
41
  "@babel/core": "^7.18.0",
42
42
  "@babel/runtime": "^7.18.0",
43
- "@modern-js/babel-compiler": "2.0.0-beta.7",
44
- "@modern-js/utils": "2.0.0-beta.7",
45
43
  "@remix-run/node": "^1.9.0",
46
44
  "path-to-regexp": "^6.2.0",
47
- "react-router-dom": "^6.6.0"
45
+ "react-router-dom": "^6.6.0",
46
+ "@modern-js/utils": "2.0.1",
47
+ "@modern-js/babel-compiler": "2.0.1"
48
48
  },
49
49
  "devDependencies": {
50
- "@modern-js/core": "2.0.0-beta.7",
51
- "@modern-js/server-core": "2.0.0-beta.7",
52
- "@modern-js/types": "2.0.0-beta.7",
53
- "@scripts/build": "2.0.0-beta.7",
54
- "@scripts/jest-config": "2.0.0-beta.7",
55
50
  "@types/babel__core": "^7.1.15",
56
51
  "@types/jest": "^27",
57
52
  "@types/node": "^14",
@@ -63,7 +58,12 @@
63
58
  "ts-jest": "^27.0.5",
64
59
  "typescript": "^4",
65
60
  "webpack": "^5.75.0",
66
- "webpack-chain": "^6.5.1"
61
+ "webpack-chain": "^6.5.1",
62
+ "@modern-js/core": "2.0.1",
63
+ "@modern-js/server-core": "2.0.1",
64
+ "@modern-js/types": "2.0.1",
65
+ "@scripts/jest-config": "2.0.1",
66
+ "@scripts/build": "2.0.1"
67
67
  },
68
68
  "sideEffects": false,
69
69
  "publishConfig": {