@testing-library/react has a new stable version, 14.3.0, released on April 8, 2024. Comparing it to the previous version, 14.2.2 (released March 19, 2024), we see that the core dependencies, devDependencies, and peerDependencies remain largely the same, indicating a focus on incremental improvements and bug fixes rather than significant architectural changes. Both versions rely on React 18 and react-dom 18 as peer dependencies, and testing-library/dom version 9, ensuring compatibility with modern React projects.
The most notable difference lies in the "dist" section. While both versions contain 26 files, the "unpackedSize" of version 14.3.0 is slightly larger at 5433252 compared to 5423713 in version 14.2.2, pointing to optimization, new features or content, or adjustments within the existing codebase. Developers upgrading should be aware of this small size increase. This suggests potential enhancements or added resources that could benefit testing workflows.
For developers using @testing-library/react, both versions offer the same core utilities for testing React components with an emphasis on simulating user behavior and interacting with the DOM of the components. The library aims to promote good testing practices by encouraging tests that closely resemble how users interact with the application. The consistent dependency structure between versions suggests a smooth upgrade path, though developers should always review changelogs(hosted on github, link in "repository") for detailed specifics on the changes.
The are not vulnerabilities for the version 14.3.0 of the package @testing-library/react