Goal: 0
Draft PR: 1 of 5
Commit prefix: [agent:angular-v19-nest-v11]
Branch: agent/<repo>/angular-v19-nest-v11
This skill upgrades a repository from its current Angular version (v17+) to Angular v19 and from its current NestJS version (v9+) to NestJS v11. This is the foundational upgrade — all subsequent goals depend on it completing successfully.
- Repository is on Angular v17+ and NestJS v9+
- Repository builds and tests pass on the default branch before starting
- Read
package.jsonto identify current Angular and NestJS versions - Read
angular.jsonorworkspace.jsonto understand the workspace configuration - Identify all Angular-related packages (
@angular/*,@angular-devkit/*,zone.js,rxjs,typescript) - Identify all NestJS-related packages (
@nestjs/*) - Check for any version-pinned dependencies that might conflict
- Log the current state for traceability
- Run
ng update @angular/core@19 @angular/cli@19to perform the Angular upgrade - If
ng updateis not available or fails, manually update all@angular/*packages to v19 - Update
typescriptto the version required by Angular v19 (check Angular's peer dependencies) - Update
zone.jsto the version compatible with Angular v19 - Update
rxjsif required by Angular v19's peer dependencies - Run
npm installto resolve the dependency tree
- Update all
@nestjs/*packages to v11 - Update NestJS peer dependencies (
reflect-metadata,class-transformer,class-validatorif present) - Check for breaking changes in NestJS v11 migration guide
- Update any NestJS configuration files if the schema has changed
- Check for deprecated APIs removed in Angular v19:
@angular/http→@angular/common/http(if not already migrated)- Standalone components changes
- Signal-based inputs/outputs changes
- Router guard changes
- Check for deprecated APIs removed in NestJS v11
- Run the TypeScript compiler (
npx tsc --noEmit) to identify type errors - Fix all compilation errors
- Update any Angular schematics or builders if needed
- Update
tsconfig.jsonif Angular v19 requires different compiler options - Update
angular.jsonbuild configuration if needed - Update any webpack or esbuild configuration changes
- Update
.browserslistrcif present
- Run
npm run build(or the project's build command) - Run
npm run test(or the project's test command) - Run
npm run lintif available - Confirm no new warnings that indicate deprecated patterns
- Stage all changes
- Create commit with message:
[agent:angular-v19-nest-v11] Upgrade Angular to v19 and NestJS to v11 - Push branch and open Draft PR with the standard PR template
This section is automatically updated by the monitor agent as patterns are discovered across iterations. Format: Pattern description | First seen in | Iteration added
- Peer dependency conflicts: Angular v19 may require specific versions of third-party libraries. Check
ng updateoutput carefully. - TypeScript version mismatch: Angular v19 requires TypeScript 5.4+. Some NestJS decorators may need adjustment.
- RxJS breaking changes: If jumping across RxJS major versions, import paths may change.
- Zone.js removal preparation: Angular v19 begins deprecating zone.js in favor of signals. Watch for zoneless change detection patterns.
If this skill fails and cannot be resolved:
git checkout <default-branch>- Delete the feature branch
- Log the failure reason in the traceability document
- Flag for manual intervention