@testing-library/react version 11.0.0 represents an incremental update over version 10.4.9, offering refinements and improvements for React component testing. Both versions share the core philosophy of promoting good testing practices by providing simple and complete DOM testing utilities. The primary goal remains the same: to encourage tests that resemble how users interact with React applications.
Key differences lie in the updated dependency versions. Version 11.0.0 upgrades @babel/runtime to ^7.11.2 and @testing-library/dom to ^7.23.0, while version 10.4.9 uses @babel/runtime ^7.10.3 and @testing-library/dom ^7.22.3. These dependency updates likely include bug fixes, performance enhancements, and possibly new features within the underlying testing infrastructure. Developers will benefit from these improvements indirectly, gaining a more robust and reliable testing environment.
In the devDependencies, TypeScript is bumped from ^3.9.5 to ^4.0.2, and dtslint from 3.6.12 to 4.0.0, indicating improvements in the type checking and linting processes. The @testing-library/jest-dom also sees an upgrade from ^5.10.1 to ^5.11.4, potentially introducing more useful Jest DOM matchers for asserting on the state of the DOM. While the functional API of the testing library should remain relatively consistent, developers are encouraged to review the changelogs of these updated dependencies for any breaking changes or new capabilities that could enhance their testing workflows. A slightly reduced unpackedSize suggests potential optimizations under the hood, even though the fileCount went from 29 to 28.
The are not vulnerabilities for the version 11.0.0 of the package @testing-library/react