Jsdom version 22.0.0 introduces notable changes compared to its predecessor, version 21.1.2. Both versions serve as JavaScript implementations of web standards, enabling developers to simulate a browser environment within Node.js. A key difference lies within the dependencies; version 22.0.0 eliminates acorn and escodegen, libraries related to JavaScript parsing and code generation from the core dependencies, while version 21.1.2 relies on them. This may reflect internal refactoring or a shift towards alternative approaches for handling JavaScript within the simulated DOM.
Furthermore, the devDependencies see some churn. Version 22.0.0 upgrades yargs and eslint but drops testing tools like karma, rimraf, watchify, browserify, karma-mocha, karma-browserify, karma-chrome-launcher, and karma-mocha-webworker. This suggests a potential shift in the testing strategy, possibly streamlining the development workflow. The peer dependency on canvas remains consistent. The changes in dependencies might affect the performance or the way jsdom handles specific web standards. Developers should, therefore, carefully evaluate compatibility if they are upgrading from version 21.1.2. Both versions include a suite of tools like parse5, cssstyle, and whatwg-url to accurately simulate browser behavior for rendering HTML and CSS. The consistent license, repository, and peer dependency on canvas makes it easy for developers to use the library.
The are not vulnerabilities for the version 22.0.0 of the package jsdom