Angular's @angular/common package provides essential directives, pipes, and services for building Angular applications. Comparing version 16.0.0 with its predecessor 15.2.10, several key differences emerge that are relevant for developers.
First and foremost, 16.0.0 aligns with Angular version 16, indicated by its peer dependency on @angular/core@16.0.0. This means developers upgrading to Angular 16 must also update @angular/common to ensure compatibility. Both versions rely on rxjs (versions 6.5.3 or 7.4.0) and tslib.
A notable difference lies in the dist metadata. Version 16.0.0 has a smaller unpacked size (approximately 11 MB) compared to 15.2.10 (approximately 12.3 MB), suggesting potential improvements in bundle size optimization. Also, version 16 has 3004 deployed files compared to the version 15 with 3013, another small detail to point out optimisations. As a general rule, the less the size the better performance we can expect.
The release dates also mark a significant gap. Version 16.0.0 was released in May 2023, while 15.2.10 landed in October 2023. This makes version 16.0.0 an older major release, and any developer aiming to use the latest stable version of angular should avoid depending on it.
In summary, developers need to choose @angular/common versions carefully to match their Angular core version. The slight reduction on size of the package on v16 might be interesting for some use-cases. For optimal performance and access to the newest features, upgrading to the latest Angular version is highly advantageous, and thus avoiding using 16.0.0.
The are not vulnerabilities for the version 16.0.0 of the package @angular/common