What's new in Angular 10.2?

Angular 10.2.0 is here!

Angular logo

This is mostly a maintenance release with bugfixes, but as it contains a potential breaking change, this was turned into a minor release.

The breaking change only impacts those who are using server-side rendering, so it may not even be relevant for you.

Let’s see what the rest of the release brings us.

i18n

ng add @angular/localize now adds the package in the devDependencies rather than in the dependencies as it used to. The reasoning is that, for most applications, localize is only used at build time. If you still want to use it at runtime, you can add the flag --use-at-runtime, and the package is added to the dependencies. In an existing application, you can of course manually move the @angular/localize package to the devDependencies.

ngcc

The ngcc compiler should be faster after the introduction of some caching mechanisms. It should also consume less memory. The commit mentions a 2-4x improvement in a CLI project, and as I mentioned on Twitter, I do agree that this makes a difference 🚀.

On a related note, the “linker” project, which will allow to ship and consume Ivy libraries directly and get rid of ngcc in the long term, is making some progress 💪.

We’ll have more interesting features in the next major release v11, which should be in November, stay tuned!

All our materials (ebook, online training and training) are up-to-date with these changes if you want to learn more!



blog comments powered by Disqus