Skip to content

Commit 28e9540

Browse files
fix(deps): update all non-major dependencies (#50)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Hiroshi Ogawa <hi.ogawa.zz@gmail.com>
1 parent 1ff6259 commit 28e9540

14 files changed

Lines changed: 770 additions & 599 deletions

File tree

docs/HOW_IT_WORKS.md

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ This core function has different behavior in dev vs build:
8484
Returns a reference to the static manifest entry (see [Build Mode: Asset Manifest](#build-mode-asset-manifest) for how the manifest is generated):
8585

8686
```js
87-
__assets_manifest["ssr"]["/src/entry.client.tsx"]
87+
__assets_manifest["ssr"]["/src/entry.client.tsx"];
8888
// {
8989
// entry: "/assets/index-abc123.js", // Entry chunk file name
9090
// js: [ // Preload chunks
@@ -113,9 +113,9 @@ In dev mode, the plugin traverses the module graph to find all CSS dependencies
113113
// Plugin tracks this in importAssetsMetaMap:
114114
importAssetsMetaMap["client"]["/entry.client.js"] = {
115115
id: "/entry.client.js",
116-
key: "entry.client.js", // Relative path for machine-independent builds
116+
key: "entry.client.js", // Relative path for machine-independent builds
117117
importerEnvironment: "ssr",
118-
isEntry: true
118+
isEntry: true,
119119
};
120120
```
121121

@@ -126,7 +126,11 @@ In dev mode, the plugin traverses the module graph to find all CSS dependencies
126126
if (environment.name === "client") {
127127
for (const meta of importAssetsMetaMap["client"]) {
128128
if (meta.isEntry) {
129-
this.emitFile({ type: "chunk", id: meta.id, preserveSignature: "exports-only" });
129+
this.emitFile({
130+
type: "chunk",
131+
id: meta.id,
132+
preserveSignature: "exports-only",
133+
});
130134
}
131135
}
132136
}
@@ -149,25 +153,19 @@ In dev mode, the plugin traverses the module graph to find all CSS dependencies
149153
```js
150154
// __fullstack_assets_manifest.js
151155
export default {
152-
"client": {
156+
client: {
153157
"entry.client.js": {
154158
entry: "/assets/entry.client-abc123.js",
155-
js: [
156-
{ href: "/assets/chunk-def456.js" }
157-
],
158-
css: [
159-
{ href: "/assets/style-789xyz.css" }
160-
]
161-
}
159+
js: [{ href: "/assets/chunk-def456.js" }],
160+
css: [{ href: "/assets/style-789xyz.css" }],
161+
},
162162
},
163-
"ssr": {
163+
ssr: {
164164
"page.js": {
165165
js: [],
166-
css: [
167-
{ href: "/assets/page-style-abc.css" }
168-
]
169-
}
170-
}
166+
css: [{ href: "/assets/page-style-abc.css" }],
167+
},
168+
},
171169
};
172170
```
173171

docs/PROPOSAL.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,12 @@ export function renderHtml(content) {
5151
<!DOCTYPE html>
5252
<html>
5353
<head>
54-
${clientAssets.css.map(css =>
55-
`<link rel="stylesheet" href="${css.href}" />`
56-
).join('\n')}
57-
${clientAssets.js.map(js =>
58-
`<link rel="modulepreload" href="${js.href}" />`
59-
).join('\n')}
54+
${clientAssets.css
55+
.map((css) => `<link rel="stylesheet" href="${css.href}" />`)
56+
.join("\n")}
57+
${clientAssets.js
58+
.map((js) => `<link rel="modulepreload" href="${js.href}" />`)
59+
.join("\n")}
6060
<script type="module" src="${clientAssets.entry}"></script>
6161
</head>
6262
<body>
@@ -101,8 +101,8 @@ import serverAssets from "./server.js?assets=ssr"; // Self-import with query
101101
export function renderHtml() {
102102
// All imported CSS files are available in serverAssets.css
103103
const cssLinks = serverAssets.css
104-
.map(css => `<link rel="stylesheet" href="${css.href}" />`)
105-
.join('\n');
104+
.map((css) => `<link rel="stylesheet" href="${css.href}" />`)
105+
.join("\n");
106106
// ...
107107
}
108108
```

docs/notes.md

Lines changed: 13 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,10 @@ This plugin provides primitives to make building ssr application on Vite simpler
5252

5353
```js
5454
import { defineConfig } from "vite";
55-
import fullstack from "@hiogawa/vite-plugin-fullstack"
55+
import fullstack from "@hiogawa/vite-plugin-fullstack";
5656

5757
export default defineConfig({
58-
plugins: [
59-
fullstack(),
60-
],
58+
plugins: [fullstack()],
6159
environments: {
6260
client: {
6361
build: {
@@ -76,23 +74,20 @@ export default defineConfig({
7674
},
7775
},
7876
},
79-
}
80-
}
77+
},
78+
},
8179
});
8280
```
8381

8482
## Example with Nitro plugin
8583

8684
```js
8785
import { defineConfig } from "vite";
88-
import nitro from "nitro/vite"
89-
import fullstack from "@hiogawa/vite-plugin-fullstack"
86+
import nitro from "nitro/vite";
87+
import fullstack from "@hiogawa/vite-plugin-fullstack";
9088

9189
export default defineConfig({
92-
plugins: [
93-
nitro(),
94-
fullstack(),
95-
],
90+
plugins: [nitro(), fullstack()],
9691
});
9792
```
9893

@@ -185,14 +180,14 @@ ssr/client universal route (e.g. React router, Vue router, etc.)
185180
const routes = {
186181
"/": () => import("routes/index.js"),
187182
"/about": () => import("routes/about.js"),
188-
}
183+
};
189184
```
190185

191186
- entry.server.js
192187

193188
```js
194-
import.meta.vite.entryAssets("/entry.client.js")
195-
handleRequest(request, routes)
189+
import.meta.vite.entryAssets("/entry.client.js");
190+
handleRequest(request, routes);
196191
```
197192

198193
- entry.client.js
@@ -222,13 +217,13 @@ ssr only route + client (ssr-optional) island (e.g. Astro, Fresh)
222217
const routes = {
223218
"/": () => import("routes/index.js"),
224219
"/about": () => import("routes/about.js"),
225-
}
220+
};
226221
```
227222

228223
- entry.server.js
229224

230225
```js
231-
handleRequest(request, routes)
226+
handleRequest(request, routes);
232227
```
233228

234229
- routes/index.js
@@ -244,8 +239,7 @@ export default function Page() {
244239
- framework can apply transform to implement island
245240

246241
```js
247-
export function Island() {
248-
}
242+
export function Island() {}
249243
```
250244

251245
## Stages

examples/basic/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"@vitejs/plugin-react": "^5.1.2",
1616
"react": "^19.2.3",
1717
"react-dom": "^19.2.3",
18-
"srvx": "^0.9.8",
19-
"vite": "^7.3.0"
18+
"srvx": "^0.10.0",
19+
"vite": "^7.3.1"
2020
}
2121
}

examples/cloudflare/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88
"preview": "wrangler dev"
99
},
1010
"devDependencies": {
11-
"@cloudflare/vite-plugin": "^1.19.0",
11+
"@cloudflare/vite-plugin": "^1.20.0",
1212
"@hiogawa/vite-plugin-fullstack": "latest",
1313
"@types/react": "^19.2.7",
1414
"@types/react-dom": "^19.2.3",
1515
"@vitejs/plugin-react-swc": "^4.2.2",
1616
"react": "^19.2.3",
1717
"react-dom": "^19.2.3",
18-
"vite": "^7.3.0",
19-
"wrangler": "^4.56.0"
18+
"vite": "^7.3.1",
19+
"wrangler": "^4.57.0"
2020
}
2121
}

examples/data-fetching/package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,18 @@
99
},
1010
"devDependencies": {
1111
"@hiogawa/vite-plugin-fullstack": "latest",
12-
"@orpc/client": "^1.13.0",
13-
"@orpc/server": "^1.13.0",
14-
"@orpc/tanstack-query": "^1.13.0",
15-
"@tanstack/react-query": "^5.90.12",
12+
"@orpc/client": "^1.13.2",
13+
"@orpc/server": "^1.13.2",
14+
"@orpc/tanstack-query": "^1.13.2",
15+
"@tanstack/react-query": "^5.90.16",
1616
"@types/react": "^19.2.7",
1717
"@types/react-dom": "^19.2.3",
1818
"@vitejs/plugin-react": "^5.1.2",
1919
"react": "^19.2.3",
2020
"react-dom": "^19.2.3",
21-
"react-router": "7.11.0",
22-
"srvx": "^0.9.8",
23-
"vite": "^7.3.0",
24-
"zod": "^4.2.1"
21+
"react-router": "7.12.0",
22+
"srvx": "^0.10.0",
23+
"vite": "^7.3.1",
24+
"zod": "^4.3.5"
2525
}
2626
}

examples/island/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
"@preact/preset-vite": "^2.10.2",
1313
"@preact/signals": "^2.5.1",
1414
"magic-string": "^0.30.21",
15-
"preact": "^10.28.0",
16-
"preact-render-to-string": "^6.6.4",
17-
"srvx": "^0.9.8",
18-
"vite": "^7.3.0"
15+
"preact": "^10.28.2",
16+
"preact-render-to-string": "^6.6.5",
17+
"srvx": "^0.10.0",
18+
"vite": "^7.3.1"
1919
}
2020
}

examples/react-router/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
"@vitejs/plugin-react": "^5.1.2",
1515
"react": "^19.2.3",
1616
"react-dom": "^19.2.3",
17-
"react-router": "7.11.0",
18-
"srvx": "^0.9.8",
19-
"vite": "^7.3.0",
17+
"react-router": "7.12.0",
18+
"srvx": "^0.10.0",
19+
"vite": "^7.3.1",
2020
"vite-plugin-devtools-json": "^1.0.0"
2121
}
2222
}

examples/remix/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"@remix-run/dom": "0.0.0-experimental-remix-jam.6",
1313
"@remix-run/events": "0.0.0-experimental-remix-jam.5",
1414
"magic-string": "^0.30.21",
15-
"srvx": "^0.9.8",
16-
"vite": "^7.3.0"
15+
"srvx": "^0.10.0",
16+
"vite": "^7.3.1"
1717
}
1818
}

examples/vue-router/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
"@hiogawa/vite-plugin-fullstack": "latest",
1414
"@vitejs/plugin-vue": "^6.0.3",
1515
"sirv-cli": "^3.0.1",
16-
"srvx": "^0.9.8",
17-
"unhead": "^2.0.19",
18-
"vite": "^7.3.0",
16+
"srvx": "^0.10.0",
17+
"unhead": "^2.1.1",
18+
"vite": "^7.3.1",
1919
"vite-plugin-devtools-json": "^1.0.0",
2020
"vue": "^3.5.26",
2121
"vue-router": "^4.6.4"

0 commit comments

Comments
 (0)