vite-react-ssg 0.6.1 → 0.6.2

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.
@@ -110,9 +110,9 @@ interface ViteReactSSGContext<HasRouter extends boolean = true> {
110
110
  routerOptions: HasRouter extends true ? RouterOptions : undefined;
111
111
  initialState: Record<string, any>;
112
112
  isClient: boolean;
113
- onSSRAppRendered(cb: Function): void;
114
- triggerOnSSRAppRendered(route: string, appHTML: string, appCtx: ViteReactSSGContext): Promise<unknown[]>;
115
- transformState?(state: any): any;
113
+ onSSRAppRendered: (cb: Function) => void;
114
+ triggerOnSSRAppRendered: (route: string, appHTML: string, appCtx: ViteReactSSGContext) => Promise<unknown[]>;
115
+ transformState?: (state: any) => any;
116
116
  /**
117
117
  * Current router path on SSG, `undefined` on client side.
118
118
  */
@@ -110,9 +110,9 @@ interface ViteReactSSGContext<HasRouter extends boolean = true> {
110
110
  routerOptions: HasRouter extends true ? RouterOptions : undefined;
111
111
  initialState: Record<string, any>;
112
112
  isClient: boolean;
113
- onSSRAppRendered(cb: Function): void;
114
- triggerOnSSRAppRendered(route: string, appHTML: string, appCtx: ViteReactSSGContext): Promise<unknown[]>;
115
- transformState?(state: any): any;
113
+ onSSRAppRendered: (cb: Function) => void;
114
+ triggerOnSSRAppRendered: (route: string, appHTML: string, appCtx: ViteReactSSGContext) => Promise<unknown[]>;
115
+ transformState?: (state: any) => any;
116
116
  /**
117
117
  * Current router path on SSG, `undefined` on client side.
118
118
  */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vite-react-ssg",
3
3
  "type": "module",
4
- "version": "0.6.1",
4
+ "version": "0.6.2",
5
5
  "packageManager": "pnpm@8.6.6",
6
6
  "description": "",
7
7
  "author": "Riri <Daydreamerriri@outlook.com>",
@@ -79,6 +79,7 @@
79
79
  "peerDependencies": {
80
80
  "@childrentime/devcert": "*",
81
81
  "critters": "^0.0.19",
82
+ "prettier": "*",
82
83
  "react": "^18.0.0",
83
84
  "react-dom": "^18.0.0",
84
85
  "react-router-dom": "^6.14.1",
@@ -92,6 +93,9 @@
92
93
  "critters": {
93
94
  "optional": true
94
95
  },
96
+ "prettier": {
97
+ "optional": true
98
+ },
95
99
  "react-router-dom": {
96
100
  "optional": true
97
101
  },
@@ -101,20 +105,17 @@
101
105
  },
102
106
  "dependencies": {
103
107
  "@remix-run/web-fetch": "^4.4.2",
104
- "express": "^4.18.2",
105
108
  "fs-extra": "^11.2.0",
106
109
  "html-minifier": "^4.0.0",
107
110
  "html5parser": "^2.0.2",
108
111
  "jsdom": "^24.0.0",
109
112
  "kolorist": "^1.8.0",
110
- "prettier": "^3.2.4",
111
113
  "react-helmet-async": "^1.3.0",
112
114
  "yargs": "^17.7.2"
113
115
  },
114
116
  "devDependencies": {
115
117
  "@childrentime/devcert": "^1.2.5",
116
- "@ririd/eslint-config": "^1.0.4",
117
- "@types/express": "^4.17.17",
118
+ "@ririd/eslint-config": "^1.1.0",
118
119
  "@types/fs-extra": "^11.0.1",
119
120
  "@types/html-minifier": "^4.0.2",
120
121
  "@types/jsdom": "^21.1.1",
@@ -128,6 +129,7 @@
128
129
  "esno": "^4.7.0",
129
130
  "fast-glob": "3.3.2",
130
131
  "p-queue": "^8.0.1",
132
+ "prettier": "^3.2.4",
131
133
  "react": "^18.2.0",
132
134
  "react-dom": "^18.2.0",
133
135
  "react-router-dom": "^6.15.0",