Changelog - 2026-09-05
Boot checks
New FeatureIn one line. A green boot can now prove three things it could not before: every service and repository binding resolves, an application on the generated index has no hand registration left behind, and no two registrations silently share one key.
What changed
bootChecks.binding is one group of three required decisions. Without the group nothing is verified, and hand registration and same-key override stay allowed.
typescript
export const configs: IApplicationConfigs = {
path: { base: '/api', isStrict: true },
artifacts: GeneratedArtifacts,
bootChecks: {
binding: {
doVerify: process.env.NODE_ENV !== 'production',
allowManual: false,
allowOverride: false,
},
},
};doVerify: trueadds averifyBindingsboot step afterpostConfigure. It resolves every binding in theservicesandrepositoriesnamespaces once and throws once with every broken key. Resolving builds the singletons at boot, so a constructor with a side effect runs then; turn it on where that is acceptable (development, UAT).allowManual: falsefails the boot whenconfigs.artifactsis set andpreConfigure()orpostConfigure()still callsservice,repository,controller,componentordataSourceby hand. Registrations made by the index step and by the framework's own steps are not affected.allowOverride: falsemakes a same-key artifact registration throw. A registration that saysallowOverride: true, on the decorator or at the call site, still overrides.bind(),set()and@providekeys never pass through the guard, so a key can still be rebound at runtime.BootSteps.VERIFY_BINDINGSis the new step name. A server application's sequence is now 15 steps, endingpostConfigure -> verifyBindings -> validateScopeFilterSupport.whenconditions run concurrently insideregisterArtifacts, so one slow async condition no longer delays the rest. Nothing changes for a synchronous condition.
Who is affected
- Applications adopting the generated index. Set the group as above. Each setting names what it found: every unresolvable key, every class still registered by hand, or the first key two registrations share.
- Code that asserts the boot sequence. A server application logs
Boot step n/15. A subclass that adds steps withBootSequence.insertAfteris unaffected. - Everyone else. No action needed; without
bootChecks.bindingnothing changes.
Details
- Reference: Artifact registration. Guide: Registering artifacts.