DEV Community

Cover image for Episode 23/02: Angular 15.1, State of JavaScript 2022
ng-news
ng-news

Posted on

Episode 23/02: Angular 15.1, State of JavaScript 2022

Angular 15.1 landed with some helpful new features.

In addition, the State of JavaScript Survey revealed a decrease in usage but an increase in interest.

Tomas Trajan wrote an insightful article on Jest and ES Modules.

Angular 15.1

Angular 15.1 is out. These are the main features:

  • We got support for self-closing tags for components, directives, and custom elements.
  • The language service, which Visual Code also uses for its Angular support, provides automatic imports even if multiple candidates are available.
  • You should replace your CanLoad guards with CanMatch as the first one is deprecated.

Self-closing tags might not look like a huge change, but it kind of is. It is first time that Angular deliberately breaks its compliance with the HTML specification.
The main argument is that a template's HTML is never exposed to the browser. Instead, it is parsed and then re-generated during the runtime via simple document.createElement commands.

For more information on the 15.1 release, checkout the official ChangeLog.

State of JavaScript 2022

The results of the State of JavaScript survey are available.

As it was already the case last year, Angular didn't find itself on top of things ;).
In terms of usage, it dropped from 54% to 49% and ended in second place.
Number 1 is React, which increased from 80% to 82%.

Looking at the interest rate, though, we saw an increase for the first time. It went up from 16% to 20%.

Looks like the new features start to attract developers again.

State of JavaScript 2022

Tomas Trajan: Jest und ES Modules

Tomas Trajan wrote a detailed article about Jest and its performance issues with ES modules. They are the default format since Angular 12.

Tomas comes up with a list of common use cases that require a customised Jest configuration. After applying all the strategies, his tests improved by 290%.

Link to Article

Top comments (0)