Enzyme-to-json is a valuable utility for React developers employing Jest snapshot testing with Enzyme. It transforms Enzyme wrappers into serializable formats, simplifying the process of creating and maintaining UI snapshots. Comparing versions 3.4.0 and 3.3.5, several key distinctions emerge that impact developer experience.
The most notable change lies in the peer dependency on Enzyme. Version 3.4.0 mandates Enzyme version ^3.4.0, while version 3.3.5 is compatible with Enzyme versions starting from ^3.0.0. This difference is crucial for users upgrading, ensuring compatibility and preventing runtime errors. Furthermore, the dependency on lodash has been updated from ^4.17.4 to ^4.17.12. This means that version 3.4.0 uses a newer version of lodash.
Beyond dependency shifts, version 3.4.0 incorporates improvements reflected in its larger unpacked size (47397 bytes vs 27135 bytes) and file count (29 vs 16), suggesting potential enhancements to the core logic, new features, or expanded test coverage. Version 3.4.0 was released on August 3rd, 2019 and version 3.3.5 was released on December 4th, 2018 which makes the first a more recent release. Developers should evaluate these changes in the context of their project's dependencies and testing needs to determine the most suitable version for their workflow. Keeping up to date with the newest release will ensure the security of your app.
The are not vulnerabilities for the version 3.4.0 of the package enzyme-to-json