Angular Router version 12.0.0 introduces several key updates compared to the prior stable release, version 11.2.14. Primarily, version 12 aligns with the Angular core framework's version 12, signifying a major release with potential breaking changes and feature enhancements. A core difference lies in the tslib dependency, upgraded to ^2.1.0 from ^2.0.0, indicating reliance on a newer TypeScript helper library, which might improve performance or introduce compatibility adjustments.
The peer dependencies, specifying compatible versions of core Angular packages (core, common, and platform-browser), are updated to reflect the 12.0.0 framework release. This means developers upgrading to router v12 need to ensure their Angular core packages are also at v12 to avoid compatibility issues. Although both rely on compatible versions of RxJS, ensuring Reactive Extensions align with Angular v12 updates remains crucial.
Interestingly, the unpacked size of v12 is smaller (2685842 bytes) compared to v11.2.14 (3179151 bytes), hinting potentially at improved code optimization or removal of deprecated features. However, the file count is slightly reduced from 85 to 79. The release dates are also close, but this information is less relevant to the functional differences. In essence, upgrade to v12 if you are using Angular 12 and make sure to check their breaking changes.
The are not vulnerabilities for the version 12.0.0 of the package @angular/router