Deliver web apps with confidence 🚀
Commit | Description |
---|---|
remove deprecated matchesElement from AnimationDriver (#55479) |
Commit | Description |
---|---|
Deprecate Local Data API functions (#54483) |
Commit | Description |
---|---|
don't type check the bodies of control flow nodes in basic mode (#55360) |
Commit | Description |
---|---|
Migration schematics for HttpClientModule (#54020) |
Commit | Description |
---|---|
remove deprecated transfer state APIs (#55474) |
Commit | Description |
---|---|
add nonce attribute to event record script (#55495) |
Commit | Description |
---|---|
withNavigationErrorHandler can convert errors to redirects (#55370) |
matchesElement
method has been removed from AnimationDriver
as it is unused.async
has been removed, use waitForAsync
instead.By default we now prevent caching of HTTP requests that require authorization . To opt-out from this behaviour use the includeRequestsWithAuthHeaders
option in withHttpTransferCache
.
Example:
withHttpTransferCache({
includeRequestsWithAuthHeaders: true,
})
StateKey
, TransferState
and makeStateKey
have been removed from @angular/platform-browser
, use the same APIs from @angular/core
.getCurrencySymbol
, getLocaleCurrencyCode
, getLocaleCurrencyName
, getLocaleCurrencySymbol
, getLocaleDateFormat
, getLocaleDateTimeFormat
, getLocaleDayNames
, getLocaleDayPeriods
, getLocaleDirection
, getLocaleEraNames
, getLocaleExtraDayPeriodRules
, getLocaleExtraDayPeriods
, getLocaleFirstDayOfWeek
, getLocaleId
, getLocaleMonthNames
, getLocaleNumberFormat
, getLocaleNumberSymbol
, getLocalePluralCase
, getLocaleTimeFormat
, getLocaleWeekEndRange
, getNumberOfCurrencyDigits
HttpClientModule
, HttpClientXsrfModule
and HttpClientJsonpModule
As mentionned, those modules can be replaced by provider function only.
Commit | Description |
---|---|
remove deprecated isPlatformWorkerApp and isPlatformWorkerUi API (#55302) |
Commit | Description |
---|---|
remove container index from conditional instruction (#55190) | |
remove support for unassignable expressions in two-way bindings (#55342) |
Commit | Description |
---|---|
avoid running CDs on controllerchange (#54222) |
isPlatformWorkerUi
and isPlatformWorkerApp
have been removed without replacement, as they serve no purpose since the removal of the WebWorker platform.Angular will ensure change detection runs, even when the state update originates from outside the zone, tests may observe additional rounds of change detection compared to the previous behavior.
This change will be more likely to impact existing unit tests.
This should usually be seen as more correct and the test should be updated,
but in cases where it is too much effort to debug, the test can revert to the old behavior by adding
provideZoneChangeDetection({schedulingMode: NgZoneSchedulingMode.NgZoneOnly})
to the TestBed
providers.
Similarly, applications which may want to update state outside the zone
and not trigger change detection can add
provideZoneChangeDetection({schedulingMode: NgZoneSchedulingMode.NgZoneOnly})
to the providers in bootstrapApplication
or add
schedulingMode: NgZoneSchedulingMode.NgZoneOnly
to the
BootstrapOptions
of bootstrapModule
.
Testability methods increasePendingRequestCount
,
decreasePendingRequestCount
and getPendingRequestCount
have been
removed. This information is tracked with zones.
Commit | Description |
---|---|
invalid ImageKit quality parameter (#55193) | |
skip transfer cache on client (#55012) |
Commit | Description |
---|---|
output input flags as a literal (#55215) |
Commit | Description |
---|---|
TestBed should not override NgZone from initTestEnvironment (#55226) |
Commit | Description |
---|---|
implement getDefinitionAtPosition for Angular templates (#55269) |
Commit | Description |
---|---|
For FatalDiagnosticError , hide the message field without affecting the emit (#55160) |
Commit | Description |
---|---|
use switch statements to narrow Angular switch blocks (#55168) |
Commit | Description |
---|---|
Unified Control State Change Events (#54579) |
Commit | Description |
---|---|
avoid generating TS syntactic diagnostics for templates (#55091) |
Commit | Description |
---|---|
avoid conflicts with some greek letters in control flow migration (#55113) |
Commit | Description |
---|---|
add withI18nSupport() in developer preview (#55130) |
Commit | Description |
---|---|
Allow resolvers to return RedirectCommand (#54556) |
|
Routed components never inherit RouterOutlet EnvironmentInjector (#54265) |
RouterOutlet
. This means that providers available only to the
component that defines the RouterOutlet
will no longer be available to
route components in any circumstances. This was already the case
whenever routes defined providers, either through lazy loading an
NgModule
or through explicit providers
on the route config.Commit | Description |
---|---|
include transferCache when cloning HttpRequest (#54939) | |
manage different body types for caching POST requests (#54980) |
Commit | Description |
---|---|
allow external projects to use provided compiler options (#55035) | |
prevent underlying TS Service from handling template files (#55003) |
Commit | Description |
---|---|
account for variables in imports initializer (#55081) |
Commit | Description |
---|---|
preserve replaceUrl when returning a urlTree from CanActivate (#54042) | |
RouterLinkActive will always remove active classes when links are not active (#54982) |
ComponentFixture.whenStable
now matches the
ApplicationRef.isStable
observable. Prior to this change, stability
of the fixture did not include everything that was considered in
ApplicationRef
. whenStable
of the fixture will now include unfinished
router navigations and unfinished HttpClient
requests. This will cause
tests that await
the whenStable
promise to time out when there are
incomplete requests. To fix this, remove the whenStable
,
instead wait for another condition, or ensure HttpTestingController
mocks responses for all requests. Try adding HttpTestingController.verify()
before your await fixture.whenStable
to identify the open requests.
Also, make sure your tests wait for the stability promise. We found many
examples of tests that did not, meaning the expectations did not execute
within the test body.
In addition, ComponentFixture.isStable
would synchronously switch to
true in some scenarios but will now always be asynchronous.
UrlTree
as a redirect, the
redirecting navigation will now use replaceUrl
if the initial
navigation was also using the replaceUrl
option. If this is not
desirable, the redirect can configure new NavigationBehaviorOptions
by
returning a RedirectCommand
with the desired options instead of UrlTree
.Commit | Description |
---|---|
invoke method-based tracking function with context (#54960) |
Commit | Description |
---|---|
report errors when initializer APIs are used on private fields (#55070) |
Commit | Description |
---|---|
establish proper injector resolution order for @defer blocks (#55079) |
Commit | Description |
---|---|
include transferCache when cloning HttpRequest (#54939) | |
manage different body types for caching POST requests (#54980) |
Commit | Description |
---|---|
account for variables in imports initializer (#55081) |
Commit | Description |
---|---|
RouterLinkActive will always remove active classes when links are not active (#54982) |