@testing-library/react version 16.3.0 introduces subtle but important changes compared to version 16.2.0, primarily revolving around development dependencies. While both versions share the core functionality of providing simple and complete React DOM testing utilities, encouraging good testing practices, the newer version reflects updates in the testing ecosystem. Notably, react and react-dom are explicitly listed as development dependencies, updated to version "^19.0.0" in 16.3.0, and are alongside up-to-date versions of @types/react, @types/react-dom, as well as @testing-library/dom and @testing-library/jest-dom.
Developers upgrading to 16.3.0 should note these dependency adjustments. The versions of react and react-dom being explicitly defined as development dependencies ensure compatibility and a smooth testing experience when working with React 19 features. These enhancements ensure the library remains aligned with the latest React features and best practices. The adjustment in the versions of testing libraries and type definitions ensures a consistent development environment, minimizing potential version conflicts. These updates are crucial to leveraging the latest testing capabilities and maintaining code quality within a React 19 environment. Both versions maintain consistent peer dependencies, ensuring compatibility with React versions 18 and 19. Check and update your configurations accordingly to unlock the full potential of this updated testing utility.
The are not vulnerabilities for the version 16.3.0 of the package @testing-library/react