Jest-canvas-mock is a helpful utility for developers using Jest to test code that interacts with the HTML canvas element. Version 2.0.0 marks a significant upgrade from version 1.1.0, introducing both new features and updated dependencies. The most noticeable change is the addition of runtime dependencies: cssfontparser and parse-color. These inclusions suggest enhanced capabilities in handling canvas styling and color manipulations, potentially allowing developers to more accurately mock complex canvas drawing scenarios involving text and various color formats.
From a development perspective, the upgrade involves a considerable shift in the development dependencies. Version 2.0.0 uses Babel 7, signified by packages like @babel/cli, @babel/preset-env, and @babel/plugin-proposal-class-properties, offering modern JavaScript support and class property syntax. Updated tooling such as @commitlint/cli and @commitlint/config-angular encourages a structured and standardized approach to commit messages, promoting better collaboration within development teams. Finally, there is a considerable upgrade in the testing environment, upgrading Jest from version 21.2.1 to version 24 and babel-jest from version 22.0.4 to version 24.0.0. These changes mean that jest-canvas-mock is more aligned with up-to-date configurations.
The are not vulnerabilities for the version 2.0.0 of the package jest-canvas-mock