Vue Router, the official routing solution for Vue.js 2, saw a release of version 3.0.4 shortly after version 3.0.3. Both versions maintain the same core description, providing a routing mechanism for Vue.js 2 applications. When comparing the two versions, subtle differences emerge in their devDependencies. While many dependencies remain the same, notably including Vue itself, Rollup, and Babel configurations, a few package versions vary alongside some being completely replaced.
The key difference lies in the build tooling. Version 3.0.3 relies on uglify-js for minification, whereas version 3.0.4 replaces it with terser, an actively maintained fork of uglify-es that supports modern JavaScript syntax, including ES6+. This transition signals a move towards better support for newer JavaScript features. While fileCount differs, implying internal structural adjustments, the unpackedSize value is also altered, it went from **255748** to **347021**, meaning there was a increase in code weight.
For developers, this update indicates a focus on modernizing the build process, thus it also means there are some updates included in the lib. Switching to terser may improve the compatibility and performance of minified code in modern browsers or build systems in general. Existing users of Vue Router should test the new version thoroughly to ensure compatibility of their build process. The upgrade from 3.0.3 to 3.0.4 seems minimal but represents a commitment to leveraging modern tooling within the Vue Router ecosystem.
The are not vulnerabilities for the version 3.0.4 of the package vue-router