Angular Router version 6.0.4 represents a minor update to the Angular routing library, building upon the 6.0.3 release. Both versions share the same core functionality as the routing component within the Angular framework, designed for creating single-page applications with navigation. Key features include URL-based navigation, route parameters, guards for controlling access, and lazy loading of modules. Developers using Angular rely on this library for managing application state and user experience through seamless transitions between different views.
The primary differences between 6.0.4 and 6.0.3 reside within their dependency requirements and underlying build specifics. Both versions depend on tslib for TypeScript helper functions and require compatible peer dependencies of rxjs and core Angular packages like @angular/core, @angular/common, and @angular/platform-browser. Specifically, version 6.0.4 mandates Angular versions 6.0.4 while version 6.0.3 requires 6.0.3. This indicates potential bug fixes or minor feature enhancements addressed in the core Angular framework necessitating a corresponding update in the router to maintain compatibility.
While both packages contain the same number of files (152), their unpacked sizes differ slightly, with version 6.0.3 being larger (3964784 bytes) than 6.0.4 (3895373 bytes) suggesting potential optimisations or code refactoring. Developers upgrading from 6.0.3 to 6.0.4 should ensure their core Angular packages are also updated to 6.0.4 to avoid any compatibility issues. The newer version's release date, June 6, 2018, also signifies more recent bug fixes and refinements compared to the May 22, 2018 release date of version 6.0.3, making it the preferred choice for new projects.
The are not vulnerabilities for the version 6.0.4 of the package @angular/router