@modern-js/types 2.54.6 → 2.55.0
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/cli/index.d.ts +9 -0
- package/package.json +3 -3
- package/server/utils.d.ts +1 -1
package/cli/index.d.ts
CHANGED
|
@@ -29,7 +29,16 @@ export interface Entrypoint {
|
|
|
29
29
|
nestedRoutesEntry?: string;
|
|
30
30
|
pageRoutesEntry?: string;
|
|
31
31
|
isAutoMount?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* @deprecated
|
|
34
|
+
* Using customEntry instead.
|
|
35
|
+
*/
|
|
32
36
|
customBootstrap?: string | false;
|
|
37
|
+
|
|
38
|
+
customEntry?: boolean;
|
|
39
|
+
|
|
40
|
+
customServerEntry?: string | false;
|
|
41
|
+
|
|
33
42
|
fileSystemRoutes?: {
|
|
34
43
|
globalApp?: string | false;
|
|
35
44
|
routes?: any[];
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "2.
|
|
18
|
+
"version": "2.55.0",
|
|
19
19
|
"types": "./index.d.ts",
|
|
20
20
|
"exports": {
|
|
21
21
|
".": {
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"http-proxy-middleware": "^2.0.4",
|
|
46
46
|
"jest": "^29",
|
|
47
47
|
"type-fest": "2.15.0",
|
|
48
|
-
"@scripts/build": "2.
|
|
49
|
-
"@scripts/jest-config": "2.
|
|
48
|
+
"@scripts/build": "2.55.0",
|
|
49
|
+
"@scripts/jest-config": "2.55.0"
|
|
50
50
|
},
|
|
51
51
|
"sideEffects": false,
|
|
52
52
|
"publishConfig": {
|
package/server/utils.d.ts
CHANGED
|
@@ -103,7 +103,7 @@ export type CacheControl = {
|
|
|
103
103
|
|
|
104
104
|
export type CacheOptionProvider = (
|
|
105
105
|
req: IncomingMessage,
|
|
106
|
-
) => Promise<CacheControl> | CacheControl;
|
|
106
|
+
) => Promise<CacheControl | false> | CacheControl | false;
|
|
107
107
|
|
|
108
108
|
export type CacheOption =
|
|
109
109
|
| false
|