Change the "Updating to v9" docs to reflect that we want to use the latest 8.3.x CLI build for updating and not just 8.3.15. PR Close #33518
		
			
				
	
	
	
		
			5.3 KiB
		
	
	
	
	
	
	
	
			
		
		
	
	Updating to Angular Version 9
This guide contains everything you need to know about updating to the next Angular version.
Updating CLI Apps
If your application uses the CLI, you can update to version 9 automatically with the help of the ng update script:
npm install --no-save @angular/cli@^8.3.15
ng update @angular/cli @angular/core --next
Additionally, during the RC period, the --next command line flag is required. This flag will no longer be necessary once version 9 final is released.
The script will run a series of small migrations that will transform the code of your application to be compatible with version 9.
If you're curious about the specific migrations being run (e.g. what code is changing and why), see the automated migrations section.
Changes and Deprecations in Version 9
{@a breaking-changes}
New Breaking Changes
- 
Angular now compiles with Ivy by default. See Ivy compatibility section. 
- 
Typescript 3.4 and 3.5 are no longer supported. Please update to Typescript 3.6. 
- 
tslib is now listed as a peer dependency rather than a direct dependency. Users not using the CLI will need to manually install tslib via yarn add tslibornpm install tslib --save.
{@a deprecations}
New Deprecations
| API | Replacement | Notes | 
|---|---|---|
| entryComponents | none | See entryComponents | 
| ANALYZE_FOR_ENTRY_COMPONENTS | none | See ANALYZE_FOR_ENTRY_COMPONENTS | 
| ModuleWithProviderswithout a generic | ModuleWithProviderswith a generic | See ModuleWithProviderssection | 
| esm5andfesm5distribution in@angular/*npm packages | esm2015andfesm2015entrypoints | See esm5andfesm5 | 
| TestBed.get | TestBed.inject | Same behavior, but type safe. | 
{@a removals}
New Removals of Deprecated APIs
| Package | API | Replacement | Notes | 
|---|---|---|---|
| @angular/core | Renderer | Renderer2 | Migration guide. | 
| @angular/core | RootRenderer | RendererFactory2 | none | 
| @angular/core | RenderComponentType | RendererType2 | none | 
| @angular/common | DeprecatedI18NPipesModule | CommonModule | none | 
| @angular/common | DeprecatedCurrencyPipe | CurrencyPipe | none | 
| @angular/common | DeprecatedDatePipe | DatePipe | none | 
| @angular/common | DeprecatedDecimalPipe | DecimalPipe | none | 
| @angular/common | DeprecatedPercentPipe | PercentPipe | none | 
| @angular/forms | NgFormSelectorWarning | none | |
| @angular/forms | ngFormelement selector | ng-formelement selector | none | 
| @angular/service-worker | versionedFiles | files | In the service worker configuration file ngsw-config.json, replaceversionedFileswithfiles. See Service Worker Configuration. | 
{@a ivy-features}
Ivy Features
Angular version 9 introduces more comprehensive type-checking. For details, see Template Type-checking.
{@a ivy}
Ivy Compatibility
In Version 9, Angular Ivy is the default rendering engine. If you haven't heard of Ivy, you can read more about it in the Angular Ivy guide.
For guidance on debugging and a list of minor changes associated with Ivy, please see our compatibility guide.
For help with opting out of Ivy, please see the instructions here.
{@a migrations}
Automated Migrations for Version 9
Read about the migrations the CLI handles for you automatically: