jest-image-snapshot 6.5.0 → 6.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## [6.5.2](https://github.com/americanexpress/jest-image-snapshot/compare/v6.5.1...v6.5.2) (2026-03-09)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * update readme ([88ca523](https://github.com/americanexpress/jest-image-snapshot/commit/88ca5235b68207a6e3e44388d290387e2f43d9ab))
7
+
8
+ ## [6.5.1](https://github.com/americanexpress/jest-image-snapshot/compare/v6.5.0...v6.5.1) (2025-05-20)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * work with base64 strings ([#368](https://github.com/americanexpress/jest-image-snapshot/issues/368)) ([9a3ca4f](https://github.com/americanexpress/jest-image-snapshot/commit/9a3ca4f173669250a49b9a5709f8ba933b55fc78))
14
+
1
15
  # [6.5.0](https://github.com/americanexpress/jest-image-snapshot/compare/v6.4.0...v6.5.0) (2025-05-12)
2
16
 
3
17
 
package/README.md CHANGED
@@ -306,3 +306,4 @@ Any contributions made under this project will be governed by the [Apache Licens
306
306
 
307
307
  This project adheres to the [American Express Community Guidelines](https://github.com/americanexpress/jest-image-snapshot/wiki/Code-of-Conduct).
308
308
  By participating, you are expected to honor these guidelines.
309
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jest-image-snapshot",
3
- "version": "6.5.0",
3
+ "version": "6.5.2",
4
4
  "description": "Jest matcher for image comparisons. Most commonly used for visual regression testing.",
5
5
  "main": "src/index.js",
6
6
  "engines": {
@@ -46,19 +46,19 @@
46
46
  "devDependencies": {
47
47
  "@commitlint/cli": "^17.6.5",
48
48
  "@commitlint/config-conventional": "^17.7.0",
49
- "@semantic-release/changelog": "^5.0.0",
50
- "@semantic-release/git": "^9.0.0",
51
- "amex-jest-preset": "^6.1.0",
49
+ "@semantic-release/changelog": "^6.0.3",
50
+ "@semantic-release/git": "^10.0.1",
51
+ "amex-jest-preset": "^7.0.0",
52
52
  "eslint": "^6.8.0",
53
53
  "eslint-config-amex": "^7.0.0",
54
54
  "husky": "^4.2.1",
55
55
  "image-size": "^0.8.3",
56
- "jest": "^29.7.0",
57
- "jest-snapshot": "^29.0.0",
58
- "lockfile-lint": "^4.14.0",
56
+ "jest": "^30.0.5",
57
+ "jest-snapshot": "^30.0.5",
58
+ "lockfile-lint": "^4.14.1",
59
59
  "mock-spawn": "^0.2.6",
60
60
  "rimraf": "^5.0.10",
61
- "semantic-release": "^17.0.4"
61
+ "semantic-release": "^25.0.2"
62
62
  },
63
63
  "dependencies": {
64
64
  "chalk": "^4.0.0",
@@ -70,7 +70,7 @@
70
70
  "ssim.js": "^3.1.1"
71
71
  },
72
72
  "peerDependencies": {
73
- "jest": ">=20 <=29"
73
+ "jest": ">=20 <31"
74
74
  },
75
75
  "peerDependenciesMeta": {
76
76
  "jest": {
package/src/index.js CHANGED
@@ -28,6 +28,9 @@ function toBuffer(data) {
28
28
  if (data == null || Buffer.isBuffer(data)) {
29
29
  return data;
30
30
  }
31
+ if (typeof data === 'string') {
32
+ return Buffer.from(data, 'base64');
33
+ }
31
34
 
32
35
  return Buffer.from(data);
33
36
  }