Babel-jest versions 27.0.0 and 26.6.3 serve as Jest plugins, enabling the use of Babel for transforming JavaScript code during testing. Comparing the two, version 27.0.0 introduces key updates in its dependencies, reflecting advancements in the Jest ecosystem. Notably, @jest/types and @jest/transform are bumped to version 27.0.0-next.10 from 26.6.2, indicating integration with newer, potentially pre-release features of Jest. Similarly, babel-preset-jest is updated to 27.0.0-next.10.
A crucial change resides in the peer dependency @babel/core, with version 27.0.0 requiring ^7.8.0 compared to ^7.0.0 in 26.6.3. This signifies that developers upgrading to babel-jest 27.0.0 must ensure their projects are using a more recent version of @babel/core, potentially requiring updates to their Babel configurations. The @types/babel__core dependency is also updated from 7.1.7 to 7.1.14 reflecting latest fixes and improvements to the core typings.
While both versions share common dependencies like chalk, slash, graceful-fs, and babel-plugin-istanbul, the core jest dependencies bumps highlight the shift with Jest's development. The updated dependencies and peer dependency requirement of @babel/core are important considerations for developers when upgrading, ensuring compatibility and potentially unlocking new testing features. Version 27.0.0 also has a larger unpacked size, 14270 vs 11852.
The are not vulnerabilities for the version 27.0.0 of the package babel-jest