Babel-jest is a crucial plugin for Jest, enabling the use of Babel to transform JavaScript code during testing. Version 24.0.0 introduces several key updates compared to the earlier 23.6.0, affecting developers using Jest for testing their JavaScript projects.
A significant shift lies in the core Babel dependency. Version 24.0.0 transitions to Babel 7 (specifically @babel/core":"^7.1.0") as a development dependency and peer dependency (@babel/core":"^7.0.0"), providing compatibility with modern JavaScript features and syntax. This contrasts with version 23.6.0, which relies on the older babel-core in its development and peer dependencies (babel-core":"^6.0.0 || ^7.0.0-0"). For developers, especially those working on newer projects, this upgrade to Babel 7 support ensures compatibility with the newest language features.
Furthermore, version 24.0.0 also updates its dependency on babel-preset-jest to ^24.0.0, aligning it with the current Jest version. In comparison, v23.6.0 uses babel-preset-jest":"^23.2.0". The babel-plugin-istanbul dependency is bumped to "^5.1.0" from "^4.1.6", likely introducing improvements and potential bug fixes in code coverage reporting. The package size has slightly changed, with v24.0.0 being smaller (6729 unpacked size) than v23.6.0 (7217 unpacked size), indicating potential optimizations or changes in included files. Finally, the directory field in the repository has also been specified in v24.0.0 clarifying the location of the package.
The are not vulnerabilities for the version 24.0.0 of the package babel-jest