@valentinkolb/ssr 0.11.1 → 0.11.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.
package/README.md CHANGED
@@ -20,7 +20,7 @@ Current source size in this repo (`packages/ssr-core/src`):
20
20
 
21
21
  | Component | Lines | Raw | Gzipped |
22
22
  | --- | ---: | ---: | ---: |
23
- | Core (`index`, `transform`, `build`, island ID + resolver) | ~689 | 23.8 KB | 7.2 KB |
23
+ | Core (`index`, `transform`, `build`, island ID + resolver) | ~750 | 26.2 KB | 8.3 KB |
24
24
  | Dev client (overlay + reload, dev only) | ~421 | 11.9 KB | 3.5 KB |
25
25
  | Adapters (`bun`, `hono`, `elysia`, shared utils) | ~465 | 14.4 KB | 4.8 KB |
26
26
 
@@ -56,6 +56,9 @@ SPA routing.
56
56
  - Public path mounting via `basePath` for microfrontends
57
57
  - Stable file-path-based island IDs (collision-safe across workspace packages)
58
58
  - Production chunk cache busting (`/_ssr/*.js?v=<buildTimestamp>`)
59
+ - Linked development source maps and validator-aware asset delivery
60
+ - Stale generated island assets removed after successful builds
61
+ - Visibility-aware development reload with cross-tab SSE coordination
59
62
 
60
63
  ## Install
61
64
 
@@ -237,7 +240,7 @@ Navigation behavior:
237
240
  Available exports:
238
241
 
239
242
  - `Link`
240
- - `navigate()`, `navigateTo()`, `documentNavigate()`, `refreshCurrentPath()`
243
+ - `navigate()`, `navigateTo()`, `documentNavigate()`, `currentPathWithQuery()`, `refreshCurrentPath()`
241
244
  - `captureScroll()`, `restoreScroll()`, `listenPopState()`, `startViewTransition()`
242
245
  - `LinkNavigateEvent`, `LinkProps`, `EnhancedNavigateOptions`, `NavigationScrollMode`, `PopStateNavigationEvent`, `ScrollSnapshot`
243
246
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@valentinkolb/ssr",
3
- "version": "0.11.1",
3
+ "version": "0.11.2",
4
4
  "description": "Minimal SSR framework for SolidJS and Bun",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
@@ -176,7 +176,12 @@ export const routes = (config: SsrConfig) => {
176
176
  app.get("/_ping", () => createPingResponse());
177
177
  }
178
178
 
179
- const serveAsset = (c: Context) => createAssetResponse(c.req.raw, ssrDir, c.req.param("filename"), dev);
179
+ const serveAsset = (c: Context) => {
180
+ const filename = c.req.param("filename");
181
+ if (!filename) return c.notFound();
182
+
183
+ return createAssetResponse(c.req.raw, ssrDir, filename, dev);
184
+ };
180
185
 
181
186
  app.get("/:filename{.+\\.js$}", serveAsset);
182
187
  app.get("/:filename{.+\\.js\\.map$}", serveAsset);