feat(angular): support angular v22#35851
Conversation
✅ Deploy Preview for nx-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for nx-dev ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
View your CI Pipeline Execution ↗ for commit 7598ed1
☁️ Nx Cloud last updated this comment at |
f861bb9 to
1ff1267
Compare
|
@leosvelperez Angular 22 release has finally arrived 15 minutes ago But it seems that nx still relies on the baseUrl, which is deprecated in TS6 |
|
Warning Review the following alerts detected in dependencies. According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.
|
|
Is there an estimated timeline for when this version might be released? 🙏🏼 |
I only see drop support for Angular 19 in this PR, so I think they still need more time |
f5bd8a6 to
4c53e04
Compare
## Current Behavior `@nx/angular` supports Angular 19, 20, and 21. ## Expected Behavior Drops support for Angular 19; the minimum supported version is now 20. Removes the Angular 19 version mappings, compatibility branches, SSR templates, and the v19-only `serverRouting` option. > [!NOTE] > Part of the Angular v22 upgrade. This targets the `angular-v22` integration branch rather than `master`. <!-- polygraph-session-start --> --- [View session information ↗](https://snapshot.app.trypolygraph.com/orgs/69cdc268b6aa527e4129c2b4/sessions/angular-v22.0.0-rc.2-5a2c66d4) <!-- polygraph-session-end --> --------- Co-authored-by: nx-cloud[bot] <71083854+nx-cloud[bot]@users.noreply.github.com>
## Current Behavior Nx installs and generates TypeScript 5.9. Generated tsconfigs use options that are hard errors on TypeScript 6 (`moduleResolution: node`, `esModuleInterop: false`, etc.), so workspaces cannot move to TS 6. ## Expected Behavior Nx defaults to TypeScript ~6.0.3 while still supporting >=5.8.0. Generators emit version-appropriate config (`bundler` resolution on TS 6 workspaces, `node10` on TS 5.x), an update migration moves eligible workspaces to TS 6 and keeps their existing tsconfigs compiling via `ignoreDeprecations: "6.0"`, and Remix workspaces stay on TS 5.x (generators error on TS 6 and pin 5.x on fresh setups). The repo itself builds and tests on TS 6.0.3. > [!NOTE] > The Angular 22 toolchain bump and Angular-specific tsconfig fixes land as a follow-up on this branch. Until then, the Angular 21.2 toolchain peers `typescript <6.0`, so peer warnings are expected in the interim. <!-- polygraph-session-start --> --- [View session information ↗](https://snapshot.app.trypolygraph.com/orgs/69cdc268b6aa527e4129c2b4/sessions/nxc-4501-e52da5bd) <!-- polygraph-session-end --> --------- Co-authored-by: nx-cloud[bot] <71083854+nx-cloud[bot]@users.noreply.github.com>
Bumps angular-eslint to v22 (and its now-required @typescript-eslint v8) for Angular 22 workspaces, and aligns the repo eslint catalog to ^22.0.0. <!-- polygraph-session-start --> --- [View session information ↗](https://snapshot.app.trypolygraph.com/orgs/69cdc268b6aa527e4129c2b4/sessions/angular-v22-76d725d8) <!-- polygraph-session-end -->
There was a problem hiding this comment.
Nx Cloud has identified a flaky task in your failed CI:
🔂 Since the failure was identified as flaky, we triggered a CI rerun by adding an empty commit to this branch.
🎓 Learn more about Self-Healing CI on nx.dev
No description provided.