cornhsu-parity 0.10.0 → 0.10.1

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 +13 -5
  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.9.7 # 0.x 期間 pin 版本;發 1.0 後可改用移動式 @v1
14
+ - uses: HSU-YU-MING/cornhsu-parity@v0.10.1 # 0.x 期間 pin 版本;發 1.0 後可改用移動式 @v1
15
15
  with:
16
16
  config: parity.config.json # 選填,預設 parity.config.json
17
17
  target: /pricing # 選填,只檢查這個 route(省略 = 全部)
@@ -54,11 +54,11 @@
54
54
 
55
55
  | | |
56
56
  |---|---|
57
- | 發佈 | NuGet 共 13 版(v0.1.0 → v0.9.3),推 tag 即以 OIDC Trusted Publishing 自動上架,repo 內零長效金鑰 |
57
+ | 發佈 | NuGet 共 19 版(v0.1.0 → v0.10.1),推 tag 即以 OIDC Trusted Publishing 自動上架,repo 內零長效金鑰 |
58
58
  | 比對維度 | 尺寸、內距、間距、字體、顏色(CIEDE2000 ΔE)、相對位置——**刻意不比絕對座標**(彈性版面下必然誤報) |
59
59
  | 設計來源 | 4 種:Figma API、畫面快照、圖片 + 標註(像素取樣,任何工具匯出 PNG 即可)、JSON |
60
60
  | 實作端 | 網頁(含 **Shadow DOM / 同源 iframe / RWD 多斷點**)+ **Electron**(以 CDP attach 活視窗) |
61
- | 測試 | **154 條**,涵蓋 CIEDE2000 標準測資集(Sharma)、配對消歧、位置誤報防護、圖片取樣 |
61
+ | 測試 | **159 條**,涵蓋 CIEDE2000 標準測資集(Sharma)、配對消歧、位置誤報防護、圖片取樣 |
62
62
  | CI 實證 | GitHub Action 以**外部 repo 跑真實 PR** 驗證:擋 PR、自動留言(原地更新不洗版)、baseline 回歸把關 |
63
63
  | 真實驗證 | **cornhsu.com 全站 20 頁由 Parity 自己守門**——首日 dogfooding 即揪出並修掉兩個 flaky 根因 |
64
64
 
@@ -75,7 +75,7 @@ dotnet tool install -g Cornhsu.Parity
75
75
  ```
76
76
 
77
77
  > npm 版是同一份自帶執行環境的原生執行檔,只下載你這個平台的那一份
78
- > (win32-x64 / linux-x64 / darwin-x64 / darwin-arm64)。
78
+ > (win32-x64 / win32-arm64 / linux-x64 / linux-arm64 / darwin-x64 / darwin-arm64)。
79
79
  > Playwright 預設會另外自帶一份 Node,npm 版把它拿掉、改用你現成的 Node,
80
80
  > 每個平台包因此省下約 88 MB。
81
81
 
@@ -263,7 +263,7 @@ jobs:
263
263
  - run: |
264
264
  npm ci && npm run build
265
265
  npm run preview & # 例:serve 在 localhost:8080
266
- - uses: HSU-YU-MING/cornhsu-parity@v0.9.7 # 0.x 期間 pin 版本;發 1.0 後可改用移動式 @v1
266
+ - uses: HSU-YU-MING/cornhsu-parity@v0.10.1 # 0.x 期間 pin 版本;發 1.0 後可改用移動式 @v1
267
267
  with:
268
268
  config: parity.config.json
269
269
  figma-token: ${{ secrets.FIGMA_TOKEN }} # 設計來源用本機 JSON 時可省略
@@ -312,6 +312,14 @@ parity baseline list # 看歷史快照(含分數欄 = 還原度走勢,給 PM
312
312
  - Figma token 走環境變數(`env:FIGMA_TOKEN`),不進 log、不進 URL(用 `X-Figma-Token` header)
313
313
  - 抓過的 frame 存 `.parity/cache`(已 gitignore),重跑不再打 Figma、可離線比對
314
314
 
315
+ ## 另見
316
+
317
+ [**XamlContrast**](https://github.com/HSU-YU-MING/cornhsu-xamlcontrast) —— 同作者的姊妹專案,
318
+ 同一套哲學(數值檢查、CI 把關)。Parity 回答「**實作跟設計稿一不一樣**」(還原度);
319
+ XamlContrast 回答「**做出來的東西看不看得見**」(WCAG 對比,靜態掃 XAML 原始碼)。
320
+ 一個守還原度、一個守可讀性;它的靜態顏色解析也是本專案未來
321
+ `WpfImplementationSource`(桌面 adapter)的預期值地基——見規畫書 4.5 節補記。
322
+
315
323
  ## License
316
324
 
317
325
  MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cornhsu-parity",
3
- "version": "0.10.0",
3
+ "version": "0.10.1",
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.10.0",
38
- "@cornhsu/parity-win32-arm64": "0.10.0",
39
- "@cornhsu/parity-linux-x64": "0.10.0",
40
- "@cornhsu/parity-linux-arm64": "0.10.0",
41
- "@cornhsu/parity-darwin-x64": "0.10.0",
42
- "@cornhsu/parity-darwin-arm64": "0.10.0"
37
+ "@cornhsu/parity-win32-x64": "0.10.1",
38
+ "@cornhsu/parity-win32-arm64": "0.10.1",
39
+ "@cornhsu/parity-linux-x64": "0.10.1",
40
+ "@cornhsu/parity-linux-arm64": "0.10.1",
41
+ "@cornhsu/parity-darwin-x64": "0.10.1",
42
+ "@cornhsu/parity-darwin-arm64": "0.10.1"
43
43
  }
44
44
  }