Enzyme-to-json is a valuable utility for React developers leveraging Jest snapshot testing with Enzyme. Version 3.4.4 introduces key updates compared to the previous stable version, 3.4.3, primarily focusing on dependency upgrades and build process improvements. Notably, 3.4.4 adds "react-is" as a direct dependency, which is crucial for components compatibility, especially dealing with React fragments and newer React features.
The newer version reflects significant upgrades to its development dependencies, switching to the Babel 7 suite. This includes @babel/cli, @babel/core, @babel/preset-env, and @babel/preset-react, moving away from Babel 6 used in 3.4.3. This change ensures compatibility with modern JavaScript features and React syntax, also improving the build process. The Jest testing framework is also updated to version 24.9.0, aligning it with recent testing practices.
While the core functionality of transforming Enzyme wrappers to JSON remains the same, the updated dependencies in 3.4.4 enhance compatibility, performance, and developer experience. The older version utilized older dependency stack, potentially creating warning and incompatibility issues with recent projects. Developers should migrate to version 3.4.4 for better support for modern React features and an improved development workflow with aligned tooling. Finally, the package size and file count have been significantly reduced in 3.4.4, contributing to a cleaner and more efficient distribution.
The are not vulnerabilities for the version 3.4.4 of the package enzyme-to-json