Release Notes
compiler
compiler-cli
core
forms
http
language-service
| Commit | Description |
|---|---|
| add angular template inlay hints support | |
| add Document Symbols support for Angular templates | |
| Add support for idle timeout in defer blocks | |
Add support for @Input with transforms |
migrations
platform-browser
| Commit | Description |
|---|---|
| make incremental hydration default behavior | |
remove unused styles when associated host is dropped |
|
| remove Hammer integration |
router
service-worker
| Commit | Description |
|---|---|
| resolve TS 6.0 compatibility for messageerror listener |
upgrade
| Commit | Description |
|---|---|
remove getAngularLib/setAngularLib |
Breaking Changes
compiler
- This change will trigger the
nullishCoalescingNotNullableandoptionalChainNotNullablediagnostics on exisiting projects. You might want to disable those 2 diagnotiscs in yourtsconfigtemporarily. - data prefixed attribute no-longer bind inputs nor outputs.
- The compiler will throw when there a when inputs, outputs or model are binding to the same input/outputs.
invariables will throw in template expressions.
compiler-cli
- Elements with multiple matching selectors will now throw at compile time.
core
- The second arguement of appRef.bootstrap does not accept
anyanymore. Make sure the element you pass is not nullable. -
- TypeScript versions older than 6.0 are no longer supported.
- Leave animations are no longer limited to the element being removed.
- Component with undefined
changeDetectionproperty are nowOnPushby default. SpecifychangeDetection: ChangeDetectionStrategy.Eagerto keep the previous behavior. - change AnimationCallbackEvent.animationComplete signature
ChangeDetectorRef.checkNoChangeswas removed. In tests usefixture.detectChanges()instead.createNgModuleRefwas removed, usecreateNgModuleinsteadComponentFactoryResolverandComponentFactoryare no longer available. Pass the component class directly to APIs that previously required a factory, such asViewContainerRef.createComponentor use the standalonecreateComponentFunction.ComponentFactoryResolverandComponentFactoryare no longer available. Pass the component class directly to APIs that previously required a factory, such asViewContainerRef.createComponentor use the standalonecreateComponentfunction.
forms
minandmaxvalidation rules no longer support string values. Bound values must be numbers or null.
http
- Use the
HttpXhrBackendwithprovideHttpClient(withXhr)if you want to keep supporting upload progress reports.
platform-browser
- This removes styles when they appear to no longer be used by an associated
host. However other DOM on the page may still be affected by those styles if not leveragingViewEncapsulation.Emulatedor if those styles are used by elements outside of Angular, potentially causing other DOM to appear unstyled. - Hammer.js integration has been removed. Use your own implementation.
router
The return type for
TitleStrategy.getResolvedTitleForRoutewas previously 'any' while the actual return type could only be eitherstringorundefined. The return type now reflects the possible values correctly. Code that reads the value may need to be adjusted.(cherry picked from commit ad37f52c1212164c51ffcc533067af05c2c33c89)
The
currentSnapshotparameter inCanMatchFnand thecanMatchmethod of theCanMatchinterface is now required. While this was already the behavior of the Router at runtime, existing class implementations ofCanMatchmust now include the third argument to satisfy the interface.paramsInheritanceStrategy now defaults to 'always'
The default value of paramsInheritanceStrategy has been changed from 'emptyOnly' to 'always'. This means that route parameters are inherited from all parent routes by default. To restore the previous behavior, set paramsInheritanceStrategy to 'emptyOnly' in your router configuration.
provideRoutes()has been removed. UseprovideRouter()orROUTESas multi token if necessary.
upgrade
- Deprecated
getAngularLib/setAngularLibhave been removed usegetAngularJSGlobal/setAngularJSGlobalinstead.
Deprecations
http
withFetchis now deprecated, it can be safely removed.- The
reportProgressoption is deprecated please usereportUploadProgress&reportDownloadProgressinstead.