@angular/core
22.2.6 · 12 Nov 2026MIT8.5M / weekRepositoryHomepagenpmAtom feed
20.3.35 is the newest release of 20.x.
In short
16 breaking1 deprecated
- Breaking
TypeScript versions less than 5.8 are no longer supported.
- Breaking
The
TestBed.flushEffects()was removed - use theTestBed.tick()instead. - Breaking
It is renamed to
provideCheckNoChangesConfig - Breaking
The behavior applies to all checkNoChanges runs
- Breaking
The
useNgZoneOnStableoption is removed. This wasn't found to be generally more useful thaninterval - Breaking
provideExperimentalZonelessChangeDetectionis renamed toprovideZonelessChangeDetectionas it is now "Developer Preview" rather than "Experimental". - Breaking
InjectFlagshas been removed.
- Breaking
TestBed.gethas been removed. UseTestBed.injectinstead.
Security
8 advisories affect 20.0.0; 20.3.28 fixes them
- HighAngular i18n: Cross-Site Scripting (XSS) via event-handler attributesGHSA-jj27-h5hq-8x99 · 3 Aug 2026Fixed in 20.3.27
- HighAngular Client Hydration DOM Clobbering & Response-Cache PoisoningGHSA-rgjc-h3x7-9mwg · 15 Jun 2026Fixed in 20.3.25
- HighAngular vulnerable to XSS in i18n attribute bindingsGHSA-g93w-mfhg-p222 · 13 Mar 2026Fixed in 20.3.18
- HighAngular i18n vulnerable to Cross-Site ScriptingGHSA-prjf-86w9-mfqv · 27 Feb 2026Fixed in 20.3.17
- HighAngular has XSS Vulnerability via Unsanitized SVG Script AttributesGHSA-jrmj-c5cx-3cw6 · 9 Jan 2026Fixed in 20.3.16
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 20.3.28
- ModerateAngular: Template and Attribute Namespace Sanitization Bypass (XSS)GHSA-f3m7-gqxr-g87x · 15 Jun 2026Fixed in 20.3.22
- Moderate@angular/core: Angular Template and Dynamic Component Namespace Bypass leading to Cross-Site Scripting (XSS)GHSA-692r-grfm-v8x7 · 15 Jun 2026Fixed in 20.3.22
Release note
The section about @angular/core of a note shared by several packages.
core
| Commit | Description |
|---|---|
| feat - 22d3f0562c | add hook for producer creation side effects (#60333) |
| feat - fe57332fc5 | add input binding support to dynamically-created components (#60137) |
| feat - 65adb3024d | Add provider which reports unhandled errors on window to ErrorHandler (#60704) |
| feat - b154fb3911 | add support for two-way bindings on dynamically-created components (#60342) |
| feat - 82aa2c1a52 | add the ability to apply directives to dynamically-created components (#60137) |
| feat - 326d48afb4 | drop support for TypeScript older than 5.8 (#60197) |
| feat - d260ca3091 | emit template function for template related profiler hooks (#60174) |
| feat - a4bad8d361 | export signalGetFn from signal primitives (#60497) |
| feat - 4812215a7b | Expose Injector.destroy on Injector created with Injector.create (#60054) |
| feat - c1bcae91dd | expose performance data in Chrome DevTools (#60789) |
| feat - 809b5b4596 | introduce new DI profiling event (#60158) |
| feat - d5fd7349fb | introduce TestBed.tick() (#60993) |
| feat - 4e88e18a8e | mark toObservable as stable (#60449) |
| feat - 727cda3856 | mark linkedSignal API as public (#60865) |
| feat - 644d9f3bbd | mark the toSignal API as stable (#60442) |
| feat - e711f99d81 | move provideExperimentalCheckNoChangesForDebug to provideCheckNoChangesConfig (#60906) |
| feat - 7ccec1494f | move DOCUMENT token into core (#60663) |
| feat - 953c4b2580 | Move zoneless change detection to dev preview (#60748) |
| feat - 611baaf069 | remove InjectFlags from public API (#60318) |
| feat - 5e209cb560 | remove TestBed.get (#60414) |
| feat - d8fbb909ce | rename afterRender to afterEveryRender and stabilize (#60999) |
| feat - 567522398f | stabilize incremental hydration api (#60888) |
| feat - 8d050b5bfc | stabilize linkedSignal API (#60741) |
| feat - 866cea9a05 | Stabilize PendingTasks Injectable (#60716) |
| feat - bf8492b871 | stabilize withI18nSupport() api (#60889) |
| feat - be44cc8f40 | support listening to outputs on dynamically-created components (#60137) |
| feat - fe9b79b615 | update Node.js version support (#60545) |
| fix - e170d24240 | add migration away from InjectFlags (#60318) |
| fix - 7eb59d3887 | added @angular/compiler as a peer dependency (#55610) |
| fix - 5f7f04634f | call DestroyRef on destroy callback if view is destroyed (#58008) |
| fix - 7232ce5b17 | Catch and report rejections in async function of PendingTasks.run (#60044) |
| fix - fd12220a35 | defer block render failures should report to application error handler (#60149) |
| fix - 3459faadbf | do not allow setInput to be used with inputBinding (#60137) |
| fix - 0ac949c266 | do not run change detection on global error events (#60944) |
| fix - 4fe34f4cfe | enable stashing only when withEventReplay() is invoked (#61077) |
| fix - 962b59b14e | Ensure ComponentFixture does not duplicate error reporting from FakeAsync (#60104) |
| fix - 7b819be83f | Ensure errors in listeners report to the application error handler (#60251) |
| fix - ff772d7800 | fix typing on injector.get to omit 'any' (#60202) |
| fix - 13d1c8ab38 | fixes timing of hydration cleanup on control flow (#60425) |
| fix - 0b69b61929 | Flush animations when no component has been checked (#58089) |
| fix - 3ba39bc28f | getting resource value throws an error instead of returning undefined (#61441) |
| fix - ca6295e90b | handle different DI token types in Chrome DevTools integration (#61333) |
| fix - 0162ceb427 | inject migration should treat @Attribute as optional (#60916) |
| fix - ea5eb28865 | input targeting not checking if input exists on host (#60137) |
| fix - c8951159ac | mark zone.js as an optional peer dependency (#61616) |
| fix - d62379bb13 | move reload method from Resource to WritableResource (#61441) |
| fix - a89f1cff24 | narrow error type for resources API (#61441) |
| fix - 624be2ef0c | prevent stash listener conflicts (#59635) |
| fix - 017cc0a37c | properly handle app stabilization with defer blocks (#61040) |
| fix - 6e79eaf739 | reading resource value after reload in the error state (#61441) |
| fix - 3d85d9363c | reduce total memory usage of various migration schematics (#60774) |
| fix - 1c7b356625 | release hasPendingTasks observers (#59723) |
| fix - 43cbc58254 | remove forceRoot flag for effects (#60535) |
| fix - 48974c3cf8 | remove rejectErrors option encourages uncaught exceptions (#60397) |
| fix - 491b0a4ead | Remove duplicate reporting of errors in CDR.detectChanges (#60056) |
| fix - 04d963c0a5 | remove unused parameter from listener instruction (#60406) |
| fix - 0ae1889560 | run ApplicationRef.prototype.bootstrap in NgZone (#60720) |
| fix - a611b234d7 | run root effects in creation order (#60534) |
| fix - 338818ce89 | Surface errors from ApplicationRef.tick to callsite (#60102) |
| fix - 350776b412 | TestBed.tick should ensure test components are synchronized (#61382) |
| fix - 3d4ddd2247 | Testing should not throw when Zone does not patch test FW APIs (#61628) |
| fix - 30e081287d | update min Node.js support to 20.19, 22.12, and 24.0 (#61500) |
| refactor - b407157ee8 | Deprecate the structural directives ngIf/ngFor/ngSwitch. (#60492) |
| refactor - c2987d8402 | stop producing ng-reflect attributes by default (#60973) |
Breaking Changes
core
- Breaking
TypeScript versions less than 5.8 are no longer supported.
- Breaking
The
TestBed.flushEffects()was removed - use
theTestBed.tick()instead. - Breaking
provideExperimentalCheckNoChangesForDebughas several
breaking changes:It is renamed to
provideCheckNoChangesConfigThe behavior applies to all checkNoChanges runs
The
useNgZoneOnStableoption is removed. This wasn't found to be generally
more useful thaninterval
- Breaking
provideExperimentalZonelessChangeDetectionis
renamed toprovideZonelessChangeDetectionas it is now "Developer
Preview" rather than "Experimental". - Breaking
InjectFlagshas been removed.injectno longer acceptsInjectFlags.Injector.getno longer acceptsInjectFlags.EnvironmentInjector.getno longer acceptsInjectFlags.TestBed.getno longer acceptsInjectFlags.TestBed.injectno longer acceptsInjectFlags.
- Breaking
TestBed.gethas been removed. UseTestBed.injectinstead.
- Breaking
afterRender was renamed to afterEveryRender.
- Breaking
Angular no longer supports Node.js v18.
Node.js versions 22.0 to 22.10 are also no longer supported.
Before upgrading to Angular v20, ensure the Node.js version is at least 20.11.1.
For the full list of supported versions, visit: angular.dev/reference/versions - Breaking
PendingTasks.runno longer returns the result of the
async function. If this behavior is desired, it can be re-implemented
manually with thePendingTasks.add. Be aware, however, that promise rejections
will need to be handled or they can cause the node process to shut down
when using SSR. - Breaking
Uncaught errors in listeners which were previously only reported to
ErrorHandlerare now also reported to Angular's internal error
handling machinery. For tests, this means that the error will be
rethrown by default rather than only logging the error. Developers
should fix these errors, catch them in the test if the test is
intentionally covering an error case, or userethrowApplicationErrors: falseinconfigureTestingModuleas a last resort. - Breaking
The
anyoverload has been removed frominjector.get. It now only supportsProviderToken<T>and (deprecated
since v4)string. - Breaking
Animations are guaranteed to be flushed when Angular
runs automatic change detection or manual calls toApplicationRef.tick.
Prior to this change, animations would not be flushed in some situations
if change detection did not run on any views attached to the
application. This change can affect tests which may rely on the old
behavior, often by making assertions on DOM elements that should have
been removed but weren't because DOM removal is delayed until animations
are flushed. - Breaking
ApplicationRef.tickwill no longer catch and report
errors to the appplicationErrorHandler. Errors will instead be thrown out of
the method and will allow callers to determine how to handle these
errors, such as aborting follow-up work or reporting the error and
continuing. - Breaking
This commit deprecates
ng-reflect-*attributes and updates the runtime to stop producing them by default. Please refactor application and test code to avoid relying onng-reflect-*attributes.To enable a more seamless upgrade to v20, we've added the
provideNgReflectAttributes()function (can be imported from the@angular/corepackage), which enables the mode in which Angular would be producing those attribites (in dev mode only). You can add theprovideNgReflectAttributes()function to the list of providers within the bootstrap call.
Deprecations
core
- Deprecated
ngIf/ngFor/ngSwitchare deprecated. Use the control flow blocks instead (@for/@if/@switch).
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.