vite-react-ssg 0.6.1 → 0.6.3

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
  */
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const UNSAFE_CHARS_REGEXP = /[<>\/\u2028\u2029]/g;
3
+ const UNSAFE_CHARS_REGEXP = /[<>/\u2028\u2029]/g;
4
4
  const ESCAPED_CHARS = {
5
5
  "<": "\\u003C",
6
6
  ">": "\\u003E",
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "vite-react-ssg",
3
3
  "type": "module",
4
- "version": "0.6.1",
5
- "packageManager": "pnpm@8.6.6",
4
+ "version": "0.6.3",
5
+ "packageManager": "pnpm@9.4.0",
6
6
  "description": "",
7
7
  "author": "Riri <Daydreamerriri@outlook.com>",
8
8
  "license": "MIT",
@@ -77,8 +77,8 @@
77
77
  "typecheck": "tsc --noEmit"
78
78
  },
79
79
  "peerDependencies": {
80
- "@childrentime/devcert": "*",
81
80
  "critters": "^0.0.19",
81
+ "prettier": "*",
82
82
  "react": "^18.0.0",
83
83
  "react-dom": "^18.0.0",
84
84
  "react-router-dom": "^6.14.1",
@@ -86,10 +86,10 @@
86
86
  "vite": "^2.0.0 || ^3.0.0 || ^4.0.0 || ^5.0.0"
87
87
  },
88
88
  "peerDependenciesMeta": {
89
- "@childrentime/devcert": {
89
+ "critters": {
90
90
  "optional": true
91
91
  },
92
- "critters": {
92
+ "prettier": {
93
93
  "optional": true
94
94
  },
95
95
  "react-router-dom": {
@@ -101,20 +101,16 @@
101
101
  },
102
102
  "dependencies": {
103
103
  "@remix-run/web-fetch": "^4.4.2",
104
- "express": "^4.18.2",
105
104
  "fs-extra": "^11.2.0",
106
105
  "html-minifier": "^4.0.0",
107
106
  "html5parser": "^2.0.2",
108
- "jsdom": "^24.0.0",
107
+ "jsdom": "^24.1.0",
109
108
  "kolorist": "^1.8.0",
110
- "prettier": "^3.2.4",
111
109
  "react-helmet-async": "^1.3.0",
112
110
  "yargs": "^17.7.2"
113
111
  },
114
112
  "devDependencies": {
115
- "@childrentime/devcert": "^1.2.5",
116
- "@ririd/eslint-config": "^1.0.4",
117
- "@types/express": "^4.17.17",
113
+ "@ririd/eslint-config": "^1.3.2",
118
114
  "@types/fs-extra": "^11.0.1",
119
115
  "@types/html-minifier": "^4.0.2",
120
116
  "@types/jsdom": "^21.1.1",
@@ -128,15 +124,16 @@
128
124
  "esno": "^4.7.0",
129
125
  "fast-glob": "3.3.2",
130
126
  "p-queue": "^8.0.1",
127
+ "prettier": "^3.2.4",
131
128
  "react": "^18.2.0",
132
129
  "react-dom": "^18.2.0",
133
130
  "react-router-dom": "^6.15.0",
134
131
  "rimraf": "5.0.1",
135
132
  "styled-components": "6.0.5",
136
- "typescript": "5.1.6",
133
+ "typescript": "^5.5.2",
137
134
  "unbuild": "^2.0.0",
138
- "vite": "^5.0.12",
135
+ "vite": "^5.3.1",
139
136
  "vite-plugin-pwa": "^0.17.4",
140
- "vitest": "1.0.4"
137
+ "vitest": "1.6.0"
141
138
  }
142
- }
139
+ }