Angular Router version 6.0.0 introduces significant updates compared to its predecessor, version 5.2.11, impacting developers using Angular for single-page application routing. The most notable change is the shift in peer dependencies. Version 6.0.0 mandates the use of RxJS version 6.0.0 and Angular core, common, and platform-browser all at version 6.0.0. This signifies a major framework update affecting how asynchronous operations and core functionalities are handled. In contrast, version 5.2.11 relies on older versions: RxJS 5.5.0 and Angular dependencies at version 5.2.11. This peer dependency update is crucial; upgrading the Angular Router requires a corresponding upgrade of the Angular framework.
Another difference lies in the dependencies. 6.0.0 uses tslib version ^1.9.0 while 5.2.11 uses tslib version ^1.7.1.
Furthermore, the 'dist' object reveals differences in the package's size and contents. Version 6.0.0 drastically expands, boasting 152 files and an unpacked size of 3,964,490 bytes, compared to version 5.2.11 with 70 files and an unpacked size of 2,826,770 bytes. This size increase likely reflects new features, optimizations, or restructuring within the routing library. Finally, the release date indicates that version 6.0.0 was released prior to version 5.2.11. Developers should consider these changes when upgrading to ensure compatibility and leverage the latest features.
The are not vulnerabilities for the version 6.0.0 of the package @angular/router