feat(typedserver): serve bundled in-memory content with caching and reload injection
This commit is contained in:
10
changelog.md
10
changelog.md
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user