@babel/preset-env 7.22.0 introduces several updates and refinements compared to version 7.21.5, making it a worthwhile upgrade for developers using Babel. A key change lies in the updated dependencies; notably, core-js-compat jumps from version 3.25.1 to 3.30.2, reflecting enhancements in the handling of ECMAScript feature compatibility. Several @babel plugins are also updated to more recent versions (for example plugins related to the "transform" feature), which might include bug fixes, performance improvements, or support for newer JavaScript syntax. More specific the newer version includes @babel/plugin-syntax-import-attributes, @babel/plugin-transform-dynamic-import, @babel/plugin-transform-json-strings, @babel/plugin-transform-modules-systemjs, @babel/plugin-transform-numeric-separator, @babel/plugin-transform-optional-chaining, @babel/plugin-transform-class-static-block, @babel/plugin-transform-object-rest-spread, @babel/plugin-transform-unicode-sets-regex, among others, offering transformations aligned with recent JS specifications.
Conversely, several packages are no longer present @babel/plugin-proposal-json-strings, @babel/plugin-proposal-dynamic-import, @babel/plugin-proposal-private-methods, @babel/plugin-proposal-numeric-separator among others.
Developers should be aware of these dependency changes. Upgrade plugin for a more efficient and future-proof transpilation process. These changes collectively contribute to a more robust and standards-compliant transformation of modern JavaScript code for broader browser compatibility. It's recommended to review the specific changelogs of the updated dependencies for a comprehensive understanding of the included enhancements, which might necessitate adjustments to your Babel configuration.
The are not vulnerabilities for the version 7.22.0 of the package @babel/preset-env