americanexpress / jest-image-snapshot

✨ Jest matcher for image comparisons. Most commonly used for visual regression testing.
Apache License 2.0
3.81k stars 197 forks source link

chore(deps): bump chalk from `^1.1.3` to `^4.0.0` #310

Closed aloisklink closed 1 year ago

aloisklink commented 1 year ago

Description

Bumps chalk from ^1.1.3 to ^4.0.0.

Chalk's major changes were:

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.

    "jest-image-snapshot": "git+https://github.com/aloisklink/jest-image-snapshot.git#chore/update-chalk-to-v4",

Additionally, my package-lock.json file lost 107 lines, so a bunch of packages were no longer needed.

alois@computer:~/Documents/remark-mermaid-dataurl (master)$ git diff --stat package-lock.json
 package-lock.json | 115 ++++++++-----------------------------------------------------------------------------------------------------------
 1 file changed, 8 insertions(+), 107 deletions(-)

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 their node_modules folder slightly smaller (assuming that they have no other packages that rely on chalk v1).

oneamexbot commented 1 year ago

:tada: This PR is included in version 6.0.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: