Releases: angular/angular
Releases Β· angular/angular
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) -
TestBed
now 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 forTestBed
by providing theMockPlatformLocation
from
@angular/common/testing
in your providers:
{provide: PlatformLocation, useClass: MockPlatformLocation}
core
- (test only) - Using
provideZoneChangeDetection
in the
TestBed providers would previously preventTestBed
from 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: false
in
configureTestingModule
as a last resort. ignoreChangesOutsideZone
is no longer available as an
option for configuring ZoneJS change detection behavior.
platform-browser
- The deprecated
ApplicationConfig
export from@angular/platform-browser
has been removed.
Please importApplicationConfig
from@angular/core
instead.
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
UpgradeAdapter
is no longer available. Use
upgrade/static
instead
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.
20.2.2
20.2.1
21.0.0-next.0
compiler-cli
Commit | Description |
---|---|
disallow compiling with the emitDeclarationOnly TS compiler option enabled (#61609) |
http
Commit | Description |
---|---|
Provide http services in root (#56212) |
router
Commit | Description |
---|---|
convert lastSuccessfulNavigation to signal (#63057) |
Breaking Changes
compiler-cli
- The Angular compiler now produces an error when the
theemitDeclarationOnly
TS compiler option is enabled as this mode is
not supported.
router
lastSuccessfulNavigation
is now a signal and needs to be invoked
20.2.0
animations
Commit | Description |
---|---|
deprecate the animations package (#62795) |
compiler
Commit | Description |
---|---|
allow more characters in square-bracketed attribute names (#62742) | |
fixes animation event host bindings not firing (#63217) |
compiler-cli
Commit | Description |
---|---|
add diagnostic for uninvoked functions in text interpolation (#59191) | |
display proper function in NG8117 message (#62842) | |
Ignore diagnostics on ngTemplateContextGuard lines in TCB (#63054) | |
prevent dom event assertion in TCB generation on older angular versions (#63053) |
core
Commit | Description |
---|---|
add enter and leave animation instructions (#62682) | |
add option to infer the tag names of components in tests (#62283) | |
Promote zoneless to stable (#62699) | |
render ARIA property bindings as attributes (#62630) | |
support as aliases on else if blocks (#63047) |
|
support TypeScript 5.9 (#62541) | |
checks if body exists before continuing (#62768) | |
ensure animate events do not have duplicate elements (#63216) | |
Fix animate.enter class removal when composing classes (#62981) |
|
fix support for space separated strings in leave animations (#62979) | |
fixes empty animations when recalculating styles (#63007) | |
fixes timing issues with enter animations (#62925) | |
handle cases where classes added have no animations (#63242) | |
prevents duplicate nodes when @if toggles with leave animations (#63048) |
|
switch check to documentElement with chaining (#62773) | |
deprecate animations field on component interface (#62895) |
forms
Commit | Description |
---|---|
add support for pushing an array of controls to formarray (#57102) |
http
Commit | Description |
---|---|
Add redirected property to HttpResponse and HttpErrorResponse (#62675) | |
add referrer & integrity support for fetch requests in httpResource (#62461) | |
Add support for fetch referrer & integrity options in HttpClient (#62417) | |
Add missing timeout and transferCache options to HttpClient (#62586) |
language-service
Commit | Description |
---|---|
support auto-import for attribute completions (#62797) | |
support to report the deprecated API in the template (#62054) | |
Support to resolve the re-export component. (#62585) |
platform-browser
Commit | Description |
---|---|
Warns on conflicting hydration and blocking navigation (#62963) |
router
Commit | Description |
---|---|
add a currentNavigation signal to the Router service. (#62971) |
|
add a currentNavigation signal to the Router service. (#63011) | |
ensure preloaded components are properly activated (#62502) |
service-worker
Commit | Description |
---|---|
add messageerror event handling and logging (#62834) | |
Adds for type in provideServiceWorker (#62831) | |
Adds support for updateViaCache in provideServiceWorker (#62721) | |
Improves storage full detection in data caching (#62737) | |
Logs unhandled promise rejections in service worker (#63059) | |
notify clients about version failures (#62718) |
Deprecations
animations
- @angular/animations
core
- @angular/animations
router
- The Router.getCurrentNavigation method is deprecated. Use the Router.currentNavigation signal instead.