Babel preset-env, a powerful tool for modern JavaScript developers, saw a significant update moving from version 7.3.4 to 7.4.0. This jump included several dependency upgrades that directly impact the transpilation process. One key difference is the updated browserslist dependency, moving from 4.3.4 to 4.4.2, which determines the browser support matrix used for transpilation. This ensures developers are targeting a more accurate and up-to-date set of browsers.
The core-js compatibility component also received a major bump from version 3.0.0 which makes available all the new js features to older browser that don't support them.
Notably, many of the @babel/plugin-transform-* dependencies were updated, reflecting improvements and bug fixes in how specific JavaScript features are transformed. For example, @babel/plugin-transform-classes, @babel/plugin-transform-regenerator, @babel/plugin-transform-block-scoping, @babel/plugin-transform-parameters, @babel/plugin-transform-modules-systemjs, @babel/plugin-proposal-object-rest-spread, and @babel/plugin-transform-async-to-generator all saw updates. These updates are crucial for developers relying on these transformations to support older environments, ensuring more robust and compatible code.
The development dependencies also saw changes. The caniuse-db was significantly updated, showing babel's commitment in keeping the library updated with the browser's latest features and updates.
The number of files included in version 7.4.0 jumped to 32 with a unpacked Size of 167925 compared to version 7.3.4 that has 25 files included, with 132646 unpacked size. These changes reflect enhancements and refinements in the preset's functionality and internal structure. For developers, this means a more refined and feature-rich tool to streamline their workflow and make sure they are building modern and compatible javascript.
The are not vulnerabilities for the version 7.4.0 of the package @babel/preset-env