Jest Environment JSDOM version 30.0.4 represents a minor update over version 30.0.2, primarily focusing on internal improvements and potential bug fixes. Both versions share the same core dependencies, utilizing jsdom for simulating a browser environment, @types/node and @types/jsdom for TypeScript support, and @jest/environment and @jest/environment-jsdom-abstract for Jest integration and abstracting environment functionalities. The canvas peer dependency remains consistent, indicating continued support for canvas-based testing within the JSDOM environment.
The key differences lie in the dist section. Version 30.0.4 has a slightly larger unpacked size (5445 bytes compared to 5032 bytes) and includes 6 files instead of 5 suggesting the modifications included adding some extra files. These changes, while seemingly minor, could reflect internal code refactoring, updated documentation, or the inclusion of new test cases aimed at improving the stability and reliability of the environment.
For developers using or considering jest-environment-jsdom, this update offers a more refined testing environment without introducing breaking changes related to dependencies. The increased file count and size might indicate improvements in test coverage or minor feature additions. Users seeking the most stable and up-to-date testing experience within Jest should upgrade to version 30.0.4. The library facilitates running Jest tests in a simulated browser environment which is a headless browser that allows simulating the behaviour of web pages including handling tests that are dependent on the front end.
The releaseDate is also important: version 30.0.4 was released at "2025-07-02" instead of "2025-06-19" for version 30.0.2.
The are not vulnerabilities for the version 30.0.4 of the package jest-environment-jsdom