Changelog - 2026-09-02
Decorator-driven artifact registration
New Feature Breaking ChangeIn one line. A class says what it is with a decorator, a build-time generator lists every such class in one file, and the application registers that file, so application.ts stops naming controllers, services, repositories, datasources and components one by one.
What changed
- Stereotypes.
@injectable({ type })is the root;@service()and@component()are new;@controller,@repository,@datasourceand@modelrecord the same metadata. All acceptbinding,allowOverride,scope,orderandwhen(a sync or async condition). @provide({ key, scope? }). A component method becomes the lazy provider of a binding key, instead ofthis.bind(...).toValue(...)beforethis.component(...).configs.artifacts. Registers datasources, components, repositories, services and controllers in that order, honourswhenandorder, and binds@providekeys. Indexes compose:artifacts: [LibraryArtifacts, GeneratedArtifacts].ignis-artifactsCLI.@venizia/ignis-bootis now a build-time generator:generatewritessrc/generated/artifacts.ts, andcheckfails lint when it is stale. Also available asgenerateArtifactIndexandcheckArtifactIndexfrom@venizia/ignis-boot/generator.- Compiled binaries work. The generated index is plain imports a bundler sees, unlike the removed runtime boot system, which globbed the file system.
controller()bindsSINGLETON. A second resolution returns the same instance.- Boot sequence. Step names are const classes (
BootSteps,ServerBootSteps), each step logsBoot step n/14 <name>, andBootSequence.insertAfterrefuses an unknown or ambiguous target.
typescript
@service()
export class PricingService extends BaseService {}
export const configs: IApplicationConfigs = {
path: { base: '/api', isStrict: true },
artifacts: [GeneratedArtifacts, { components: [HealthCheckComponent] }],
};Who is affected
- Apps that register by hand in
preConfigure(). Nothing breaks; the six methods keep working and read decorator defaults. Migrate when convenient - see the guide. - Apps that call
application.boot(). It compiles and warns once, and does nothing. Replace the chain with oneawait application.start(). - Apps with
bootOptionsor anoverride boot(). Both still type-check and are ignored. Delete them. - Apps that call
this.booter()orregisterBooters(), or importBootstrapper, a booter class orBootMixin. These are removed. Action required, below. - Apps that passed
TMixinOpts.args. Removed; no framework method read it. - Code that relied on a fresh controller instance per
get.controller()isSINGLETONnow.
Breaking changes
WARNING
The runtime boot system is gone. Anything that imported it from @venizia/ignis-boot or called booter() no longer compiles.
Before:
typescript
// index.ts
application.boot().then(() => application.start());
// application.ts
export const configs: IApplicationConfigs = {
path: { base: '/api', isStrict: true },
bootOptions: { controllers: { dirs: ['controllers'] }, services: { dirs: ['services'] } },
};
export class Application extends BaseApplication {
preConfigure() {
this.booter(CustomBooter);
this.bind({ key: HealthCheckBindingKeys.HEALTH_CHECK_OPTIONS }).toValue({ restOptions: { path: '/health' } });
this.component(HealthCheckComponent);
this.service(PricingService);
}
}After:
typescript
// index.ts
await application.start();
// application.ts
export const configs: IApplicationConfigs = {
path: { base: '/api', isStrict: true },
artifacts: [GeneratedArtifacts, { components: [HealthCheckComponent] }],
};
// components/platform.component.ts
@component()
export class PlatformComponent extends BaseComponent {
@provide({ key: HealthCheckBindingKeys.HEALTH_CHECK_OPTIONS })
healthCheckOptions(): IHealthCheckOptions {
return { restOptions: { path: '/health' } };
}
}Migration:
- Add
@venizia/ignis-bootas a devDependency; addgenerate:artifactsandcheck:artifactsscripts. - Put
@service()on services and@component()on components. - Run
bun run generate:artifacts, commitsrc/generated/artifacts.ts, and wirecheck:artifactsinto lint. - Set
configs.artifacts; delete the registration calls,bootOptions,override boot()and the.boot()chain. - Move option bindings into
@providemethods; keep registry calls (AuthenticationStrategyRegistry,AuthorizationEnforcerRegistry) inpreConfigure()orpostConfigure().
Removed: BaseApplication.booter(), registerBooters(), Bootstrapper, BaseArtifactBooter, the four booters, BootMixin, discoverFiles, loadClasses, isClass, TMixinOpts.args. BaseApplication.boot() is a deprecated no-op.
Details
- Reference: Artifact Registration. Guide: Registering artifacts.