@blazediff/bin 0.4.0 → 0.5.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.
Files changed (2) hide show
  1. package/dist/cli.js +7 -5
  2. package/package.json +5 -5
package/dist/cli.js CHANGED
@@ -77,7 +77,7 @@ Options:
77
77
  --include-aa Include anti-aliasing detection
78
78
  --diff-mask Draw diff over transparent background
79
79
  --transformer <name> Specify transformer to use (e.g. pngjs, sharp)
80
- --yiq Use YIQ color space (default: false)
80
+ --color-space <name> Specify color space to use (e.g. yiq, ycbcr)
81
81
  -h, --help Show this help message
82
82
 
83
83
  Examples:
@@ -176,8 +176,11 @@ function parseArgs() {
176
176
  i++;
177
177
  }
178
178
  break;
179
- case "--yiq":
180
- options.yiq = true;
179
+ case "--colorSpace":
180
+ if (nextArg) {
181
+ options.colorSpace = nextArg;
182
+ i++;
183
+ }
181
184
  break;
182
185
  default:
183
186
  console.error(`Unknown option: ${arg}`);
@@ -212,8 +215,7 @@ async function main() {
212
215
  diffColor: options.diffColor,
213
216
  diffColorAlt: options.diffColorAlt,
214
217
  includeAA: options.includeAA,
215
- diffMask: options.diffMask,
216
- yiq: options.yiq
218
+ diffMask: options.diffMask
217
219
  }
218
220
  });
219
221
  console.log(`matched in: ${result.duration.toFixed(2)}ms`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blazediff/bin",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "description": "Command-line interface for the blazediff image comparison library",
5
5
  "private": false,
6
6
  "publishConfig": {
@@ -37,15 +37,15 @@
37
37
  "homepage": "https://github.com/teimurjan/blazediff",
38
38
  "license": "MIT",
39
39
  "dependencies": {
40
- "@blazediff/core": "0.4.0",
41
- "@blazediff/pngjs-transformer": "0.4.0",
42
- "@blazediff/sharp-transformer": "0.4.0"
40
+ "@blazediff/core": "0.5.0",
41
+ "@blazediff/pngjs-transformer": "0.5.0",
42
+ "@blazediff/sharp-transformer": "0.5.0"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@types/node": "^24.3.0",
46
46
  "tsup": "8.5.0",
47
47
  "typescript": "5.9.2",
48
- "@blazediff/types": "0.4.0"
48
+ "@blazediff/types": "0.5.0"
49
49
  },
50
50
  "scripts": {
51
51
  "build": "tsup",