Angular 14.2
We have a new minor release for Angular with version 14.2. Minor means no breaking changes but new features. With NgOptimizedImage, we get a new directive, that applies best practices to the loading process of images.
To enable it, replace the src attribute with rawSrc. By default, all images are now lazy-loaded. So you have to make sure to put the priority attribute on those visible within the viewport. If you miss one, no problem, the new directive will tell you that via a warning message.
NgOptimizedImage also ensures that all necessary image attributes are set, it provides support for loading them via a CDN, and we can look forward to further useful functions in the future.
Next to that, Angular continues to extend the "standaloneability" of its API. This time it is the Router and Angular Elements. The provideRouter function is the standalone version of the RouterModule. And Router-specific directives, like routerLink are now also standalone.
Angular@angularGuess what? v14.2 is out now!
ng update for:
β Developer Preview of a new Image Directive in collaboration with @ChromiumDev π
β CDK Listbox is stable
β ng serve with service-worker support
β Developer Preview of standalone support in @angular Elements
+ more! twitter.com/angular/statusβ¦23:01 PM - 25 Aug 2022Angular @angularAnd just like that, v14.1 is here! β CommonModule directives & pipes are marked standalone π β Three new extended diagnostics to improve your developer experience β‘οΈ β No installing the CLI globally, get started with `npm init @angular new-app` π₯Ί https://t.co/VKm5FU4Y7R
Further reading:
- CΓ©dric Exbrayat: What's new in Angular 14.2
- Kara Erickson & Leena Sohoni: Optimizing Image with the Angular Image Directive
- Netanel Basal: Using Angular NgOptimizedImage to Implement Image Loading Best Practices
NgRx 14.3
We've also seen a minor release of NgRx, a state management library, to 14.3. It is also about providing standalone functions for all its features where we had to use an NgModule in the past.
TypeScript 4.8
The latest version of TypeScript comes with improvements in the area of type narrowing and union types.
TypeScript@typescriptTypeScript 4.8 is here! Now with
β Improved narrowing and inference
β Primitive-parsing from template string types
β --incremental/--watch perf improvements
β Lots of new correctness checks
and more! Read up and get it now!
devblogs.microsoft.com/typescript/annβ¦23:29 PM - 25 Aug 2022
Jest 29
The new major of Jest comes with breaking changes but according to its authors, the migration ought to be very smooth.
Top comments (0)