@testing-library/react version 13.0.0 marks a significant upgrade from version 12.1.5, primarily driven by its compatibility with React 18. Developers upgrading should note the peer dependency update: both react and react-dom are now specified as ^18.0.0, signifying a requirement for React 18 or higher. Version 12.1.5, in contrast, specified versions <18.0.0, aligning with React 17.
This core change ripples through the dependency tree. The @types/react-dom dependency reflects this shift. Version 13.0.0 now uses a wildcard, while 12.1.5 required a version less than 18.0.0.
The @testing-library/dom dependency gets a bump from ^8.0.0 to ^8.5.0, bringing in new features and improvements from the underlying DOM testing library which is good in terms of bug fixes and extra functionalities.
While most dev dependencies remain consistent between the versions, including essential tools like typescript, kcd-scripts, and @testing-library/jest-dom, developers upgrading to version 13 should thoroughly test their components with React 18 to ensure compatibility. The upgrade guarantees better support for React's latest features and performance improvements. The increased unpackedSize in the older version is not relevant as it may derive from temporary file differences.
The are not vulnerabilities for the version 13.0.0 of the package @testing-library/react