Angular Router version 13.0.0 signifies a notable shift from version 12.2.17. While both versions share the same fundamental purpose – providing robust routing capabilities for Angular applications – key differences emerge in their dependencies and potentially, underlying architectural improvements. Specifically, version 13.0.0 mandates rxjs versions "^6.5.3 || ^7.4.0", indicating a move to embrace newer features and improved performance offered by RxJS 7. This contrasts with version 12.2.17, which supports rxjs "^6.5.3 || ^7.0.0". For developers, this means upgrading to Angular Router 13 necessitates careful consideration of RxJS compatibility within their projects.
Furthermore, the peer dependencies highlight a clear alignment with the Angular core framework. Version 13.0.0 requires @angular/core, @angular/common, and @angular/platform-browser at version 13.0.0, reflecting a synchronized upgrade across the Angular ecosystem. Developers must ensure their core Angular dependencies are updated accordingly when adopting the new router version.
Interestingly, the earlier 12.2.17 version exhibits a larger unpacked size. While the exact reasons for this size difference necessitate further investigation, it *could* indicate a streamlining of router code in version 13.0.0, potentially leading to smaller bundle sizes and improved application loading times. However, the number of files is also reduced, so the difference could be caused by internal restructuring of the package. Finally, the release dates indicate a substantial gap between the two versions, with version 13 appearing a year before the latest version, which suggest that support for version 12 will eventually be dropped, so we recommend you start to plan your migration.
The are not vulnerabilities for the version 13.0.0 of the package @angular/router