Changelog - 2026-09-07
Worker project root and an extendable Kafka helper
New FeatureIn one line. WorkerApplication gets the same projectRoot setting ServerApplication has, and BaseKafkaHelper can be extended instead of forked.
typescript
export const configs: IWorkerApplicationConfigs = {
path: { base: '/api', isStrict: true },
projectRoot: '/srv/app',
};What changed
configs.projectRootonWorkerApplication.IWorkerApplicationConfigsextendsIApplicationConfigswith an optionalprojectRoot.getProjectRoot()returnsconfigs.projectRoot, then the current directory, then an empty string.- No
node_modulescheck. UnlikeServerApplication,WorkerApplicationnever warns about a missingnode_modules, because a browser Worker has no filesystem to check. ProjectRootRegistry. New, reachable from@venizia/ignis-helpers/core, with no Node import.ModuleUtility.setProjectRoot()andgetProjectRoot()keep their signatures, so existing callers are unaffected.BaseKafkaHelperis extendable.connectedBrokers,onBrokerConnectandonBrokerDisconnectturnprotected, matchingKafkaConsumerHelper.
Who is affected
- A worker host built for a non-cwd peer root. Set
configs.projectRoot; nothing else changes. - Consumers that forked
BaseKafkaHelperto reach a formerly private member. Extend the class instead, and delete the fork. - Everyone else. No action needed.
Details
protectedhere is an extension seam, not a stable contract between minor versions.