@angular/core
22.2.6 · 12 Nov 2026MIT8.5M / weekRepositoryHomepagenpmAtom feed
21.2.26 is the newest release of 21.x.
In short
8 breaking
- Breaking
The server-side bootstrapping process has been changed to eliminate the reliance on a global platform injector.
- Breaking
Using a combination of
provideZoneChangeDetectionwhile also removing ZoneJS polyfills will no longer result in the internal scheduler being disabled. All Angular applications now consistenly use the same scheduler, and those with the Zone change detection provider include additional automatic scheduling behaviors based on NgZone stabilization. - Breaking
TypeScript versions less than 5.9 are no longer supported.
- Breaking
(test only) - Using
provideZoneChangeDetectionin the TestBed providers would previously preventTestBedfrom rethrowing errors as it should. Errors in the test will now be rethrown, regardless of the usage ofprovideZoneChangeDetection. Tests should be adjusted to prevent or account for these errors. As in previous major versions, this behavior can be disabled withrethrowApplicationErrors: falseinconfigureTestingModuleas a last resort. - Breaking
ignoreChangesOutsideZoneis no longer available as an option for configuring ZoneJS change detection behavior. - Breaking
Angular no longer provides a change detection scheduler for ZoneJS-based change detection by default. Add
provideZoneChangeDetectionto the providers of yourbootstrapApplicationfunction or yourAppModule(if usingbootstrapModule). This provider addition will be covered by an automated migration. - Breaking
moduleIdwas removed fromComponentmetadata. - Breaking
The
interpolationoption on Components has been removed. Only the default{{ ... }}is now supported.
Security
8 advisories affect 21.0.0; 21.2.20 fixes them
- HighAngular i18n: Cross-Site Scripting (XSS) via event-handler attributesGHSA-jj27-h5hq-8x99 · 3 Aug 2026Fixed in 21.2.19
- HighAngular Client Hydration DOM Clobbering & Response-Cache PoisoningGHSA-rgjc-h3x7-9mwg · 15 Jun 2026Fixed in 21.2.17
- HighAngular vulnerable to XSS in i18n attribute bindingsGHSA-g93w-mfhg-p222 · 13 Mar 2026Fixed in 21.2.4
- HighAngular i18n vulnerable to Cross-Site ScriptingGHSA-prjf-86w9-mfqv · 27 Feb 2026Fixed in 21.1.6
- HighAngular has XSS Vulnerability via Unsanitized SVG Script AttributesGHSA-jrmj-c5cx-3cw6 · 9 Jan 2026Fixed in 21.0.7
3 more
- ModerateAngular: Sanitization bypass via directive host bindings on concrete host elements in @angular/core and @angular/compilerGHSA-hh8m-fm6v-7cvg · 10 Sep 2026Fixed in 21.2.20
- ModerateAngular: Template and Attribute Namespace Sanitization Bypass (XSS)GHSA-f3m7-gqxr-g87x · 15 Jun 2026Fixed in 21.2.15
- Moderate@angular/core: Angular Template and Dynamic Component Namespace Bypass leading to Cross-Site Scripting (XSS)GHSA-692r-grfm-v8x7 · 15 Jun 2026Fixed in 21.2.15
Release note
The section about @angular/core of a note shared by several packages.
core
| Commit | Description |
|---|---|
| feat - 809a4ed8c1 | Add migration for zoneless by default. (#63042) |
| feat - 2a7a5de53f | Allow passing application providers in bootstrapModule options (#64354) |
| feat - 28926ba92c | introduce BootstrapContext for improved server bootstrapping (#63562) |
| feat - c2d376b85a | make SimpleChanges generic (#64535) |
| feat - ad2376435b | support IntersectionObserver options in viewport triggers (#64130) |
| feat - 539717f58a | support regular expressions in templates (#63887) |
| fix - ab415f3d7f | control not recognized when input has directive injecting ViewContainerRef (#64368) |
| fix - f008045ded | do not rename ARIA property bindings to attributes (#63925) |
| fix - 1352fbdbf2 | Drop special-case disables automatic change detection scheduling (#63846) |
| fix - c0791e1887 | drop support for TypeScript 5.8 (#63589) |
| fix - aa389a691b | ensure @for iteration over field is reactive (#64113) |
| fix - fec7c288e9 | Error on invalid APP_ID (#63252) |
| fix - d399d7d02b | Explicit Zone CD in TestBed providers should not override TestBed error handler (#63404) |
| fix - 92e09adc0a | Remove ignoreChangesOutsideZone option (#62700) |
| fix - 45fed3d201 | Remove Zone-based change provider from internals by default (#63382) |
| fix - c9f977833e | skip Angular formatting when formatting signals recursively |
| fix - 67fbd5ff1e | SSR error in signal forms |
| fix - c241038111 | update symbols (#64481) |
| refactor - a5e5dbbc16 | remove moduleId from Component metadata (#63482) |
| refactor - 9a16718b13 | remove deprecated interpolation option on Components. (#63474) |
Breaking Changes
core
- Breaking
The server-side bootstrapping process has been changed to eliminate the reliance on a global platform injector.
Before:
const bootstrap = () => bootstrapApplication(AppComponent, config);
After:
const bootstrap = (context: BootstrapContext) => bootstrapApplication(AppComponent, config, context);
A schematic is provided to automatically update
main.server.tsfiles to pass theBootstrapContextto thebootstrapApplicationcall.In addition,
getPlatform()anddestroyPlatform()will now returnnulland be a no-op respectively when running in a server environment. - Breaking
Using a combination of
provideZoneChangeDetection
while also removing ZoneJS polyfills will no longer result in the
internal scheduler being disabled. All Angular applications now
consistenly use the same scheduler, and those with the Zone change detection
provider include additional automatic scheduling behaviors based on
NgZone stabilization. - Breaking
TypeScript versions less than 5.9 are no longer supported.
- Breaking
(test only) - Using
provideZoneChangeDetectionin the
TestBed providers would previously preventTestBedfrom rethrowing
errors as it should. Errors in the test will now be rethrown, regardless
of the usage ofprovideZoneChangeDetection. Tests should be adjusted to
prevent or account for these errors. As in previous major versions,
this behavior can be disabled withrethrowApplicationErrors: falseinconfigureTestingModuleas a last resort. - Breaking
ignoreChangesOutsideZoneis no longer available as an
option for configuring ZoneJS change detection behavior. - Breaking
Angular no longer provides a change detection scheduler
for ZoneJS-based change detection by default. AddprovideZoneChangeDetectionto the providers of yourbootstrapApplicationfunction or yourAppModule(if usingbootstrapModule). This provider addition will be covered by an
automated migration. - Breaking
moduleIdwas removed fromComponentmetadata. - Breaking
The
interpolationoption on Components has been removed. Only the default{{ ... }}is now supported.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.