cornhsu-parity 0.13.0 → 0.14.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/README.md +10 -4
  2. package/package.json +7 -7
package/README.md CHANGED
@@ -11,7 +11,7 @@
11
11
  ## GitHub Action
12
12
 
13
13
  ```yaml
14
- - uses: HSU-YU-MING/cornhsu-parity@v0.13.0 # pin exact versions while 0.x; a floating @v1 arrives with 1.0
14
+ - uses: HSU-YU-MING/cornhsu-parity@v0.14.0 # pin exact versions while 0.x; a floating @v1 arrives with 1.0
15
15
  with:
16
16
  config: parity.config.json # optional, defaults to parity.config.json
17
17
  target: /pricing # optional, check only this route (omit for all)
@@ -63,11 +63,11 @@ PR comment, updating the same comment rather than adding new ones.
63
63
 
64
64
  | | |
65
65
  |---|---|
66
- | Releases | 22 on NuGet (v0.1.0 → v0.12.0). Pushing a tag publishes via OIDC Trusted Publishing — zero long-lived keys in the repo |
66
+ | Releases | 25 on NuGet (v0.1.0 → v0.14.0). Pushing a tag publishes via OIDC Trusted Publishing — zero long-lived keys in the repo |
67
67
  | Compared properties | Size, padding, spacing, typography, color (CIEDE2000 ΔE), relative position — **absolute coordinates are deliberately excluded** (they are guaranteed false positives in a flexible layout) |
68
68
  | Design sources | 4: the Figma API, a rendering snapshot, an image + annotations (pixel sampling — any tool that exports a PNG works), or JSON |
69
69
  | Implementation sources | The web (including **shadow DOM, same-origin iframes, and multiple responsive breakpoints**) plus **Electron** (attached to the live window over CDP) |
70
- | Tests | **160**, covering the CIEDE2000 reference data set (Sharma), match disambiguation, position false-positive guards, and image sampling |
70
+ | Tests | **197**, covering the CIEDE2000 reference data set (Sharma), match disambiguation, position false-positive guards, image sampling, and real-browser capture regressions |
71
71
  | Proven in CI | The GitHub Action is validated by **real PRs in an external repo**: blocking the PR, commenting automatically (updating in place), and baseline regression gating |
72
72
  | Proven in production | **All 21 pages of cornhsu.com are gated by Parity itself** — dogfooding has already found and fixed three flaky root causes (most recently a scroll-triggered entrance animation; see 0.11.1) |
73
73
 
@@ -318,7 +318,7 @@ jobs:
318
318
  - run: |
319
319
  npm ci && npm run build
320
320
  npm run preview & # e.g. serving on localhost:8080
321
- - uses: HSU-YU-MING/cornhsu-parity@v0.13.0 # pin exact versions while 0.x
321
+ - uses: HSU-YU-MING/cornhsu-parity@v0.14.0 # pin exact versions while 0.x
322
322
  with:
323
323
  config: parity.config.json
324
324
  figma-token: ${{ secrets.FIGMA_TOKEN }} # omit when the design source is a local JSON file
@@ -340,6 +340,12 @@ Action inputs: `config` / `target` / `working-directory` / `version` / `figma-to
340
340
  > nuget.org). This repo's own `.github/workflows/ci.yml` instead **builds from source** and runs
341
341
  > the offline demo as a self-check, so it does not depend on a published release.
342
342
 
343
+ ## Report vocabulary (for anyone parsing `report.json`)
344
+
345
+ - `severity` — **closed set** (spelling and membership frozen): `none` / `minor` / `medium` / `serious` / `critical`. `status`: `mismatch` / `missing`.
346
+ - `unmatched[].reason` — **open set**: parsers must tolerate unknown values; known spellings never change. Currently: `no-anchor`, `ambiguous-or-missing-text`, `randomized-id`, `size-implausible`.
347
+ - `nodes[].matchedBy` — **open set**, same rule. Currently: `selector`, `explicit`, `auto-text`, `auto-name`, `auto-container`.
348
+
343
349
  ## Regression gating: baselines (M5)
344
350
 
345
351
  A project that already has a pile of gaps cannot start at "zero gaps or no merge". A baseline
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cornhsu-parity",
3
- "version": "0.13.0",
3
+ "version": "0.14.0",
4
4
  "description": "Property-Level Design QA that can gate your CI. Compares real numeric values from your Figma file against the rendered UI and fails the PR when the implementation drifts from the design.",
5
5
  "keywords": [
6
6
  "figma",
@@ -34,11 +34,11 @@
34
34
  "node": ">=18"
35
35
  },
36
36
  "optionalDependencies": {
37
- "@cornhsu/parity-win32-x64": "0.13.0",
38
- "@cornhsu/parity-win32-arm64": "0.13.0",
39
- "@cornhsu/parity-linux-x64": "0.13.0",
40
- "@cornhsu/parity-linux-arm64": "0.13.0",
41
- "@cornhsu/parity-darwin-x64": "0.13.0",
42
- "@cornhsu/parity-darwin-arm64": "0.13.0"
37
+ "@cornhsu/parity-win32-x64": "0.14.0",
38
+ "@cornhsu/parity-win32-arm64": "0.14.0",
39
+ "@cornhsu/parity-linux-x64": "0.14.0",
40
+ "@cornhsu/parity-linux-arm64": "0.14.0",
41
+ "@cornhsu/parity-darwin-x64": "0.14.0",
42
+ "@cornhsu/parity-darwin-arm64": "0.14.0"
43
43
  }
44
44
  }