version 14.2.2 of @testing-library/react represents a minor update over its predecessor, version 14.2.1, in this popular suite of React DOM testing utilities designed to promote robust testing practices. Both versions share the same core dependencies, including @babel/runtime, @types/react-dom, and @testing-library/dom, ensuring compatibility and access to fundamental functionalities. Similarly, their peer dependencies remain fixed on React and React DOM version 18.0.0 or higher, indicating a continued commitment to modern React development.
The most notable difference lies in the jest-diff dev dependency, which is bumped from version 29.4.1 to 29.7.0. This upgrade likely incorporates improvements and bug fixes within the diffing algorithm used for comparing React component outputs during testing, potentially leading to more accurate and informative test failure messages. Developers upgrading should note that this dependency change will affect the development process.
Furthermore, the dist metadata reveals a slight increase in the unpacked size of the package, from 5414483 bytes in version 14.2.1 to 5423713 bytes in version 14.2.2. This marginal size increase could be attributed to the updated jest-diff dependency or other minor internal changes. Lastly, the release date indicates that version 14.2.2 was published on March 19, 2024, while version 14.2.1 was released on February 1, 2024. Developers should consider this recent release date when choosing between the two versions.
The are not vulnerabilities for the version 14.2.2 of the package @testing-library/react