You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit f6aa4e1
Browse filesBrowse the repository at this point in the historyBrowse files
refactor(cli)!: drop metro prepare --metro-kind and diff snapshot --out
`metro prepare` read `--kind ?? --metro-kind`, so one option had two spellings. The
reader now reads `--kind` only, and `--metro-kind` stays in connect's `--metro-*` hint
family, which names the launcher kind deferred Metro preparation runs with. The shared
METRO_PREPARE_FLAGS declaration splits so metro no longer allows metroKind while connect
still does; the saved remote-config/profile `metroKind` field is unchanged.
`diff snapshot` reports text and never writes a file, so `out` leaves the
CaptureDiffOptions type, the diff command's input metadata, and the CLI reader.
`--out` still names the diff PNG for `diff screenshot` and `screenshot`.
'Screenshot --threshold is a per-pixel RGB tolerance: 0 requires exact colors and 1 ignores color differences; the current image scales proportionally to the baseline width and aligns top-left. Scaled height rounds to the nearest pixel (minimum 1). Extra or missing bottom rows always count as differences, even at threshold 1. The originals remain unchanged. When dimensions differ, normalization metadata reports original, scaled and compared sizes; region coordinates use comparison pixels. Both screenshot inputs are decoded from their bytes, so a baseline or current image may be PNG or JPEG, and the diff image is always PNG. JPEG is lossy, so keep --threshold above 0 whenever either input is JPEG. Live iOS simulator screenshot diffs normalize status-bar chrome by default; use screenshot --normalize-status-bar when capturing reusable baselines. Use --screen-mask black for a live iOS simulator capture with a black screen outline, and use the same option when creating its baseline. --screen-mask is refused when current.png is supplied; saved images are compared unchanged.',
121
+
'Snapshot comparisons report text only: --out is the diff PNG path screenshot comparisons write, and `diff snapshot` never writes a file. Screenshot --threshold is a per-pixel RGB tolerance: 0 requires exact colors and 1 ignores color differences; the current image scales proportionally to the baseline width and aligns top-left. Scaled height rounds to the nearest pixel (minimum 1). Extra or missing bottom rows always count as differences, even at threshold 1. The originals remain unchanged. When dimensions differ, normalization metadata reports original, scaled and compared sizes; region coordinates use comparison pixels. Both screenshot inputs are decoded from their bytes, so a baseline or current image may be PNG or JPEG, and the diff image is always PNG. JPEG is lossy, so keep --threshold above 0 whenever either input is JPEG. Live iOS simulator screenshot diffs normalize status-bar chrome by default; use screenshot --normalize-status-bar when capturing reusable baselines. Use --screen-mask black for a live iOS simulator capture with a black screen outline, and use the same option when creating its baseline. --screen-mask is refused when current.png is supplied; saved images are compared unchanged.',
0 commit comments