Jest Environment JSDOM has released version 28.0.0, a notable update from the previous stable version 27.5.1. One of the key changes is the upgraded jsdom dependency, moving from ^16.6.0 to ^19.0.0. This bump in jsdom version likely pulls in significant feature enhancements, bug fixes, and potentially performance improvements within the simulated browser environment, directly affecting how Jest tests interact with DOM elements. Developers should review jsdom's changelog for details on these changes to ensure compatibility and leverage new functionalities where applicable.
Moreover, various core Jest dependencies such as jest-mock, jest-util, @jest/types, @jest/environment, and @jest/fake-timers have been updated to version 28.0.0 aligning with the main Jest release cycle. This ensures consistent behavior and access to the latest features across the Jest ecosystem.
Interestingly, @types/jsdom has been explicitly added as a dependency to the newer version 28.0.0, while version 27.5.1 had it defined under devDependencies. This adjustment indicates a more direct dependency on JSDOM's type definitions for the core environment to function as intended. Developers working with TypeScript will appreciate this enhancement, as it improves type checking and IntelliSense support. Finally, @jest/test-utils moved from devDependencies to dependencies suggesting its utilities may be used internally. Developers should test their code for compatibility with the new jsdom version and explore any new functionalities exposed by the updated Jest dependencies.
The are not vulnerabilities for the version 28.0.0 of the package jest-environment-jsdom