chore(angular): upgrade @aws-amplify/ui-angular to Angular 20 - #7047
Conversation
🦋 Changeset detectedLatest commit: 7c55a3f The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Could we add a changeset for this one? 🙏 Even though the bulk of the diff is I'd suggest a One reason the changelog entry matters here specifically: the published peer range is still |
|
Question on scope for the The library migration cites
Should we also migrate these to field Or is leaving them on constructor DI intentional — so the example app deliberately exercises both DI styles against Angular 20 and validates that constructor-parameter injection still works alongside the migrated Either way is defensible — mostly want to make sure the split is a choice rather than a miss. No strong opinion; these compile fine under Angular 20 regardless. |
|
@osama-rizk thanks for flagging the changeset! 🙏 One landed shortly after your comment — but as major rather than minor, together with bumping the published peerDeps to Reasoning: the library is now compiled with the Angular 20 toolchain, and partial-Ivy output is only forward-compatible — so Angular 19 consumers are outside the supported matrix. Keeping For what it's worth, precedent cuts both ways: the 14→19 jump shipped as minor in #6767, but the 2023 peer-floor raise went out as major in #4117. We went with the semver-correct option here — happy to discuss if the team prefers minor! |
|
@osama-rizk good catch — that was a miss, not a choice 😅 The The three components you listed are migrated now (22cd560), and while at it we also caught |
Upgrades the Angular library and example app from Angular 19 to 20.3, making the Angular 20 move real and consistent (supersedes the effectively-cosmetic @angular/common-only bump in #7019). Dependencies: - All @angular/* -> 20.3.26 (runtime + compiler-cli); @angular/cli & @angular-devkit/build-angular -> 20.3.x - ng-packagr -> ^20.3; @angular-eslint/* -> ^20.7; @testing-library/angular -> ^18.1; ng-mocks -> ^14.15 - typescript -> ~5.8 (Angular 20 requires >=5.8 <5.9) - Root package.json resolutions bumped (these pinned all @angular/* to 19.2.20 and were the reason the prior bump never took effect) Code: - Migrated constructor DI to field inject() across 19 component/directive files via Angular's official inject() schematic (required by @angular-eslint/prefer-inject, newly enforced in angular-eslint 20) Testing: - Library build: PASS - Unit tests (jest): PASS (15 suites / 43 tests) - Lint (tsc + eslint): PASS - The example-app @environments/*/aws-exports build failure is pre-existing/environmental (missing e2e-generated config), not caused by this upgrade
Adds a major changeset for @aws-amplify/ui-angular since Angular 19 and below are no longer supported.
…endency review Adds a license allowlist exception for rollup-plugin-dts (LGPL-3.0-only, transitive build-time dep of ng-packagr@20) and extends the README License Note accordingly.
…nject() Completes the inject() migration for consistency across the library and example app, addressing review feedback. The library files were migrated via the official Angular inject() schematic, which was run against the library workspace only, so these example components were missed.
…ject() Completes constructor-DI removal across the angular example app.
Supersedes the dependency-only bump in #7019.
Upgrades the Angular library and example app from Angular 19 to 20.3, making the Angular 20 move real and consistent (supersedes the effectively-cosmetic
@angular/common-only bump in #7019).Dependencies
@angular/*→ 20.3.26 (runtime + compiler-cli);@angular/cli&@angular-devkit/build-angular→ 20.3.xng-packagr→ ^20.3;@angular-eslint/*→ ^20.7;@testing-library/angular→ ^18.1;ng-mocks→ ^14.15typescript→ ~5.8 (Angular 20 requires >=5.8 <5.9)package.jsonresolutions bumped (these pinned all@angular/*to 19.2.20 and were the reason the prior bump never took effect)Code
inject()across 19 component/directive files via Angular's officialinject()schematic (required by@angular-eslint/prefer-inject, newly enforced in angular-eslint 20)Testing
@environments/*/aws-exportsbuild failure is pre-existing/environmental (missing e2e-generated config), not caused by this upgrade