feat: add support for Angular 22

Merged
FA
4mo ago
+10107-6

Fixes: #23973
based on #22636

PR checklist

  • Read the contribution guidelines.
  • Run the following to build the project and update samples:
    ./mvnw clean package || exit
    ./bin/generate-samples.sh ./bin/configs/*.yaml || exit
    ./bin/utils/export_docs_generators.sh || exit
    
    (For Windows users, please run the script in WSL)
    Commit all changed files.
    This is important, as CI jobs will verify all generator outputs of your HEAD commit as it would merge with master.
    These must match the expectations made by your contribution.
    You may regenerate an individual generator by passing the relevant config(s) as an argument to the script, for example ./bin/generate-samples.sh bin/configs/java*.
    IMPORTANT: Do NOT purge/delete any folders/files (e.g. tests) when regenerating the samples as manually written tests may be removed.
  • If your PR is targeting a particular programming language, @mention the technical committee members, so they are more likely to review the pull request.

Summary by cubic

Adds Angular 22 support to the typescript-angular generator and makes 22.0.0 the default. Updates docs, dependency mappings, samples, tests, and CI to generate and validate Angular 22 clients.

  • New Features

    • Default ngVersion set to 22.0.0; help/docs now show 9.x–22.x.
    • Added Angular 22 mapping: TypeScript >=6.0.0 <6.1.0, rxjs 7.4.0, ng-packagr 22.0.0, zone.js 0.15.0.
    • New configs: bin/configs/typescript-angular-v22.yaml and ...-v22-provided-in-root.yaml, with generated samples and a provided-in-root test app; CI updated to include typescript-angular-v22-provided-in-root.
  • Migration

    • To stay on Angular ≤21, set additionalProperties.ngVersion to your target (e.g., 21.0.0) or use the v21 configs.