Enzyme-to-json is a utility for converting Enzyme wrappers into a format suitable for Jest snapshot testing, streamlining the process of verifying React component output. Comparing versions 1.3.0 and 1.2.1 reveals subtle but potentially impactful changes for developers maintaining snapshot tests. Notably, version 1.3.0 replaces lodash.omit with lodash.omitby in its dependencies. This suggests a shift in how the library handles the exclusion of properties during the conversion of Enzyme wrappers to JSON, potentially offering more flexibility or efficiency in filtering unwanted data from snapshots.
Both versions share a common set of dependencies, including lodash utilities for object manipulation and core libraries for Enzyme and Jest integration. They also share the same peer dependency on Enzyme "^2.4.1", and same dev dependencies ensuring compatibility with the testing ecosystem of the time. The change from lodash.omit to lodash.omitby could be crucial if you've encountered issues with specific properties being unintentionally included or excluded in your snapshots in the older version. Upgrading to 1.3.0 might resolve these discrepancies and result in cleaner, more accurate snapshot representations of your React components. For developers, this update signifies a refinement in the library's ability to craft reliable and maintainable snapshot tests, enhancing the overall testing workflow and reducing potential false positives or negatives.
The are not vulnerabilities for the version 1.3.0 of the package enzyme-to-json