Version 10.0.4 of @testing-library/react introduces subtle but important updates compared to its predecessor, version 10.0.3. Both versions maintain the core mission of providing simple and complete React DOM testing utilities that promote effective testing practices.
A notable change lies within the dependencies. Version 10.0.4 upgrades @babel/runtime from version 7.9.2 to 7.9.6 and @testing-library/dom from 7.1.0 to 7.2.2 while @types/testing-library__react moves from 10.0.0 to 10.0.1. These updates likely incorporate bug fixes, performance improvements, and potentially new features from these core dependencies, ensuring better stability and compatibility.
Conversely, the development dependencies reveal a shift in tooling. Version 10.0.3 utilizes cross-env at version 7.0.2 and kcd-scripts at version 5.6.0 where version 10.0.4 introduces dotenv-cli at version 3.1.0 and upgrades kcd-scripts to version 5.11.1. The introduction of dotenv-cli might streamline environment variable management during testing. The upgrade of kcd-scripts bring improvements on developer experience.
Both versions target React and React DOM versions ^16.13.1 as development dependencies and declare them as peer dependencies with a * version indicating compatibility with any version. Developers upgrading should test compatibility with their existing React setup, though the peer dependency declaration makes any breaking changes on this part unlikely. The unpacked size also increased, from ~4.5MB to ~4.7MB
The are not vulnerabilities for the version 10.0.4 of the package @testing-library/react