build: require Angular 21.2 and compile with its toolchain - #3763
Open
armando-navarro wants to merge 2 commits into
Open
build: require Angular 21.2 and compile with its toolchain#3763armando-navarro wants to merge 2 commits into
armando-navarro wants to merge 2 commits into
Conversation
Angular 21 is in long-term support.
… module type field ng-packagr 21.2 adds "type": "module" to the generated package.json, which breaks the CommonJS schematics bundles at require time. The build now deletes the field and its schematics-load check runs after the deletion.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Checklist
yarn install,yarn testrun successfully?: yesDescription
Raises the minimum supported Angular to 21.2, the final 21.x minor line. Angular 21 is in long-term support, which receives only critical fixes and security patches, so
^21.2.0admits every 21.x release still to come. The raise is release coordination for the TransferState work (#3757), whose signal-based reading functions build onresourceFromSnapshots, absent from@angular/coreuntil 21.2.Changes
src/package.jsonmove to^21.2.0.^21.2.0,@angular-devkit/architectmoves to~0.2102.0because the 21.2 CLI needs a devkit version the old~0.2100.0range rejects (lockfile regenerated).@angular-eslintentries stay at^21.0.0, since that project's 21.x minors do not track Angular's."type": "module"field thatng-packagr21.2 adds topackage.json(a default introduced in ng-packagr#3263).ng addandng deploy.Verification
package.jsoncarries notypefield.^20.19.0 || ^22.12.0 || >=24.0.0, which CI's Node 20, 22 and 24 matrix satisfies.@angular/core21.2.18, so it needs no change to satisfy the new peer range.