@babel/register is a powerful tool for developers leveraging Babel's transformations within Node.js environments. Version 7.6.0, released on September 6, 2019, refines this functionality following the previous stable version 7.5.5, published on July 17, 2019. The core purpose remains consistent: enabling on-the-fly transpilation of JavaScript files using Babel, directly when they are required.
A key difference lies in the dependencies. While both versions share common ground with packages like lodash, mkdirp, pirates, find-cache-dir, and source-map-support, version 7.5.5 included a dependency on core-js version 3.0.0 or higher. This dependency on core-js is absent in version 7.6.0. This change likely reflects refinements in how @babel/register handles polyfilling and environment support, potentially shifting the responsibility for including core-js explicitly to the user's project for finer-grained control. Note also that the devDependencies and peerDependencies align with their respective core Babel versions. Version 7.6.0 depends on @babel/core version ^7.6.0 as a development dependency where version 7.5.5 depends on @babel/core version ^7.5.5. As a peer dependency to both versions, a version of Babel Core, compatible with version 7, must be installed. Developers upgrading should carefully consider this change and ensure their projects appropriately handle any necessary polyfilling. The slightly smaller unpacked size of version 7.6.0 (8882 bytes vs. 8907 bytes) could be a reflection of these dependency adjustments.
The are not vulnerabilities for the version 7.6.0 of the package @babel/register