Jsdom version 23.0.1 represents a minor patch release over the previous stable version 23.0.0. Both versions implement a JavaScript environment for running web standards, making it possible to simulate browser behavior in Node.js. Core functionalities remain consistent including parsing and manipulating HTML, CSS, and executing JavaScript, facilitated by dependencies like parse5 for HTML parsing, cssstyle for CSS, and whatwg-url for URL handling.
The primary difference lies in the peer dependency canvas. Version 23.0.0 specified canvas version ^3.0.0, while 23.0.1 requires canvas with version ^2.11.2. This change suggests a potential adjustment to accommodate older or specific versions of the canvas library or a fix related to compatibility issues identified in canvas version 3.x.x. Developers relying on jsdom with canvas should carefully evaluate this peer dependency change, ensuring their canvas installation aligns with the requirements of jsdom version 23.0.1 to avoid compatibility issues.
For developers, both releases offer valuable tools for testing web applications without a browser, server-side rendering, or scraping web content. The extensive list of dependencies ensures a comprehensive implementation of web standards. Both versions include identical devDependencies used for testing hinting at a stable codebase and potentially an easy upgrade process. However the canvas version bump for the peer dependency should be carefully evaluated.
The are not vulnerabilities for the version 23.0.1 of the package jsdom