@vizzly-testing/honeydiff 0.7.0 → 0.8.0
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 +18 -0
- package/README.md +1 -0
- package/index.d.ts +23 -0
- package/index.js +6 -0
- package/package.json +13 -1
- package/platforms/index-aarch64-apple-darwin.node +0 -0
- package/platforms/index-aarch64-unknown-linux-gnu.node +0 -0
- package/platforms/index-x86_64-pc-windows-msvc.node +0 -0
- package/platforms/index-x86_64-unknown-linux-gnu.node +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,24 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.8.0] - 2026-01-03
|
|
9
|
+
|
|
10
|
+
## What's Changed
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
- **Custom diff mask colors**: New `diffMaskColor` option allows customizing the highlight color in generated mask images. Supports both hex strings (`"ff0000"`, `"#ff0000"`, with optional alpha `"ff0000ff"`) and RGBA arrays (`[255, 0, 0]` or `[255, 0, 0, 255]`). This brings feature parity with the CLI's `--diff-color` flag.
|
|
14
|
+
|
|
15
|
+
**Full Changelog**: https://github.com/vizzly-testing/honeydiff/compare/v0.7.1...v0.8.0
|
|
16
|
+
|
|
17
|
+
## [0.7.1] - 2025-12-11
|
|
18
|
+
|
|
19
|
+
## What's Changed
|
|
20
|
+
|
|
21
|
+
### Fixed
|
|
22
|
+
- Add missing JavaScript exports for image metadata functions (`getImageMetadata`, `getImageMetadataSync`, `getImageMetadataFromFile`, `getImageMetadataFromFileSync`) that were added in v0.7.0 but not properly exported
|
|
23
|
+
|
|
24
|
+
**Full Changelog**: https://github.com/vizzly-testing/honeydiff/compare/v0.7.0...v0.7.1
|
|
25
|
+
|
|
8
26
|
## [0.7.0] - 2025-12-11
|
|
9
27
|
|
|
10
28
|
## What's Changed
|
package/README.md
CHANGED
|
@@ -503,6 +503,7 @@ interface CompareOptions {
|
|
|
503
503
|
maskPath?: string; // Save mask image path
|
|
504
504
|
overlayPath?: string; // Save overlay image path
|
|
505
505
|
overwrite?: boolean; // Overwrite existing files (default: false)
|
|
506
|
+
diffMaskColor?: string | number[]; // Highlight color: hex or [r,g,b,a] (default: "ff0000")
|
|
506
507
|
}
|
|
507
508
|
```
|
|
508
509
|
|
package/index.d.ts
CHANGED
|
@@ -184,6 +184,29 @@ export interface CompareOptions {
|
|
|
184
184
|
* @default false
|
|
185
185
|
*/
|
|
186
186
|
overwrite?: boolean;
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* Color to use for highlighting differences in diff/mask output
|
|
190
|
+
*
|
|
191
|
+
* Accepts either:
|
|
192
|
+
* - Hex string: "ff0000", "#ff0000", "ff0000ff" (with alpha)
|
|
193
|
+
* - RGBA array: [255, 0, 0] or [255, 0, 0, 255]
|
|
194
|
+
*
|
|
195
|
+
* @default "ff0000" (red)
|
|
196
|
+
*
|
|
197
|
+
* @example
|
|
198
|
+
* ```typescript
|
|
199
|
+
* // Green highlight using hex
|
|
200
|
+
* { diffMaskColor: "00ff00" }
|
|
201
|
+
*
|
|
202
|
+
* // Blue with 50% transparency using RGBA array
|
|
203
|
+
* { diffMaskColor: [0, 0, 255, 128] }
|
|
204
|
+
*
|
|
205
|
+
* // Magenta using hex with #
|
|
206
|
+
* { diffMaskColor: "#ff00ff" }
|
|
207
|
+
* ```
|
|
208
|
+
*/
|
|
209
|
+
diffMaskColor?: string | [number, number, number] | [number, number, number, number];
|
|
187
210
|
}
|
|
188
211
|
|
|
189
212
|
// ============================================================================
|
package/index.js
CHANGED
|
@@ -42,6 +42,12 @@ export const quickCompareSync = addon.quickCompareSync;
|
|
|
42
42
|
export const getDimensions = addon.getDimensions;
|
|
43
43
|
export const getDimensionsSync = addon.getDimensionsSync;
|
|
44
44
|
|
|
45
|
+
// Image Metadata API
|
|
46
|
+
export const getImageMetadata = addon.getImageMetadata;
|
|
47
|
+
export const getImageMetadataSync = addon.getImageMetadataSync;
|
|
48
|
+
export const getImageMetadataFromFile = addon.getImageMetadataFromFile;
|
|
49
|
+
export const getImageMetadataFromFileSync = addon.getImageMetadataFromFileSync;
|
|
50
|
+
|
|
45
51
|
// WCAG Accessibility API
|
|
46
52
|
export const analyzeWcagContrast = addon.analyzeWcagContrast;
|
|
47
53
|
export const analyzeWcagContrastSync = addon.analyzeWcagContrastSync;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vizzly-testing/honeydiff",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "High-performance image diffing for Node.js - Native bindings to Honeydiff Rust library",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -81,6 +81,18 @@
|
|
|
81
81
|
"load-platform.cjs",
|
|
82
82
|
"platforms/*.node",
|
|
83
83
|
"README.md",
|
|
84
|
+
"CHANGELOG.md",
|
|
85
|
+
"index.js",
|
|
86
|
+
"index.d.ts",
|
|
87
|
+
"load-platform.cjs",
|
|
88
|
+
"platforms/*.node",
|
|
89
|
+
"README.md",
|
|
90
|
+
"CHANGELOG.md",
|
|
91
|
+
"index.js",
|
|
92
|
+
"index.d.ts",
|
|
93
|
+
"load-platform.cjs",
|
|
94
|
+
"platforms/*.node",
|
|
95
|
+
"README.md",
|
|
84
96
|
"CHANGELOG.md"
|
|
85
97
|
],
|
|
86
98
|
"engines": {
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|