Angular Common package experienced a minor version update, moving from version 12.1.5 to 12.2.0 on August 4th, 2021. Both versions, designed for essential Angular directives and services, maintain "tslib" as a dependency with a compatible version range. However, key differences lie in their peer dependencies and potentially within their internal implementations.
While both versions require "@angular/core" as a peer dependency, version 12.2.0 specifically asks for version "12.2.0" while the previous version "12.1.5" asks for version "12.1.5". This ensures perfect compatibility with the framework's core components. The more significant difference is in the "rxjs" peer dependency. Version 12.2.0 broadens its compatibility, accepting either rxjs versions "^6.5.3" or "^7.0.0", granting developers greater flexibility in their projects and avoiding potential conflicts if they're already using a newer major version of RxJS. Version 12.1.5 on the other hand strictly asks for RxJS version "^6.5.3".
Although both packages are licensed under MIT and originate from the official Angular repository, the updated version exhibits a significantly smaller unpacked size (11562376 bytes) compared to the previous one (12269126 bytes), with also a slight increase in the number of files from 2857 to 2867 which may suggest internal optimizations or changes in the build process. Because of this, existing Angular projects might benefit from upgrading to "@angular/common": "12.2.0."
The are not vulnerabilities for the version 12.2.0 of the package @angular/common