Compare commits

...

3 Commits

Author SHA1 Message Date
14c8d83ab5 v8.3.1
Some checks failed
Default (tags) / security (push) Failing after 2s
Default (tags) / test (push) Failing after 2s
Default (tags) / release (push) Has been skipped
Default (tags) / metadata (push) Has been skipped
2026-02-24 16:49:44 +00:00
d66b7648a8 fix(typedserver): no changes detected — no version bump needed 2026-02-24 16:49:44 +00:00
657bdfb403 feat(websiteserver): add bundledContent pass-through and make serveDir optional
UtilityWebsiteServer now forwards bundledContent to TypedServer for in-memory serving.
serveDir is optional; dev features (injectReload, watch, noCache) only activate with serveDir.
2026-02-24 16:48:56 +00:00
4 changed files with 17 additions and 7 deletions

View File

@@ -1,5 +1,11 @@
# Changelog
## 2026-02-24 - 8.3.1 - fix(typedserver)
no changes detected — no version bump needed
- No files changed in the diff
- Current package version: 8.3.0
## 2026-01-23 - 8.3.0 - feat(typedserver)
add noCache option to disable client-side caching and set no-cache headers on responses

View File

@@ -1,6 +1,6 @@
{
"name": "@api.global/typedserver",
"version": "8.3.0",
"version": "8.3.1",
"description": "A TypeScript-based project for easy serving of static files with support for live reloading, compression, and typed requests.",
"type": "module",
"exports": {

View File

@@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@api.global/typedserver',
version: '8.3.0',
version: '8.3.1',
description: 'A TypeScript-based project for easy serving of static files with support for live reloading, compression, and typed requests.'
}

View File

@@ -1,5 +1,5 @@
import * as interfaces from '../../dist_ts_interfaces/index.js';
import { type IServerOptions, type ISecurityHeaders, TypedServer } from '../classes.typedserver.js';
import { type IServerOptions, type ISecurityHeaders, type IBundledContentItem, TypedServer } from '../classes.typedserver.js';
import * as plugins from '../plugins.js';
export interface IUtilityWebsiteServerConstructorOptions {
@@ -10,7 +10,9 @@ export interface IUtilityWebsiteServerConstructorOptions {
/** Domain name for the website */
domain: string;
/** Directory to serve static files from */
serveDir: string;
serveDir?: string;
/** Bundled content to serve from memory (base64-encoded files from tsbundle) */
bundledContent?: IBundledContentItem[];
/** RSS feed metadata */
feedMetadata?: IServerOptions['feedMetadata'];
/** Enable/disable CORS (default: true) */
@@ -55,12 +57,14 @@ export class UtilityWebsiteServer {
// Core settings
cors: this.options.cors ?? true,
serveDir: this.options.serveDir,
bundledContent: this.options.bundledContent,
domain: this.options.domain,
port,
// Development features
injectReload: true,
watch: true,
// Development features (only when serving from filesystem)
injectReload: !!this.options.serveDir,
watch: !!this.options.serveDir,
noCache: !!this.options.serveDir,
// SPA support (enabled by default for modern web apps)
spaFallback: this.options.spaFallback ?? true,