jest-image-snapshot
Advanced tools
Comparing version 5.2.0 to 6.0.0
@@ -0,1 +1,20 @@ | ||
# [6.0.0](https://github.com/americanexpress/jest-image-snapshot/compare/v5.2.0...v6.0.0) (2022-11-03) | ||
* chore(jest)!: add support for jest v29 (#309) ([79e53fc](https://github.com/americanexpress/jest-image-snapshot/commit/79e53fc010793f574cd9da783ced895af6987712)), closes [#309](https://github.com/americanexpress/jest-image-snapshot/issues/309) | ||
### BREAKING CHANGES | ||
* Drop support for Node v12 and Node v17, | ||
as Jest v29 does not support these versions. | ||
* ci(release): use Node v16 for release action | ||
Node v16 is the current active LTS release of Node.JS | ||
Co-authored-by: Jamie King <hello@jamieking.me> | ||
Co-authored-by: Jamie King <hello@jamieking.me> | ||
# [5.2.0](https://github.com/americanexpress/jest-image-snapshot/compare/v5.1.1...v5.2.0) (2022-08-31) | ||
@@ -2,0 +21,0 @@ |
{ | ||
"name": "jest-image-snapshot", | ||
"version": "5.2.0", | ||
"version": "6.0.0", | ||
"description": "Jest matcher for image comparisons. Most commonly used for visual regression testing.", | ||
"main": "src/index.js", | ||
"engines": { | ||
"node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" | ||
"node": "^14.15.0 || ^16.10.0 || >=18.0.0" | ||
}, | ||
@@ -56,4 +56,4 @@ "scripts": { | ||
"image-size": "^0.8.3", | ||
"jest": "^28.0.3", | ||
"jest-snapshot": "^28.0.3", | ||
"jest": "^29.0.0", | ||
"jest-snapshot": "^29.0.0", | ||
"lockfile-lint": "^4.0.0", | ||
@@ -64,3 +64,3 @@ "mock-spawn": "^0.2.6", | ||
"dependencies": { | ||
"chalk": "^1.1.3", | ||
"chalk": "^4.0.0", | ||
"get-stdin": "^5.0.1", | ||
@@ -76,3 +76,3 @@ "glur": "^1.1.2", | ||
"peerDependencies": { | ||
"jest": ">=20 <=28" | ||
"jest": ">=20 <=29" | ||
}, | ||
@@ -79,0 +79,0 @@ "husky": { |
@@ -78,3 +78,3 @@ <h1 align="center"> | ||
Please note that `Jest` `>=20 <=27` is a peerDependency. `jest-image-snapshot` will **not** work with anything below Jest 20.x.x | ||
Please note that `Jest` `>=20 <=29` is a peerDependency. `jest-image-snapshot` will **not** work with anything below Jest 20.x.x | ||
@@ -81,0 +81,0 @@ ### Invocation |
@@ -18,3 +18,3 @@ /* | ||
const path = require('path'); | ||
const Chalk = require('chalk').constructor; | ||
const Chalk = require('chalk').Instance; | ||
const { diffImageToSnapshot, runDiffImageToSnapshot } = require('./diff-snapshot'); | ||
@@ -178,3 +178,4 @@ const fs = require('fs'); | ||
if (typeof noColors !== 'undefined') { | ||
chalkOptions.enabled = !noColors; | ||
// 1 means basic ANSI 16-color support, 0 means no support | ||
chalkOptions.level = noColors ? 0 : 1; | ||
} | ||
@@ -181,0 +182,0 @@ const chalk = new Chalk(chalkOptions); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
79032
732
+ Added@babel/code-frame@7.26.2(transitive)
+ Added@babel/compat-data@7.26.2(transitive)
+ Added@babel/core@7.26.0(transitive)
+ Added@babel/generator@7.26.2(transitive)
+ Added@babel/helper-module-transforms@7.26.0(transitive)
+ Added@babel/helpers@7.26.0(transitive)
+ Added@babel/parser@7.26.2(transitive)
+ Added@babel/plugin-syntax-import-attributes@7.26.0(transitive)
+ Added@babel/plugin-syntax-jsx@7.25.9(transitive)
+ Added@babel/types@7.26.0(transitive)
+ Added@jest/console@29.7.0(transitive)
+ Added@jest/core@29.7.0(transitive)
+ Added@jest/environment@29.7.0(transitive)
+ Added@jest/expect@29.7.0(transitive)
+ Added@jest/expect-utils@29.7.0(transitive)
+ Added@jest/fake-timers@29.7.0(transitive)
+ Added@jest/globals@29.7.0(transitive)
+ Added@jest/reporters@29.7.0(transitive)
+ Added@jest/schemas@29.6.3(transitive)
+ Added@jest/source-map@29.6.3(transitive)
+ Added@jest/test-result@29.7.0(transitive)
+ Added@jest/test-sequencer@29.7.0(transitive)
+ Added@jest/transform@29.7.0(transitive)
+ Added@jest/types@29.6.3(transitive)
+ Added@sinclair/typebox@0.27.8(transitive)
+ Added@sinonjs/commons@3.0.1(transitive)
+ Added@sinonjs/fake-timers@10.3.0(transitive)
+ Added@types/node@22.8.6(transitive)
+ Addedbabel-jest@29.7.0(transitive)
+ Addedbabel-plugin-jest-hoist@29.6.3(transitive)
+ Addedbabel-preset-jest@29.6.3(transitive)
+ Addedcaniuse-lite@1.0.30001676(transitive)
+ Addedcreate-jest@29.7.0(transitive)
+ Addeddedent@1.5.3(transitive)
+ Addeddiff-sequences@29.6.3(transitive)
+ Addedelectron-to-chromium@1.5.50(transitive)
+ Addedemittery@0.13.1(transitive)
+ Addedexpect@29.7.0(transitive)
+ Addedistanbul-lib-instrument@6.0.3(transitive)
+ Addedjest@29.7.0(transitive)
+ Addedjest-changed-files@29.7.0(transitive)
+ Addedjest-circus@29.7.0(transitive)
+ Addedjest-cli@29.7.0(transitive)
+ Addedjest-config@29.7.0(transitive)
+ Addedjest-diff@29.7.0(transitive)
+ Addedjest-docblock@29.7.0(transitive)
+ Addedjest-each@29.7.0(transitive)
+ Addedjest-environment-node@29.7.0(transitive)
+ Addedjest-get-type@29.6.3(transitive)
+ Addedjest-haste-map@29.7.0(transitive)
+ Addedjest-leak-detector@29.7.0(transitive)
+ Addedjest-matcher-utils@29.7.0(transitive)
+ Addedjest-message-util@29.7.0(transitive)
+ Addedjest-mock@29.7.0(transitive)
+ Addedjest-regex-util@29.6.3(transitive)
+ Addedjest-resolve@29.7.0(transitive)
+ Addedjest-resolve-dependencies@29.7.0(transitive)
+ Addedjest-runner@29.7.0(transitive)
+ Addedjest-runtime@29.7.0(transitive)
+ Addedjest-snapshot@29.7.0(transitive)
+ Addedjest-util@29.7.0(transitive)
+ Addedjest-validate@29.7.0(transitive)
+ Addedjest-watcher@29.7.0(transitive)
+ Addedjest-worker@29.7.0(transitive)
+ Addedpretty-format@29.7.0(transitive)
+ Addedpure-rand@6.1.0(transitive)
+ Addedresolve.exports@2.0.2(transitive)
- Removed@babel/code-frame@7.25.9(transitive)
- Removed@babel/compat-data@7.25.9(transitive)
- Removed@babel/core@7.25.9(transitive)
- Removed@babel/generator@7.25.9(transitive)
- Removed@babel/helper-module-transforms@7.25.9(transitive)
- Removed@babel/helper-simple-access@7.25.9(transitive)
- Removed@babel/helpers@7.25.9(transitive)
- Removed@babel/highlight@7.25.9(transitive)
- Removed@babel/parser@7.25.9(transitive)
- Removed@babel/plugin-syntax-import-attributes@7.25.9(transitive)
- Removed@babel/types@7.25.9(transitive)
- Removed@jest/console@28.1.3(transitive)
- Removed@jest/core@28.1.3(transitive)
- Removed@jest/environment@28.1.3(transitive)
- Removed@jest/expect@28.1.3(transitive)
- Removed@jest/expect-utils@28.1.3(transitive)
- Removed@jest/fake-timers@28.1.3(transitive)
- Removed@jest/globals@28.1.3(transitive)
- Removed@jest/reporters@28.1.3(transitive)
- Removed@jest/schemas@28.1.3(transitive)
- Removed@jest/source-map@28.1.2(transitive)
- Removed@jest/test-result@28.1.3(transitive)
- Removed@jest/test-sequencer@28.1.3(transitive)
- Removed@jest/transform@28.1.3(transitive)
- Removed@jest/types@28.1.3(transitive)
- Removed@sinclair/typebox@0.24.51(transitive)
- Removed@sinonjs/commons@1.8.6(transitive)
- Removed@sinonjs/fake-timers@9.1.2(transitive)
- Removed@types/node@22.7.9(transitive)
- Removed@types/prettier@2.7.3(transitive)
- Removedansi-regex@2.1.1(transitive)
- Removedansi-styles@2.2.13.2.1(transitive)
- Removedbabel-jest@28.1.3(transitive)
- Removedbabel-plugin-jest-hoist@28.1.3(transitive)
- Removedbabel-preset-jest@28.1.3(transitive)
- Removedcaniuse-lite@1.0.30001669(transitive)
- Removedchalk@1.1.32.4.2(transitive)
- Removedcolor-convert@1.9.3(transitive)
- Removedcolor-name@1.1.3(transitive)
- Removedconvert-source-map@1.9.0(transitive)
- Removeddedent@0.7.0(transitive)
- Removeddiff-sequences@28.1.1(transitive)
- Removedelectron-to-chromium@1.5.45(transitive)
- Removedemittery@0.10.2(transitive)
- Removedescape-string-regexp@1.0.5(transitive)
- Removedexpect@28.1.3(transitive)
- Removedhas-ansi@2.0.0(transitive)
- Removedhas-flag@3.0.0(transitive)
- Removedjest@28.1.3(transitive)
- Removedjest-changed-files@28.1.3(transitive)
- Removedjest-circus@28.1.3(transitive)
- Removedjest-cli@28.1.3(transitive)
- Removedjest-config@28.1.3(transitive)
- Removedjest-diff@28.1.3(transitive)
- Removedjest-docblock@28.1.1(transitive)
- Removedjest-each@28.1.3(transitive)
- Removedjest-environment-node@28.1.3(transitive)
- Removedjest-get-type@28.0.2(transitive)
- Removedjest-haste-map@28.1.3(transitive)
- Removedjest-leak-detector@28.1.3(transitive)
- Removedjest-matcher-utils@28.1.3(transitive)
- Removedjest-message-util@28.1.3(transitive)
- Removedjest-mock@28.1.3(transitive)
- Removedjest-regex-util@28.0.2(transitive)
- Removedjest-resolve@28.1.3(transitive)
- Removedjest-resolve-dependencies@28.1.3(transitive)
- Removedjest-runner@28.1.3(transitive)
- Removedjest-runtime@28.1.3(transitive)
- Removedjest-snapshot@28.1.3(transitive)
- Removedjest-util@28.1.3(transitive)
- Removedjest-validate@28.1.3(transitive)
- Removedjest-watcher@28.1.3(transitive)
- Removedjest-worker@28.1.3(transitive)
- Removedpretty-format@28.1.3(transitive)
- Removedresolve.exports@1.1.1(transitive)
- Removedrimraf@3.0.2(transitive)
- Removedstrip-ansi@3.0.1(transitive)
- Removedsupports-color@2.0.05.5.0(transitive)
- Removedsupports-hyperlinks@2.3.0(transitive)
- Removedterminal-link@2.1.1(transitive)
Updatedchalk@^4.0.0