Angular 16.0.1–16.2.1 Is A Craftsmanship Effort

<h2>Angular 17 works begin. Let&rsquo;s wrap up features introduced in Angular 16.0.1&ndash;16.2.1 before we&rsquo;ll open popcorn for the new Angular major line!</h2> <p>Somewhere around October 2022 we had some important&nbsp;<a href="https://tomaszs2.medium.com/angular-15-is-far-from-being-dead-3a9aa90fc9b6" rel="noopener">Angular 15</a>&nbsp;features released with some more in&nbsp;<a href="https://tomaszs2.medium.com/angular-15-1-0-makes-coding-a-bit-easier-8680dbdea436" rel="noopener">Angular 15.1.0</a>. In May, we&rsquo;ve seen&nbsp;<a href="https://tomaszs2.medium.com/angular-16-release-kills-two-stones-with-one-bird-659022879573" rel="noopener">Angular 16</a>&nbsp;preceded by&nbsp;<a href="https://tomaszs2.medium.com/angular-16-rc2-the-revolution-is-near-d0f817a8933a" rel="noopener">Angular 16 RC2</a>.</p> <p>Now, 3 months later, the work on 17.0.0 has started with the next.0 release made yesterday. So, before we&rsquo;ll enjoy what the Angular team prepares for us in the following weeks, let&rsquo;s look at what happened between Angular 16.0.0 and 16.2.1 released yesterday (2023&ndash;08&ndash;16):</p> <p>During that time there were ten features and numerous bugfixes. But bugfixes are boring, so I&rsquo;ll sum up the features for you since 16.0.1 to 16.2.1.</p> <h1>1. HttpBackend Using Fetch API</h1> <p><a href="https://angular.io/api/common/http/HttpBackend" rel="noopener ugc nofollow" target="_blank">HttpBackend&nbsp;</a>makes calls to backend ignoring interceptors. The&nbsp;<a href="https://github.com/angular/angular/pull/50247" rel="noopener ugc nofollow" target="_blank">new implementation</a>&nbsp;uses the Fetch API instead of polyfilled xhr2. No libraries needed anymore.</p> <p>To enable it, you have to set it up explicitly as for now, because it&rsquo;s in developer preview mode:</p> <pre> provideHttpClient(withFetch())</pre> <p>Since Node 18 you can just get going, before you have to enable experimental Fetch API.</p> <h1>2. TypeScript 5.1</h1> <p>As I wrote some time ago:</p> <blockquote> <p>TypeScript 5.1 relaxes undefined function rules, getters and setters can use different types (we&rsquo;ll get back to it later), and eases writing JSDoc among other improvements. Now you can use it in Angular. To learn more about Typescript 5.1 check out my article. The support was introduced in Angular 16.1.0.</p> </blockquote> <p><a href="https://tomaszs2.medium.com/%EF%B8%8F-angular-16-0-1-16-2-1-is-a-craftsmanship-effort-337cf1435567">Visit Now</a>&nbsp;</p>