@angular/core
22.2.6 · 12 Nov 2026MIT8.5M / weekRepositoryHomepagenpmAtom feed
19.2.25 is the newest release of 19.x.
In short
7 breaking2 fixed2 changed
- Breaking
Angular directives, components and pipes are now standalone by default.
- Breaking
TypeScript versions less than 5.5 are no longer supported.
- Breaking
ExperimentalPendingTaskshas been renamed toPendingTasks. - Breaking
The
autoDetectfeature ofComponentFixturewill now attach the fixture to theApplicationRef. As a result, errors during automatic change detection of the fixture be reported to theErrorHandler. This change may cause custom error handlers to observe new failures that were previously unreported. - Breaking
createComponentwill now render default fallback with emptyprojectableNodes. - Breaking
The timers that are used for zone coalescing and hybrid mode scheduling (which schedules an application state synchronization when changes happen outside the Angular zone) will now run in the zone above Angular rather than the root zone. This will mostly affect tests which use
fakeAsync: these timers will now be visible tofakeAsyncand can be affected bytickorflush. - Breaking
The deprecated
factoriesproperty inKeyValueDiffershas been removed.
Security
8 advisories affect 19.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 19.2.20
- HighAngular i18n vulnerable to Cross-Site ScriptingGHSA-prjf-86w9-mfqv · 27 Feb 2026Fixed in 19.2.19
- HighAngular has XSS Vulnerability via Unsanitized SVG Script AttributesGHSA-jrmj-c5cx-3cw6 · 9 Jan 2026Fixed in 19.2.18
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 19.2.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 19.2.23
Release note
The section about @angular/core of a note shared by several packages.
Breaking Changes
core
- Breaking
Angular directives, components and pipes are now standalone by default.
Specify
standalone: falsefor declarations that are currently declared in@NgModules.ng updatefor v19 will take care of this automatically.
- Breaking
TypeScript versions less than 5.5 are no longer supported.
- Breaking
Timing changes for
effectAPI (in developer preview):effects which are triggered outside of change detection run as part of
the change detection process instead of as a microtask. Depending on the
specifics of application/test setup, this can result in them executing
earlier or later (or requiring additional test steps to trigger; see below
examples).effects which are triggered during change detection (e.g. by input
signals) run earlier, before the component's template.
- Breaking
ExperimentalPendingTaskshas been renamed toPendingTasks. - Breaking
The
autoDetectfeature ofComponentFixturewill now
attach the fixture to theApplicationRef. As a result, errors during
automatic change detection of the fixture be reported to theErrorHandler.
This change may cause custom error handlers to observe new failures that were previously unreported. - Breaking
createComponentwill now render default fallback with emptyprojectableNodes.When passing an empty array to
projectableNodesin thecreateComponentAPI, the default fallback content
of theng-contentwill be rendered if present. To prevent rendering the default content, passdocument.createTextNode('')as aprojectableNode.
// The first ng-content will render the default fallback content if present createComponent(MyComponent. { projectableNodes: [[], [secondNode]] }); // To prevent projecting the default fallback content: createComponent(MyComponent. { projectableNodes: [[document.createTextNode('')], [secondNode]] }); - Breaking
Errors that are thrown during
ApplicationRef.tick
will now be rethrown when usingTestBed. These errors should be
resolved by ensuring the test environment is set up correctly to
complete change detection successfully. There are two alternatives to
catch the errors:Instead of waiting for automatic change detection to happen, trigger
it synchronously and expect the error. For example, a jasmine test
could writeexpect(() => TestBed.inject(ApplicationRef).tick()).toThrow()TestBedwill reject any outstandingComponentFixture.whenStablepromises. A jasmine test,
for example, could writeexpectAsync(fixture.whenStable()).toBeRejected().
As a last resort, you can configure errors to not be rethrown by
settingrethrowApplicationErrorstofalseinTestBed.configureTestingModule. - Breaking
The timers that are used for zone coalescing and hybrid
mode scheduling (which schedules an application state synchronization
when changes happen outside the Angular zone) will now run in the zone
above Angular rather than the root zone. This will mostly affect tests
which usefakeAsync: these timers will now be visible tofakeAsync
and can be affected bytickorflush. - Breaking
The deprecated
factoriesproperty inKeyValueDiffershas been removed.
core
| Commit | Description |
|---|---|
| feat - 6ea8e1e9aa | Add a schematics to migrate to standalone: false. (#57643) |
| feat - 3ebe6b4ad4 | Add async run method on ExperimentalPendingTasks (#56546) |
| feat - 69fc5ae922 | Add incremental hydration public api (#58249) |
| feat - 8ebbae88ca | Add rxjs operator prevent app stability until an event (#56533) |
| feat - 19edf2c057 | add syntactic sugar for initializers (#53152) |
| feat - c93b510f9b | allow passing undefined without needing to include it in the type argument of input (#57621) |
| feat - ab25a192ba | allow running output migration on a subset of paths (#58299) |
| feat - fc59e2a7b7 | change effect() execution timing & no-op allowSignalWrites (#57874) |
| feat - 8bcc663a53 | drop support for TypeScript 5.4 (#57577) |
| feat - 18d8d44b1f | experimental resource() API for async dependencies (#58255) |
| feat - 9762b24b5e | experimental impl of rxResource() (#58255) |
| feat - 6b8c494d05 | flipping the default value for standalone to true (#58169) |
| feat - e6e5d29e83 | initial version of the output migration (#57604) |
| feat - be2e49639b | introduce afterRenderEffect (#57549) |
| feat - ec386e7f12 | introduce debugName optional arg to framework signal functions (#57073) |
| feat - 8311f00faa | introduce the reactive linkedSignal (#58189) |
| feat - 1b1519224d | mark input, output and model APIs as stable (#57804) |
| feat - a7eff3ffaa | mark signal-based query APIs as stable (#57921) |
| feat - a1f229850a | migrate ExperimentalPendingTasks to PendingTasks (#57533) |
| feat - 3f1e7ab6ae | promote outputFromObservable & outputToObservable to stable. (#58214) |
| feat - 97c44a1d6c | Promote takeUntilDestroyed to stable. (#58200) |
| feat - e5adf92965 | stabilize @let syntax (#57813) |
| feat - b063468027 | support TypeScript 5.6 (#57424) |
| feat - 819ff034ce | treat directives, pipes, components as by default (#58229) |
| fix - ee426c62f0 | allow signal write error (#57973) |
| fix - c095679f92 | avoid breaking change with apps using rxjs 6.x (#58341) |
| fix - 71ee81af2c | clean up event contract once hydration is done (#58174) |
| fix - f03d274e87 | ComponentFixture autoDetect feature works like production (#55228) |
| fix - 950a5540f1 | Ensure the ViewContext is retained after closure minification (#57903) |
| fix - 7b1e5be20b | fallback to default ng-content with empty projectable nodes. (#57480) |
| fix - 0300dd2e18 | Fix fixture.detectChanges with autoDetect disabled and zoneless (#57416) |
| fix - 5fe57d4fbb | fixes issues with control flow and incremental hydration (#58644) |
| fix - 51933ef5a6 | prevent errors on contract cleanup (#58614) |
| fix - fd7716440b | Prevents trying to trigger incremental hydration on CSR (#58366) |
| fix - 656b5d3e78 | Re-assign error codes to be within core bounds (<1000) (#53455) |
| fix - 6e0af6dbbb | resolve forward-referenced host directives during directive matching (#58492) |
| fix - 468d3fb9b1 | rethrow errors during ApplicationRef.tick in TestBed (#57200) |
| fix - 226a67dabb | Schedulers run in zone above Angular rather than root (#57553) |
| perf - 97fb86d331 | set encapsulation to None for empty component styles (#57130) |
| refactor - c15ec36bd1 | remove deprecated factories Property in KeyValueDiffers (#58064) |
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.