Overview
What this package owns in the runtime
Common provides the public decorator surface for controllers and route pipelines. It is the language the rest of the framework uses to express middleware, guard, and event metadata, and it includes the Logger used across adapters and services.
What it provides
- Controller, Get, Post, Patch, Delete decorators describe routes.
- UseGuards, UseMiddlewares, and UsePipes compose route execution order.
- Logger and route metadata types are shared by framework packages.
- Logger supports optional file persistence through logger.file.enabled and logger.file.path.
- Logger output format includes app name, pid, optional context, and per-line delta time.
- Lifecycle metadata drives runners and OnEvent listeners.
How it fits
- Consumed by @xtaskjs/core during route registration and execution.
- Extended by @xtaskjs/security through additional decorators and guards.
- Often paired with request middleware that propagates a correlation id header for end-to-end tracing.