feat(typedserver): serve bundled in-memory content with caching and reload injection

This commit is contained in:
2026-01-23 18:58:23 +00:00
parent 75b4570742
commit 9641a00174
3 changed files with 198 additions and 22 deletions

View File

@@ -1,5 +1,15 @@
# Changelog
## 2026-01-23 - 8.2.0 - feat(typedserver)
serve bundled in-memory content with caching and reload injection
- Add IBundledContentItem and IServerOptions.bundledContent to accept tsbundle output (path + contentBase64).
- Initialize in-memory bundled content map with MIME type detection, SHA-256-based ETag, size and combined app hash.
- Serve bundled files with proper Content-Type, ETag, Cache-Control, support HEAD and conditional 304 responses.
- Inject live-reload script into bundled HTML responses when injectReload is enabled; modify SPA fallback to prefer bundled index.html.
- Require serveDir or bundledContent when injectReload is enabled; prefer in-memory bundled content over filesystem requests.
- Add helper methods: initializeBundledContent, getMimeType, serveBundledContent and serveBundledHtmlWithInjection; log initialization.
## 2025-12-22 - 8.1.0 - feat(types)
export IRequestContext type from @push.rocks/smartserve for consumers to use in route handlers