Enzyme-to-json is a valuable utility for React developers leveraging Jest snapshots for component testing. Version 3.3.5 presents several notable updates compared to the previous stable release, 3.3.4. One key difference lies in the updated enzyme and associated adapter dependencies. Version 3.3.5 now depends on enzyme@^3.7.0 and enzyme-adapter-react-16@^1.7.0, whereas 3.3.4 used enzyme@^3.1.0 and enzyme-adapter-react-16@^1.0.1. This indicates improved compatibility and support for newer Enzyme features and potentially better alignment with recent React versions. Furthermore, the react, react-dom, and react-test-renderer dependencies are bumped from version 16.0.0 in 3.3.4 to 16.6.0 in 3.3.5 reflecting compatibility with React 16.6 features like React.memo and React.lazy. The prop-types dependency has also been updated from 15.6.0 to 15.6.2. Developers should consider these dependency updates when upgrading, ensuring their project's other dependencies are compatible. The release date of 3.3.5 is significantly later (2018-12-04) than 3.3.4 (2018-05-18), suggesting that 3.3.5 includes bug fixes and improvements accumulated over that period. The unpacked size also shows a marginal difference, hinting at minor code additions or adjustments. For developers wanting to test newer React features and relying on Enzyme, upgrading to 3.3.5 is recommended for better support and stability.
The are not vulnerabilities for the version 3.3.5 of the package enzyme-to-json