Angular Router version 6.0.2 represents a minor update to the routing library within the Angular framework, succeeding version 6.0.1. Both versions fundamentally offer the same core routing functionalities, enabling developers to build single-page applications with sophisticated navigation capabilities. Key features include declarative route configuration, lazy loading of modules, route guards for authorization, and customizable URL matching strategies.
The primary distinction between the two lies in their peer dependencies on other Angular packages. Version 6.0.2 depends on @angular/core, @angular/common, and @angular/platform-browser version 6.0.2, whereas version 6.0.1 relies on version 6.0.1 of these packages. This subtle difference likely indicates bug fixes, performance enhancements or minor feature additions within the core Angular framework that the router version 6.0.2 leverages. The unpacked size of the newer version is slightly larger, suggesting potential code refinements. Developers should ensure that all Angular packages within their project are aligned to a compatible version (in this case the 6.0.2 version) to avoid potential compatibility issues and to benefit from the latest improvements and fixes across the entire Angular ecosystem. The update also includes some changes related to internal file structure or packaging which developers don't have to worry when upgrading since this is backward compatible.
The are not vulnerabilities for the version 6.0.2 of the package @angular/router