Jest environment jsdom package version 29.3.1 is a minor update over the previous stable version 29.3.0, primarily focused on aligning dependencies with the core Jest ecosystem. For developers utilizing Jest for testing JavaScript code in a browser-like environment, this update offers subtle yet important refinements.
The most notable difference lies in the updated dependencies. Several internal Jest packages, including jest-mock, jest-util, @jest/types, @jest/environment and @jest/fake-timers have been bumped to version 29.3.1 aligning them with the main package. This ensures better compatibility and potentially includes bug fixes or minor improvements within those dependent modules. The dev dependency @jest/test-utils also sees a similar version bump.
While jsdom, @types/node, @types/jsdom and the peer dependency canvas remain at the same versions, crucial for simulating a browser environment, the consolidation of Jest-related dependencies signifies a refinement in stability and internal consistency. Developers upgrading from 29.3.0 should expect a smooth transition with potentially increased reliability in scenarios involving mocking, utility functions, type definitions, or environment setup. The dist section reports the same file count and unpacked size suggesting code changes are minimal. The update from 2022-11-07 to 2022-11-08 also shows a quick release.
The are not vulnerabilities for the version 29.3.1 of the package jest-environment-jsdom