@testing-library/react version 9.2.0 introduces several updates compared to the previous stable version 9.1.4, making it a worthwhile upgrade for developers using React testing utilities. A key difference lies in the updated dependencies. Version 9.2.0 upgrades @babel/runtime to ^7.6.0 from ^7.5.5, incorporating newer features and bug fixes from Babel's runtime environment which potentially improves compatibility with modern JavaScript syntax. The update also involves @testing-library/dom which jumps from version ^6.1.0 to ^6.3.0, offering enhancements and fixes associated with DOM manipulation and querying. The devDependencies see additions like rimraf, cross-env, and npm-run-all, indicating improvements in the development workflow. Notably, rimraf facilitates easier file deletion during builds, cross-env ensures consistent environment variable handling across operating systems, and npm-run-all enables parallel script execution, speeding up build times. The dist object also reveals a considerable increase in unpacked size, from 1,691,361 bytes to 3,333,034 bytes, and file count from 16 to 22, implying added features, better documentation, or extended test coverage. For developers, upgrading to 9.2.0 means benefiting from enhanced DOM testing utilities, a modernized Babel runtime, and improved development tools leading to a smoother and more efficient testing experience.
The are not vulnerabilities for the version 9.2.0 of the package @testing-library/react