@solidjs/start 2.0.0 → 2.0.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.
- package/CHANGELOG.md +8 -0
- package/dist/config/dev-server.js +4 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @solidjs/start
|
|
2
2
|
|
|
3
|
+
## 2.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- fd5e2ae: Delegate `vite preview` to Nitro when its preview plugin is active, including for static builds that intentionally have no server entry.
|
|
8
|
+
|
|
3
9
|
## 2.0.0
|
|
4
10
|
|
|
5
11
|
### Highlights
|
|
@@ -100,6 +106,7 @@ SolidStart v2 requires Node.js 24 or newer and Vite 8. Most SolidStart v1 applic
|
|
|
100
106
|
Route files are imported through an id carrying the picked exports in the query (`routes/api.ts?pick=GET`), which left the id ending in the export name. Plugins whose filter is anchored on the file extension (`/\.[cm]?[jt]sx?$/`, the default for `unplugin-auto-import`, `unplugin-macros` and others) silently skipped every route file. The id now ends with a `lang.<ext>` marker, the same convention Vue SFCs use for `?vue&type=script&lang.ts`. Chunk filenames are unchanged.
|
|
101
107
|
|
|
102
108
|
- d8f1ea8: Apply the configured `nonce` to the two script tags that were still missing it, so a strict `script-src` CSP no longer needs `unsafe-inline`:
|
|
109
|
+
|
|
103
110
|
- The client-side redirect that streaming mode emits after the shell has already flushed (`<script>window.location=...</script>`) now carries the nonce.
|
|
104
111
|
- The SPA entry script tag now carries the nonce, matching the SSR entry script.
|
|
105
112
|
|
|
@@ -279,6 +286,7 @@ SolidStart v2 requires Node.js 24 or newer and Vite 8. Most SolidStart v1 applic
|
|
|
279
286
|
- 8256190: Rework `@solidjs/start/env`
|
|
280
287
|
- 6cbba24: Fix multiple Set-Cookie headers being lost on redirect responses
|
|
281
288
|
- d4cc548: ## Bump Seroval
|
|
289
|
+
|
|
282
290
|
- version `1.4.1`
|
|
283
291
|
|
|
284
292
|
- dd40610: Handle base url in api routes
|
|
@@ -17,6 +17,10 @@ export function devServer(serverEntryPath) {
|
|
|
17
17
|
{
|
|
18
18
|
name: "solid-start-dev-server",
|
|
19
19
|
configurePreviewServer(server) {
|
|
20
|
+
// Nitro's preview hook handles both server and static builds.
|
|
21
|
+
// Static builds have no server entry, so detect the active plugin instead.
|
|
22
|
+
if (server.config.plugins.some(plugin => plugin.name === "nitro:preview"))
|
|
23
|
+
return;
|
|
20
24
|
const serverEntryUrl = pathToFileURL(resolvePreviewServerEntry(server.config.root)).href;
|
|
21
25
|
return () => {
|
|
22
26
|
server.middlewares.use(async (req, res) => {
|