~[ ] My change requires a change to the documentation and I have updated the documentation accordingly.~ No change required.
[x] My changes are in sync with the code style of this project.
[x] There aren't any other open Pull Requests for the same issue/update.
[ ] These changes should be applied to a maintenance branch.
Not 100% sure, but I don't think this applies.
[x] I have added the Apache 2.0 license header to any new files created.
No files changed.
What is the Impact to Developers Using Jest-Image-Snapshot?
No major changes, except that their package-lock.json file should be slightly simpler, and their node_modules folder slightly smaller (assuming that they have no other packages that rely on chalk v1).
Description
Bumps chalk from
^1.1.3
to^4.0.0
.Chalk's major changes were:
chalk.constructor
has been replaced withchalk.Instance
(v3)chalk.enabled
has been replaced withchalk.level
(v3)Motivation and Context
Jest v28 uses Chalk v4 as a dependency, so using the same version in jest-image-snapshot will mean users only need to download one version of chalk.
How Has This Been Tested?
jest
tests pass.I've tried testing this branch on my own project (remark-mermaid-dataurl) using the following, and it works fine.
Additionally, my
package-lock.json
file lost 107 lines, so a bunch of packages were no longer needed.Types of Changes
Checklist:
What is the Impact to Developers Using Jest-Image-Snapshot?
No major changes, except that their
package-lock.json
file should be slightly simpler, and theirnode_modules
folder slightly smaller (assuming that they have no other packages that rely onchalk
v1).