SlideShare a Scribd company logo
1 of 29
Download to read offline
AngularVersion10is
Here:Checkoutthe
NewFeatures,Notable
Changes,Deprecations
andRemovals
www.bacancytechnology.com
On 24th June 2020, Angular introduced the
latest version – Angular 10.0.0. This is the
latest release, but the team has mostly
focused on the ecosystem and quality tools,
instead of introducing new features
Four months back in February, the
community has paved its way for the newer
version. Ever since the Angular IVY was
introduced, the community was keeping
close tabs on the frequent updates. Angular
9.1 was introduced in April with some minor
updates, including Support for TypeScript
3.8, bug fixes, and performance
improvements.
Just like every other Angular developer, I
found this update very exciting and
followed the news to find out what Angular
10 has bought for all of us. I checkout
numbers of articles, but to my surprise,
they have mostly focused on quick
highlights, so I thought of writing a
comprehensive blog post explaining what’s
new in Angular 10.
Let’s get started.
Major
Changes
Angular 9 was introduced with TypeScript
3.7 support. Later, TypeScript introduced
3.8, so to offer hassle-free Support Angular
released v9.1. Angular’s team has always
ensured to keep the framework up-to-date
and relevant, so to respond to the latest
version of TypeScript 3.9, Angular
introduced v10 along with introducing
TSLib and TSLint.
The faster Angular builds, TypeScript fixes,
and updated features are available for
Angular developers. Angular programmers
will have access to the more intricate
TypeScript configuration. TypeScript has
stopped offering Support to the earlier
versions, so you will be required to install
v3.9 in your project.
TypeScript v3.9 Support
TSLib – The runtime library for TypeScript
comprising all the TypeScript helper
functions, has been updated to TSlib 2.0.
TSLint – The static analysis tool for
TypeScript has been updated to TSLint
6.The Angular team has updated the project
layout with v10. We will have a
tsconfig.base.json and additional
tsconfig.json for package configuration and
support IDEs.
TSLib v2.0 and TSLint v6
Before:
{
"files": [],
"references": [
{
"path": "./tsconfig.app.json"
},
{
"path": "./tsconfig.spec.json"
},
{
"path": "./e2e/tsconfig.json"
}
]
}
After:
"files": [],
"references": [
{
"path": "./tsconfig.app.json"
},
{
"path": "./tsconfig.spec.json"
},
{
"path": "./e2e/tsconfig.json"
},
{
"path":
"./projects/core/tsconfig.lib.json"
},
{
"path":
"./projects/core/tsconfig.spec.json"
}
]
}
Default
Browser
Configuration
The browser configuration has been
introduced to eliminate older and less-
updated bowsers. Internet Explorer 9, IE 10,
and IE mobile will not get any official
support from now onwards. Microsoft has
also stopped offering Support for these
browsers. Check out the updated
supportive Browser list file here.
Before:
After::
v10 Defaults
Executing the following code will also get
you the list of supported web browsers.
npx browsers list
To find out more on this go through
this link
Warnings for
CommonJS
Imports
There are chances that Angular application
may become slower when we import
dependencies, which are packaged with
CommonJS. CommonJS module is
introduced to structure and organize your
JavaScript code that is heavily influenced by
Node’s module management. Read more
about CommonJS here.
From Angular V10, developers will be
notified with a warning when dependency
packaged could result in a slower and larger
application. ECMAScript module bundle is
available as a substitute.
Angular Material UI now officially includes
To make use of the new date range picker,
use the mat-date-range-input and mat-
date-range-picker components.
Please refer to the official documents to
find out more.
New Date Range Picker
To improve the maintainability, catch bugs
and allow CLI to do advanced
optimizations, you can enable the flag
initializes with ng new, via ng new –strict
from the optional stricter settings.
Optional Stricter Settings
{
...
"budgets": [
{
"type": "initial",
"maximumWarning": "500kb",
"maximumError": "1mb"
},
{
"type": "anyComponentStyle",
"maximumWarning": "2kb",
"maximumError": "4kb"
}
]
...
}
Default bundle budgets are reduced by ~75%
Enable strict mode in TypeScript
Turns template type checking to Strict
Configure lint to suppress warnings to prevent
declarations of type any
Enable more advanced tree-shaking to configure
your app as a side-effect
The Strict flag does the listed
below things,
Here you need to make sure that you have a post-
install script in your “package.json” file to execute
NGCC after an installation:
{
"scripts": {
"postinstall": "ngcc"
}
}
With this release, NGCC is more robust. Earlier it
wasn’t capable if recovery worker processes get
crashed; however, issues with NGCC handing can
now be fixed. Significant performance
enhancements have been made to NGCC.
NGCC
Unfortunately, Angular Bazel has left Angular labs,
and it won’t be the default tool in Angular CLI. So
you won’t get any official support, and if you are
wondering about the reasons why the Angular team
has discontinued it, then check them out here.
However Angular team has referred Monorepo if you
are interested in building Angular with Bazel.
Bazel
Changes in Package Format
Changes and esm5/fesm5
Angular’s new package format does not include esm5
and fesm5. The default language level consumed by
Angular tooling is the reason behind these
mandatory changes.
Before:
{
...
"main": "bundles/abp-ng.core.umd.js",
"module": "fesm5/abp-ng.core.js",
"es2015": "fesm2015/abp-ng.core.js",
"esm5": "esm5/abp-ng.core.js",
"esm2015": "esm2015/abp-ng.core.js",
"fesm5": "fesm5/abp-ng.core.js",
"fesm2015": "fesm2015/abp-ng.core.js",
...
}
After:
{
...
"main": "bundles/abp-ng.core.umd.js",
"module": "fesm2015/abp-ng.core.js",
"es2015": "fesm2015/abp-ng.core.js",
"esm2015": "esm2015/abp-ng.core.js",
"fesm2015": "fesm2015/abp-ng.core.js",
...
}
If your existing applications depend on
esm5/fesm5, don’t worry; the system still
accepts them. Understand it in a similar
way; if your Angular library does not ship to
esm2015 or fesm2015, then still you don’t
worry because you know that CLI will take
care of it. In favor of build speed and bundle
optimization, it is suggested to deliver
ES2015 outputs.
Browse list
Usually, Angular generates bundles based
on the Browserlist configuration suggested
in the root app folder. Angular v10 will
search for .browserlistrc in your
application; if they don’t find it in the
browser list, then ng update command will
help you with the file rename.
Some Notable Changes:
Resolvers that return will cancel the
navigation. So to continue the
navigation to route, you will be required
to add some value defaultIfEmpty(…),
of(…)
Service worker implementations with
Vary headers will not work similarly.
They will simply be ignored. So it is
advisable to avoid caching such
resources as they can have
unpredictable behavior depending on
the user agents.
Because of this, cache match options are
now be configured in NGSW’s config file
Unknown property bindings in
templates or similar elements have been
increased “error” levels; earlier, it was a
warning.
formatDate() and DatePipe format codes
have been changed, as the previous
behavior was not correct for the day
span.
MinLength, as well as maxLength
validators, will only authenticate the
value if there’s a numeric length
property.
Angular has stopped sanitizing the style
property bindings because of the drop
of Support for IE6 and IE7 and the
performance cost.
Transplanted views had change
detection issues.; however, the issue is
fixed now.
Here’s a complete Angular 9 to Angular 10
update guideline.
ng update @angular/cli @angular/core
If you are upgrading manually using the
protractor, then it is advisable to update
protractor to 7.0.0+ as pervious introduced
versions had vulnerabilities.
How to update to version 10?
It is advisable to update to the one
significant version once at a time. If you are
currently using Angular v8 and want to
upgrade to Angular v10, then instead of
upgrading from Angular v8 to 10, first
upgrade from v8 to v9 and then v9 to v10.
I have tried to cover all the possible new
features, removals, notable changes, and
deprecations of Angular v10. Google-
developed framework v10 has not earth-
shattering release, but the features and
breaking changes it has brought can’t be
even ignored.
Suggestion:
If you are looking for well-versed Angular
developers who can help you upgrade your
existing application with minimum
disruption, then get in touch with us today.
Our Angular developers have successfully
performed many upgrades for numbers of
our clients to take their existing application
from an out-of-date to an up-to-date tech
stack with a cost-effective approach. Hire
Angular developers from us to leverage our
Angular upgrade service.
We are a globally renowned AngularJS
development company that can help you
perform routine maintenance, patch
security vulnerabilities, and implement the
latest features. You have landed on the right
page. We will stay one step ahead of your
competitors.
Wrapping Up
Thank You

More Related Content

What's hot

Enterprise Build And Test In The Cloud
Enterprise Build And Test In The CloudEnterprise Build And Test In The Cloud
Enterprise Build And Test In The Cloud
Carlos Sanchez
 

What's hot (20)

Test Driven Development with JavaFX
Test Driven Development with JavaFXTest Driven Development with JavaFX
Test Driven Development with JavaFX
 
React table tutorial use filter (part 2)
React table tutorial use filter (part 2)React table tutorial use filter (part 2)
React table tutorial use filter (part 2)
 
AngularJS Unit Test
AngularJS Unit TestAngularJS Unit Test
AngularJS Unit Test
 
Go swagger tutorial how to create golang api documentation using go swagger (1)
Go swagger tutorial how to create golang api documentation using go swagger (1)Go swagger tutorial how to create golang api documentation using go swagger (1)
Go swagger tutorial how to create golang api documentation using go swagger (1)
 
DevRock #01 What's new ASP.net 5
DevRock #01 What's new ASP.net 5DevRock #01 What's new ASP.net 5
DevRock #01 What's new ASP.net 5
 
Angular 2 Migration - JHipster Meetup 6
Angular 2 Migration - JHipster Meetup 6Angular 2 Migration - JHipster Meetup 6
Angular 2 Migration - JHipster Meetup 6
 
Serverless Angular, Material, Firebase and Google Cloud applications
Serverless Angular, Material, Firebase and Google Cloud applicationsServerless Angular, Material, Firebase and Google Cloud applications
Serverless Angular, Material, Firebase and Google Cloud applications
 
React 101
React 101React 101
React 101
 
Intro to JavaScript
Intro to JavaScriptIntro to JavaScript
Intro to JavaScript
 
Intermediate/Compliance training Guide
Intermediate/Compliance training GuideIntermediate/Compliance training Guide
Intermediate/Compliance training Guide
 
Introduction of React.js
Introduction of React.jsIntroduction of React.js
Introduction of React.js
 
Enterprise Build And Test In The Cloud
Enterprise Build And Test In The CloudEnterprise Build And Test In The Cloud
Enterprise Build And Test In The Cloud
 
React custom renderers
React custom renderersReact custom renderers
React custom renderers
 
Vitaliy Makogon: Migration to ivy. Angular component libraries with IVY support.
Vitaliy Makogon: Migration to ivy. Angular component libraries with IVY support.Vitaliy Makogon: Migration to ivy. Angular component libraries with IVY support.
Vitaliy Makogon: Migration to ivy. Angular component libraries with IVY support.
 
No more waiting for API - Android Stub Server
No more waiting for API - Android Stub ServerNo more waiting for API - Android Stub Server
No more waiting for API - Android Stub Server
 
Serverless functions with Micronaut
Serverless functions with MicronautServerless functions with Micronaut
Serverless functions with Micronaut
 
Maven, Eclipse And OSGi Working Together
Maven, Eclipse And OSGi Working TogetherMaven, Eclipse And OSGi Working Together
Maven, Eclipse And OSGi Working Together
 
[Fevr] Can't live if livin' is without rendering
[Fevr] Can't live if livin' is without rendering[Fevr] Can't live if livin' is without rendering
[Fevr] Can't live if livin' is without rendering
 
Using CI for continuous delivery Part 4
Using CI for continuous delivery Part 4Using CI for continuous delivery Part 4
Using CI for continuous delivery Part 4
 
Eclipse RCP outside of Eclipse IDE - Gradle to the rescue!
Eclipse RCP outside of Eclipse IDE - Gradle to the rescue!Eclipse RCP outside of Eclipse IDE - Gradle to the rescue!
Eclipse RCP outside of Eclipse IDE - Gradle to the rescue!
 

Similar to Angular version 10 is here check out the new features, notable changes, deprecations and removals

Similar to Angular version 10 is here check out the new features, notable changes, deprecations and removals (20)

What’s New in Angular 15.pptx
What’s New in Angular 15.pptxWhat’s New in Angular 15.pptx
What’s New in Angular 15.pptx
 
Angular 11 – everything you need to know
Angular 11 – everything you need to knowAngular 11 – everything you need to know
Angular 11 – everything you need to know
 
What angular 13 will bring to the table
What angular 13 will bring to the table What angular 13 will bring to the table
What angular 13 will bring to the table
 
Angular
AngularAngular
Angular
 
Top Features And Updates Of Angular 13 You Must Know
Top Features And Updates Of Angular 13 You Must KnowTop Features And Updates Of Angular 13 You Must Know
Top Features And Updates Of Angular 13 You Must Know
 
Angular 12 brought several new features to the table
Angular 12 brought several new features to the tableAngular 12 brought several new features to the table
Angular 12 brought several new features to the table
 
Angular11 exciting new features and updates
Angular11 exciting new features and updatesAngular11 exciting new features and updates
Angular11 exciting new features and updates
 
What are The Top Features of Angular 7?
What are The Top Features of Angular 7?What are The Top Features of Angular 7?
What are The Top Features of Angular 7?
 
26 top angular 8 interview questions to know in 2020 [www.full stack.cafe]
26 top angular 8 interview questions to know in 2020   [www.full stack.cafe]26 top angular 8 interview questions to know in 2020   [www.full stack.cafe]
26 top angular 8 interview questions to know in 2020 [www.full stack.cafe]
 
Angular kickstart slideshare
Angular kickstart   slideshareAngular kickstart   slideshare
Angular kickstart slideshare
 
Learn Angular 9/8 In Easy Steps
Learn Angular 9/8 In Easy Steps Learn Angular 9/8 In Easy Steps
Learn Angular 9/8 In Easy Steps
 
Heading towards the great release of angular 8.0 development observe the uno...
Heading towards the great release of angular 8.0 development  observe the uno...Heading towards the great release of angular 8.0 development  observe the uno...
Heading towards the great release of angular 8.0 development observe the uno...
 
Angular 13 noteworthy add ons, enhancements, and modifications
Angular 13 noteworthy add ons, enhancements, and modificationsAngular 13 noteworthy add ons, enhancements, and modifications
Angular 13 noteworthy add ons, enhancements, and modifications
 
What is Angular Ivy?
What is Angular Ivy?What is Angular Ivy?
What is Angular Ivy?
 
AngularJS Project Setup step-by- step guide - RapidValue Solutions
AngularJS Project Setup step-by- step guide - RapidValue SolutionsAngularJS Project Setup step-by- step guide - RapidValue Solutions
AngularJS Project Setup step-by- step guide - RapidValue Solutions
 
Web worker in your angular application
Web worker in your angular applicationWeb worker in your angular application
Web worker in your angular application
 
Angular 7: Everything You Need to Know!
Angular 7: Everything You Need to Know!Angular 7: Everything You Need to Know!
Angular 7: Everything You Need to Know!
 
Angular 2.0
Angular  2.0Angular  2.0
Angular 2.0
 
Top Features Of Angular 13 You Must Know
Top Features Of Angular 13 You Must KnowTop Features Of Angular 13 You Must Know
Top Features Of Angular 13 You Must Know
 
The new features of angular 12
The new features of angular 12The new features of angular 12
The new features of angular 12
 

More from Katy Slemon

More from Katy Slemon (20)

React Alternatives Frameworks- Lightweight Javascript Libraries.pdf
React Alternatives Frameworks- Lightweight Javascript Libraries.pdfReact Alternatives Frameworks- Lightweight Javascript Libraries.pdf
React Alternatives Frameworks- Lightweight Javascript Libraries.pdf
 
Data Science Use Cases in Retail & Healthcare Industries.pdf
Data Science Use Cases in Retail & Healthcare Industries.pdfData Science Use Cases in Retail & Healthcare Industries.pdf
Data Science Use Cases in Retail & Healthcare Industries.pdf
 
How Much Does It Cost To Hire Golang Developer.pdf
How Much Does It Cost To Hire Golang Developer.pdfHow Much Does It Cost To Hire Golang Developer.pdf
How Much Does It Cost To Hire Golang Developer.pdf
 
What’s New in Flutter 3.pdf
What’s New in Flutter 3.pdfWhat’s New in Flutter 3.pdf
What’s New in Flutter 3.pdf
 
Why Use Ruby On Rails.pdf
Why Use Ruby On Rails.pdfWhy Use Ruby On Rails.pdf
Why Use Ruby On Rails.pdf
 
How Much Does It Cost To Hire Full Stack Developer In 2022.pdf
How Much Does It Cost To Hire Full Stack Developer In 2022.pdfHow Much Does It Cost To Hire Full Stack Developer In 2022.pdf
How Much Does It Cost To Hire Full Stack Developer In 2022.pdf
 
How to Implement Middleware Pipeline in VueJS.pdf
How to Implement Middleware Pipeline in VueJS.pdfHow to Implement Middleware Pipeline in VueJS.pdf
How to Implement Middleware Pipeline in VueJS.pdf
 
How to Build Laravel Package Using Composer.pdf
How to Build Laravel Package Using Composer.pdfHow to Build Laravel Package Using Composer.pdf
How to Build Laravel Package Using Composer.pdf
 
Sure Shot Ways To Improve And Scale Your Node js Performance.pdf
Sure Shot Ways To Improve And Scale Your Node js Performance.pdfSure Shot Ways To Improve And Scale Your Node js Performance.pdf
Sure Shot Ways To Improve And Scale Your Node js Performance.pdf
 
How to Develop Slack Bot Using Golang.pdf
How to Develop Slack Bot Using Golang.pdfHow to Develop Slack Bot Using Golang.pdf
How to Develop Slack Bot Using Golang.pdf
 
IoT Based Battery Management System in Electric Vehicles.pdf
IoT Based Battery Management System in Electric Vehicles.pdfIoT Based Battery Management System in Electric Vehicles.pdf
IoT Based Battery Management System in Electric Vehicles.pdf
 
Understanding Flexbox Layout in React Native.pdf
Understanding Flexbox Layout in React Native.pdfUnderstanding Flexbox Layout in React Native.pdf
Understanding Flexbox Layout in React Native.pdf
 
The Ultimate Guide to Laravel Performance Optimization in 2022.pdf
The Ultimate Guide to Laravel Performance Optimization in 2022.pdfThe Ultimate Guide to Laravel Performance Optimization in 2022.pdf
The Ultimate Guide to Laravel Performance Optimization in 2022.pdf
 
New Features in iOS 15 and Swift 5.5.pdf
New Features in iOS 15 and Swift 5.5.pdfNew Features in iOS 15 and Swift 5.5.pdf
New Features in iOS 15 and Swift 5.5.pdf
 
How to Hire & Manage Dedicated Team For Your Next Product Development.pdf
How to Hire & Manage Dedicated Team For Your Next Product Development.pdfHow to Hire & Manage Dedicated Team For Your Next Product Development.pdf
How to Hire & Manage Dedicated Team For Your Next Product Development.pdf
 
Choose the Right Battery Management System for Lithium Ion Batteries.pdf
Choose the Right Battery Management System for Lithium Ion Batteries.pdfChoose the Right Battery Management System for Lithium Ion Batteries.pdf
Choose the Right Battery Management System for Lithium Ion Batteries.pdf
 
Flutter Performance Tuning Best Practices From the Pros.pdf
Flutter Performance Tuning Best Practices From the Pros.pdfFlutter Performance Tuning Best Practices From the Pros.pdf
Flutter Performance Tuning Best Practices From the Pros.pdf
 
Angular Universal How to Build Angular SEO Friendly App.pdf
Angular Universal How to Build Angular SEO Friendly App.pdfAngular Universal How to Build Angular SEO Friendly App.pdf
Angular Universal How to Build Angular SEO Friendly App.pdf
 
How to Set Up and Send Mails Using SendGrid in NodeJs App.pdf
How to Set Up and Send Mails Using SendGrid in NodeJs App.pdfHow to Set Up and Send Mails Using SendGrid in NodeJs App.pdf
How to Set Up and Send Mails Using SendGrid in NodeJs App.pdf
 
Ruby On Rails Performance Tuning Guide.pdf
Ruby On Rails Performance Tuning Guide.pdfRuby On Rails Performance Tuning Guide.pdf
Ruby On Rails Performance Tuning Guide.pdf
 

Recently uploaded

Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 

Recently uploaded (20)

Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 

Angular version 10 is here check out the new features, notable changes, deprecations and removals

  • 2. On 24th June 2020, Angular introduced the latest version – Angular 10.0.0. This is the latest release, but the team has mostly focused on the ecosystem and quality tools, instead of introducing new features Four months back in February, the community has paved its way for the newer version. Ever since the Angular IVY was introduced, the community was keeping close tabs on the frequent updates. Angular 9.1 was introduced in April with some minor updates, including Support for TypeScript 3.8, bug fixes, and performance improvements.
  • 3. Just like every other Angular developer, I found this update very exciting and followed the news to find out what Angular 10 has bought for all of us. I checkout numbers of articles, but to my surprise, they have mostly focused on quick highlights, so I thought of writing a comprehensive blog post explaining what’s new in Angular 10. Let’s get started.
  • 5. Angular 9 was introduced with TypeScript 3.7 support. Later, TypeScript introduced 3.8, so to offer hassle-free Support Angular released v9.1. Angular’s team has always ensured to keep the framework up-to-date and relevant, so to respond to the latest version of TypeScript 3.9, Angular introduced v10 along with introducing TSLib and TSLint. The faster Angular builds, TypeScript fixes, and updated features are available for Angular developers. Angular programmers will have access to the more intricate TypeScript configuration. TypeScript has stopped offering Support to the earlier versions, so you will be required to install v3.9 in your project. TypeScript v3.9 Support
  • 6. TSLib – The runtime library for TypeScript comprising all the TypeScript helper functions, has been updated to TSlib 2.0. TSLint – The static analysis tool for TypeScript has been updated to TSLint 6.The Angular team has updated the project layout with v10. We will have a tsconfig.base.json and additional tsconfig.json for package configuration and support IDEs. TSLib v2.0 and TSLint v6
  • 7. Before: { "files": [], "references": [ { "path": "./tsconfig.app.json" }, { "path": "./tsconfig.spec.json" }, { "path": "./e2e/tsconfig.json" } ] }
  • 8. After: "files": [], "references": [ { "path": "./tsconfig.app.json" }, { "path": "./tsconfig.spec.json" }, { "path": "./e2e/tsconfig.json" }, { "path": "./projects/core/tsconfig.lib.json" }, { "path": "./projects/core/tsconfig.spec.json" } ] }
  • 10. The browser configuration has been introduced to eliminate older and less- updated bowsers. Internet Explorer 9, IE 10, and IE mobile will not get any official support from now onwards. Microsoft has also stopped offering Support for these browsers. Check out the updated supportive Browser list file here.
  • 12. After:: v10 Defaults Executing the following code will also get you the list of supported web browsers. npx browsers list To find out more on this go through this link
  • 14. There are chances that Angular application may become slower when we import dependencies, which are packaged with CommonJS. CommonJS module is introduced to structure and organize your JavaScript code that is heavily influenced by Node’s module management. Read more about CommonJS here. From Angular V10, developers will be notified with a warning when dependency packaged could result in a slower and larger application. ECMAScript module bundle is available as a substitute.
  • 15. Angular Material UI now officially includes To make use of the new date range picker, use the mat-date-range-input and mat- date-range-picker components. Please refer to the official documents to find out more. New Date Range Picker
  • 16. To improve the maintainability, catch bugs and allow CLI to do advanced optimizations, you can enable the flag initializes with ng new, via ng new –strict from the optional stricter settings. Optional Stricter Settings
  • 17. { ... "budgets": [ { "type": "initial", "maximumWarning": "500kb", "maximumError": "1mb" }, { "type": "anyComponentStyle", "maximumWarning": "2kb", "maximumError": "4kb" } ] ... }
  • 18. Default bundle budgets are reduced by ~75% Enable strict mode in TypeScript Turns template type checking to Strict Configure lint to suppress warnings to prevent declarations of type any Enable more advanced tree-shaking to configure your app as a side-effect The Strict flag does the listed below things,
  • 19. Here you need to make sure that you have a post- install script in your “package.json” file to execute NGCC after an installation: { "scripts": { "postinstall": "ngcc" } } With this release, NGCC is more robust. Earlier it wasn’t capable if recovery worker processes get crashed; however, issues with NGCC handing can now be fixed. Significant performance enhancements have been made to NGCC. NGCC
  • 20. Unfortunately, Angular Bazel has left Angular labs, and it won’t be the default tool in Angular CLI. So you won’t get any official support, and if you are wondering about the reasons why the Angular team has discontinued it, then check them out here. However Angular team has referred Monorepo if you are interested in building Angular with Bazel. Bazel Changes in Package Format Changes and esm5/fesm5 Angular’s new package format does not include esm5 and fesm5. The default language level consumed by Angular tooling is the reason behind these mandatory changes.
  • 21. Before: { ... "main": "bundles/abp-ng.core.umd.js", "module": "fesm5/abp-ng.core.js", "es2015": "fesm2015/abp-ng.core.js", "esm5": "esm5/abp-ng.core.js", "esm2015": "esm2015/abp-ng.core.js", "fesm5": "fesm5/abp-ng.core.js", "fesm2015": "fesm2015/abp-ng.core.js", ... }
  • 22. After: { ... "main": "bundles/abp-ng.core.umd.js", "module": "fesm2015/abp-ng.core.js", "es2015": "fesm2015/abp-ng.core.js", "esm2015": "esm2015/abp-ng.core.js", "fesm2015": "fesm2015/abp-ng.core.js", ... } If your existing applications depend on esm5/fesm5, don’t worry; the system still accepts them. Understand it in a similar way; if your Angular library does not ship to esm2015 or fesm2015, then still you don’t worry because you know that CLI will take care of it. In favor of build speed and bundle optimization, it is suggested to deliver ES2015 outputs.
  • 23. Browse list Usually, Angular generates bundles based on the Browserlist configuration suggested in the root app folder. Angular v10 will search for .browserlistrc in your application; if they don’t find it in the browser list, then ng update command will help you with the file rename. Some Notable Changes: Resolvers that return will cancel the navigation. So to continue the navigation to route, you will be required to add some value defaultIfEmpty(…), of(…)
  • 24. Service worker implementations with Vary headers will not work similarly. They will simply be ignored. So it is advisable to avoid caching such resources as they can have unpredictable behavior depending on the user agents. Because of this, cache match options are now be configured in NGSW’s config file Unknown property bindings in templates or similar elements have been increased “error” levels; earlier, it was a warning. formatDate() and DatePipe format codes have been changed, as the previous behavior was not correct for the day span. MinLength, as well as maxLength validators, will only authenticate the value if there’s a numeric length property.
  • 25. Angular has stopped sanitizing the style property bindings because of the drop of Support for IE6 and IE7 and the performance cost. Transplanted views had change detection issues.; however, the issue is fixed now.
  • 26. Here’s a complete Angular 9 to Angular 10 update guideline. ng update @angular/cli @angular/core If you are upgrading manually using the protractor, then it is advisable to update protractor to 7.0.0+ as pervious introduced versions had vulnerabilities. How to update to version 10?
  • 27. It is advisable to update to the one significant version once at a time. If you are currently using Angular v8 and want to upgrade to Angular v10, then instead of upgrading from Angular v8 to 10, first upgrade from v8 to v9 and then v9 to v10. I have tried to cover all the possible new features, removals, notable changes, and deprecations of Angular v10. Google- developed framework v10 has not earth- shattering release, but the features and breaking changes it has brought can’t be even ignored. Suggestion:
  • 28. If you are looking for well-versed Angular developers who can help you upgrade your existing application with minimum disruption, then get in touch with us today. Our Angular developers have successfully performed many upgrades for numbers of our clients to take their existing application from an out-of-date to an up-to-date tech stack with a cost-effective approach. Hire Angular developers from us to leverage our Angular upgrade service. We are a globally renowned AngularJS development company that can help you perform routine maintenance, patch security vulnerabilities, and implement the latest features. You have landed on the right page. We will stay one step ahead of your competitors. Wrapping Up