Releases: angular/angular
21.0.0-next.3
| Commit | Description |
|---|---|
| remove refresh button from transfer state tab (#63592) |
compiler-cli
| Commit | Description |
|---|---|
| enable type checking of host bindings by default (#63654) |
core
| Commit | Description |
|---|---|
introduce BootstrapContext for improved server bootstrapping (#63562) |
|
| drop support for TypeScript 5.8 (#63589) |
migrations
| Commit | Description |
|---|---|
| fix bug in ngclass-to-class migration (#63617) |
Breaking Changes
compiler-cli
-
- Previously hidden type issues in host bindings may show up in your builds. Either resolve the type issues or set
"typeCheckHostBindings": falsein theangularCompilerOptionssection of your tsconfig.
- Previously hidden type issues in host bindings may show up in your builds. Either resolve the type issues or set
core
-
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. -
- TypeScript versions less than 5.9 are no longer supported.
20.3.0-rc.0
| Commit | Description |
|---|---|
| remove refresh button from transfer state tab (#63592) |
core
| Commit | Description |
|---|---|
introduce BootstrapContext for improved server bootstrapping (#63636) |
Breaking Changes
core
-
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.(cherry picked from commit 8bf80c9)
20.3.0
| Commit | Description |
|---|---|
| remove refresh button from transfer state tab (#63592) |
core
| Commit | Description |
|---|---|
introduce BootstrapContext for improved server bootstrapping (#63636) |
Breaking Changes
core
-
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.(cherry picked from commit 8bf80c9)
19.2.15
core
| Commit | Description |
|---|---|
introduce BootstrapContext for improved server bootstrapping (#63639) |
Breaking Changes
core
-
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.
18.2.14
core
| Commit | Description |
|---|---|
introduce BootstrapContext for improved server bootstrapping (#63640) |
Breaking Changes
core
-
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.(cherry picked from commit 8bf80c9)
21.0.0-next.2
common
| Commit | Description |
|---|---|
| Add experimental support for the Navigation API (#63406) |
compiler
| Commit | Description |
|---|---|
| fixes regression with event parsing and animate prefix (#63470) |
core
| Commit | Description |
|---|---|
| avoid injecting internal error handler from a destroyed injector (#62275) | |
| Explicit Zone CD in TestBed providers should not override TestBed error handler (#63404) | |
| Fix cancellation of animation enter classes (#63442) | |
| Fixed inject migration schematics for migrate destructured properties (#62832) | |
Prevent an error on cleanup when an rxResource stream threw before returning an Observable (#63342) |
|
| Remove ignoreChangesOutsideZone option (#62700) |
forms
| Commit | Description |
|---|---|
| add experimental signal-based forms (#63408) | |
| consistent treatment of empty (#63456) |
http
| Commit | Description |
|---|---|
| Add reponseType property to HttpResponse and HttpErrorResponse (#63043) |
platform-browser
| Commit | Description |
|---|---|
remove deprecated ApplicationConfig export (#63529) |
platform-server
| Commit | Description |
|---|---|
| prevent false warning for duplicate state serialization (#63525) |
router
| Commit | Description |
|---|---|
| Update recognize stage to use internally async/await (#62994) |
upgrade
| Commit | Description |
|---|---|
| Remove deprecated UpgradeAdapter (#61659) |
Breaking Changes
common
- (test only) -
TestBednow provides a fakePlatformLocation
implementation that supports the Navigation API. This may break some
tests, though we have not observed any failures internally. You can revert to the
old default forTestBedby providing theMockPlatformLocationfrom
@angular/common/testingin your providers:
{provide: PlatformLocation, useClass: MockPlatformLocation}
core
- (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: falsein
configureTestingModuleas a last resort. ignoreChangesOutsideZoneis no longer available as an
option for configuring ZoneJS change detection behavior.
platform-browser
- The deprecated
ApplicationConfigexport from@angular/platform-browserhas been removed.
Please importApplicationConfigfrom@angular/coreinstead.
router
- Router navigations may take several additional
microtasks to complete. Tests have been found to often be highly
dependent on the exact timing of navigation completions with respect to
the microtask queue. The most common fix for tests is to ensure all
navigations have been completed before making assertions. On rare
occasions, this can also affect production applications. This can be
caused by multiple subscriptions to router state throughout the application,
both of which trigger navigations that happened to not conflict with the
previous timing.
upgrade
UpgradeAdapteris no longer available. Use
upgrade/staticinstead
20.2.4
20.2.3
compiler
| Commit | Description |
|---|---|
| fixes regression with event parsing and animate prefix (#63470) |
core
| Commit | Description |
|---|---|
| avoid injecting internal error handler from a destroyed injector (#62275) | |
| Fix cancellation of animation enter classes (#63442) | |
Prevent an error on cleanup when an rxResource stream threw before returning an Observable (#63342) |
21.0.0-next.1
common
| Commit | Description |
|---|---|
removengModuleFactory input of NgComponentOutlet (#62838) |
compiler
| Commit | Description |
|---|---|
| fixes animations on elements with structural directives (#63390) | |
| Keep paraenthesis in Nullish + Boolean expression. (#63292) |
core
| Commit | Description |
|---|---|
Ensures @for loop animations never get cancelled (#63328) |
|
| fix memory leak with leaving nodes tracking (#63328) | |
Fixes animate.leave binding to a string with spaces (#63366) |
forms
| Commit | Description |
|---|---|
| Add FormArrayDirective (#55880) |
migrations
| Commit | Description |
|---|---|
| add migration to convert ngClass to use class (#62983) |
Breaking Changes
common
- NgModuleFactory has been removed, use NgModule instead.
forms
- This new directive will conflict with existing FormArray directives or formArray inputs on the same element.