@modern-js/types 2.45.0 → 2.46.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/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "2.45.0",
18
+ "version": "2.46.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.45.0",
49
- "@scripts/jest-config": "2.45.0"
48
+ "@scripts/build": "2.46.0",
49
+ "@scripts/jest-config": "2.46.0"
50
50
  },
51
51
  "sideEffects": false,
52
52
  "publishConfig": {
@@ -109,6 +109,8 @@ export type BaseSSRServerContext<T extends 'node' | 'worker' = 'node'> = {
109
109
  res: T extends 'worker' ? BaseResponseLike : ModernServerContext['res'];
110
110
 
111
111
  mode?: SSRMode; // ssr type
112
+
113
+ isSpider?: boolean; // Check if it's spider request
112
114
  };
113
115
 
114
116
  export interface ServerInitHookContext {
@@ -50,7 +50,7 @@ export type DevServerOptions = {
50
50
  /** Whether to watch files change. */
51
51
  watch?: boolean;
52
52
  /** Whether to enable hot reload. */
53
- hot?: boolean | string;
53
+ hot?: boolean;
54
54
  /** Whether to enable page reload. */
55
55
  liveReload?: boolean;
56
56
  /** Whether to enable https. */