Angular 13 arrives: Ivy everywhere, View Engine and IE11 support cut

Cruft removed to improve performance

Version 13 of the Google-sponsored Angular JavaScript framework is here and the old View Engine renderer is gone, as is IE11 support, making Angular faster and smaller.

The latest release is as notable for what has been cut out as for what is included. Google developer relations engineer Mark Thompson said the deprecated View Engine, the old Angular compilation and rendering engine, is no longer available. According to Thompson, this means "teams can look forward to faster compilation because metadata and summary files are no longer included."

The current rendering engine, called Ivy, is now used everywhere and is being further improved and optimized. This allowed the modernization of the Angular Package Format (APF) and less use of the compatibility compiler ngcc, as well as simplification of the component API, resulting in more concise code.

The Angular team has now dropped support for Microsoft's IE11, the deprecated version of the web browser. "Removing IE11 support allows Angular to leverage modern browser features such as CSS variables and web animations via native web APIs," said Thompson.

There is also benefit in eliminating "IE specific polyfills and code paths." Developers with existing applications can run an update command that will automatically remove these, reducing the size of the bundled application.

Another change is the use of a persistent build cached by default, with build speed improved by up to 68 per cent, according to Thompson. Other improvements include an upgrade for RxJS (Reactive Extensions Library for JavaScript) to version 7.4 from version 6, which among other things means a 50 per cent reduction in library size, and support for TypeScript 4.4. Support for inline fonts has been extended to include Adobe as well as Google fonts.

Accessibility is improved in the new version, with what Thompson called "meaningful improvements" and changes to Angular Material components. A separate post last week digs into this in detail, with changes including touch target sizes, better ARIA (Accessible Rich Internet Applications) labels, improved high contrast mode, auto focus options, and a better screen reader experience.

A lot of work has been done here which should make Angular 13 substantially more accessible, though individual developers also have work to do in order to take advantage.

The crew has also revamped testing, with the native TestBed API cleaning up the DOM (Document Object Model) more thoroughly after each test. "Developers can expect faster, less memory-intensive, less interdependent, and more optimized tests," said Thompson.

StackOverflow trends show steady interest in Angular

StackOverflow trends show steady interest in Angular

According to the latest StackOverflow developer survey, React.js is the most used JavaScript framework with Angular in fourth place – or second place if one considers that jQuery and Express are less comparable. That suggests substantial usage for Angular (22.96 per cent), though it is less well liked than others such as Svelte, React.js and Vue.js (according to the "Most loved" section of the survey).

Note that Angular (which uses TypeScript) is distinct from the older Angular.js, which uses JavaScript. Angular.js has the distinction of being "Most dreaded" in the survey, whereas Angular has a respectable mid-table position.

We took Angular 13 for a brief spin with Visual Studio Code, noting that initial compilation of even a Hello World application still seems slow, but a mitigating factor is the benefit of hot module reload – so that editing the source code makes immediate and quick changes to the running application.

Despite being perhaps unfashionable, Angular is a safe choice that Google claims helps developers to follow its best practices. ®

Other stories you might like

  • Prisons transcribe private phone calls with inmates using speech-to-text AI

    Plus: A drug designed by machine learning algorithms to treat liver disease reaches human clinical trials and more

    In brief Prisons around the US are installing AI speech-to-text models to automatically transcribe conversations with inmates during their phone calls.

    A series of contracts and emails from eight different states revealed how Verus, an AI application developed by LEO Technologies and based on a speech-to-text system offered by Amazon, was used to eavesdrop on prisoners’ phone calls.

    In a sales pitch, LEO’s CEO James Sexton told officials working for a jail in Cook County, Illinois, that one of its customers in Calhoun County, Alabama, uses the software to protect prisons from getting sued, according to an investigation by the Thomson Reuters Foundation.

    Continue reading
  • Battlefield 2042: Please don't be the death knell of the franchise, please don't be the death knell of the franchise

    Another terrible launch, but DICE is already working on improvements

    The RPG Greetings, traveller, and welcome back to The Register Plays Games, our monthly gaming column. Since the last edition on New World, we hit level cap and the "endgame". Around this time, item duping exploits became rife and every attempt Amazon Games made to fix it just broke something else. The post-level 60 "watermark" system for gear drops is also infuriating and tedious, but not something we were able to address in the column. So bear these things in mind if you were ever tempted. On that note, it's time to look at another newly released shit show – Battlefield 2042.

    I wanted to love Battlefield 2042, I really did. After the bum note of the first-person shooter (FPS) franchise's return to Second World War theatres with Battlefield V (2018), I stupidly assumed the next entry from EA-owned Swedish developer DICE would be a return to form. I was wrong.

    The multiplayer military FPS market is dominated by two forces: Activision's Call of Duty (COD) series and EA's Battlefield. Fans of each franchise are loyal to the point of zealotry with little crossover between player bases. Here's where I stand: COD jumped the shark with Modern Warfare 2 in 2009. It's flip-flopped from WW2 to present-day combat and back again, tried sci-fi, and even the Battle Royale trend with the free-to-play Call of Duty: Warzone (2020), which has been thoroughly ruined by hackers and developer inaction.

    Continue reading
  • American diplomats' iPhones reportedly compromised by NSO Group intrusion software

    Reuters claims nine State Department employees outside the US had their devices hacked

    The Apple iPhones of at least nine US State Department officials were compromised by an unidentified entity using NSO Group's Pegasus spyware, according to a report published Friday by Reuters.

    NSO Group in an email to The Register said it has blocked an unnamed customers' access to its system upon receiving an inquiry about the incident but has yet to confirm whether its software was involved.

    "Once the inquiry was received, and before any investigation under our compliance policy, we have decided to immediately terminate relevant customers’ access to the system, due to the severity of the allegations," an NSO spokesperson told The Register in an email. "To this point, we haven’t received any information nor the phone numbers, nor any indication that NSO’s tools were used in this case."

    Continue reading

Biting the hand that feeds IT © 1998–2021