Jest Environment JSDOM version 29.6.1 is a minor release following closely after version 29.6.0, both designed to provide a simulated browser environment for running Jest tests. This allows developers to test JavaScript code that interacts with the DOM without needing a real browser. The library relies on JSDOM for DOM emulation, Jest Mock for creating mock functions, and Jest Util for utility functions. Both versions declare peer dependency on Canvas, suggesting projects utilizing canvas-related functionality should have a version compatible with ^2.5.0.
Looking at the dependencies, the key change lies in the updated versions of several core Jest packages. For example, jest-mock, jest-util, @jest/types, @jest/environment, and @jest/fake-timers. The updated values indicate that version 29.6.1 depends on more recent versions of those packages (all to 29.6.1), while the previous stable release, 29.6.0, utilized the 29.6.0 versions. This signifies internal updates and bug fixes within the Jest ecosystem itself. While the core functionality of the environment probably remains consistent between the two versions, developers should upgrade to 29.6.1 for the latest bug fixes, performance improvements, and security patches incorporated into the core Jest dependencies. Developers using @jest/test-utils as dev dependency also gets an upgrade to the newer version. The file count and unpacked size remain the same between the two versions. The newer version was released on July 6, 2023, providing the newest enhancements and fixes in the jest ecosystem.
The are not vulnerabilities for the version 29.6.1 of the package jest-environment-jsdom