@vizzly-testing/honeydiff 0.7.1 → 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 +9 -0
- package/README.md +1 -0
- package/index.d.ts +23 -0
- package/package.json +7 -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,15 @@ 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
|
+
|
|
8
17
|
## [0.7.1] - 2025-12-11
|
|
9
18
|
|
|
10
19
|
## 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/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",
|
|
@@ -87,6 +87,12 @@
|
|
|
87
87
|
"load-platform.cjs",
|
|
88
88
|
"platforms/*.node",
|
|
89
89
|
"README.md",
|
|
90
|
+
"CHANGELOG.md",
|
|
91
|
+
"index.js",
|
|
92
|
+
"index.d.ts",
|
|
93
|
+
"load-platform.cjs",
|
|
94
|
+
"platforms/*.node",
|
|
95
|
+
"README.md",
|
|
90
96
|
"CHANGELOG.md"
|
|
91
97
|
],
|
|
92
98
|
"engines": {
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|