vite-react-ssg 0.4.0 → 0.5.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.
@@ -117,6 +117,7 @@ interface ViteReactSSGContext<HasRouter extends boolean = true> {
117
117
  * Current router path on SSG, `undefined` on client side.
118
118
  */
119
119
  routePath?: string;
120
+ base: string;
120
121
  getStyleCollector: (() => StyleCollector | Promise<StyleCollector>) | null;
121
122
  }
122
123
  interface ViteReactSSGClientOptions {
@@ -117,6 +117,7 @@ interface ViteReactSSGContext<HasRouter extends boolean = true> {
117
117
  * Current router path on SSG, `undefined` on client side.
118
118
  */
119
119
  routePath?: string;
120
+ base: string;
120
121
  getStyleCollector: (() => StyleCollector | Promise<StyleCollector>) | null;
121
122
  }
122
123
  interface ViteReactSSGClientOptions {
@@ -117,6 +117,7 @@ interface ViteReactSSGContext<HasRouter extends boolean = true> {
117
117
  * Current router path on SSG, `undefined` on client side.
118
118
  */
119
119
  routePath?: string;
120
+ base: string;
120
121
  getStyleCollector: (() => StyleCollector | Promise<StyleCollector>) | null;
121
122
  }
122
123
  interface ViteReactSSGClientOptions {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vite-react-ssg",
3
3
  "type": "module",
4
- "version": "0.4.0",
4
+ "version": "0.5.1",
5
5
  "packageManager": "pnpm@8.6.6",
6
6
  "description": "",
7
7
  "author": "Riri <Daydreamerriri@outlook.com>",
@@ -54,9 +54,9 @@
54
54
  "vite-react-ssg": "bin/vite-react-ssg.js"
55
55
  },
56
56
  "files": [
57
- "dist",
57
+ "*.d.ts",
58
58
  "bin",
59
- "*.d.ts"
59
+ "dist"
60
60
  ],
61
61
  "scripts": {
62
62
  "build": "unbuild",
@@ -74,7 +74,7 @@
74
74
  "react-dom": "^18.0.0",
75
75
  "react-router-dom": "^6.14.1",
76
76
  "styled-components": "^6.0.0",
77
- "vite": "^2.0.0 || ^3.0.0 || ^4.0.0"
77
+ "vite": "^2.0.0 || ^3.0.0 || ^4.0.0 || ^5.0.0"
78
78
  },
79
79
  "peerDependenciesMeta": {
80
80
  "critters": {
@@ -88,12 +88,12 @@
88
88
  }
89
89
  },
90
90
  "dependencies": {
91
- "@remix-run/web-fetch": "^4.3.8",
91
+ "@remix-run/web-fetch": "^4.4.2",
92
92
  "express": "^4.18.2",
93
- "fs-extra": "^11.1.1",
93
+ "fs-extra": "^11.2.0",
94
94
  "html-minifier": "^4.0.0",
95
95
  "html5parser": "^2.0.2",
96
- "jsdom": "^22.1.0",
96
+ "jsdom": "^23.0.1",
97
97
  "kolorist": "^1.8.0",
98
98
  "prettier": "^3.0.0",
99
99
  "react-helmet-async": "^1.3.0",
@@ -101,7 +101,7 @@
101
101
  },
102
102
  "devDependencies": {
103
103
  "@childrentime/devcert": "^1.2.5",
104
- "@ririd/eslint-config": "0.7.0",
104
+ "@ririd/eslint-config": "^1.0.0",
105
105
  "@types/express": "^4.17.17",
106
106
  "@types/fs-extra": "^11.0.1",
107
107
  "@types/html-minifier": "^4.0.2",
@@ -112,10 +112,10 @@
112
112
  "@types/yargs": "^17.0.24",
113
113
  "bumpp": "^9.1.0",
114
114
  "critters": "^0.0.20",
115
- "eslint": "^8.45.0",
116
- "esno": "^0.17.0",
115
+ "eslint": "^8.56.0",
116
+ "esno": "^4.0.0",
117
117
  "fast-glob": "3.3.1",
118
- "p-queue": "^7.4.1",
118
+ "p-queue": "^8.0.0",
119
119
  "react": "^18.2.0",
120
120
  "react-dom": "^18.2.0",
121
121
  "react-router-dom": "^6.15.0",
@@ -123,8 +123,8 @@
123
123
  "styled-components": "6.0.5",
124
124
  "typescript": "5.1.6",
125
125
  "unbuild": "^2.0.0",
126
- "vite": "^4.4.9",
127
- "vite-plugin-pwa": "^0.16.4",
128
- "vitest": "0.34.1"
126
+ "vite": "^5.0.7",
127
+ "vite-plugin-pwa": "^0.17.4",
128
+ "vitest": "1.0.4"
129
129
  }
130
130
  }