@decocms/parity 0.35.11 → 0.35.12

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 +212 -79
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -78911,6 +78911,57 @@ function extractSectionIds(entries) {
78911
78911
  return out;
78912
78912
  }
78913
78913
 
78914
+ // src/checks/lib/html-snapshot.ts
78915
+ function htmlUnread(page) {
78916
+ return page.htmlSnapshotFailed === true || !page.html;
78917
+ }
78918
+ function withHtmlSnapshot(check) {
78919
+ const guarded = async (ctx) => {
78920
+ const unread = new Map;
78921
+ for (const [side, pages] of [
78922
+ ["prod", ctx.prodPages],
78923
+ ["cand", ctx.candPages]
78924
+ ]) {
78925
+ const readKeys = new Set(pages.filter((p) => !htmlUnread(p)).map(captureKey));
78926
+ for (const p of pages) {
78927
+ const key = captureKey(p);
78928
+ if (readKeys.has(key))
78929
+ continue;
78930
+ const entry = unread.get(key) ?? { sides: [], page: p };
78931
+ if (!entry.sides.includes(side))
78932
+ entry.sides.push(side);
78933
+ unread.set(key, entry);
78934
+ }
78935
+ }
78936
+ if (unread.size === 0)
78937
+ return check(ctx);
78938
+ const keep = (pages) => pages.filter((p) => !unread.has(captureKey(p)));
78939
+ const result = await check({
78940
+ ...ctx,
78941
+ prodPages: keep(ctx.prodPages),
78942
+ candPages: keep(ctx.candPages)
78943
+ });
78944
+ const issues = [...unread].map(([key, { sides, page }]) => ({
78945
+ id: `${result.name}:snapshot-missing:${key}`,
78946
+ severity: "low",
78947
+ inconclusive: true,
78948
+ category: "functional",
78949
+ page: key,
78950
+ check: result.name,
78951
+ summary: `HTML não capturado em ${sides.join(" e ")} (${key}) — página não comparada por ${result.name}`,
78952
+ details: "The page answered but its HTML snapshot came back empty (capture budget spent or the read failed), so this check had nothing to judge on that side. Not a finding: re-run the page, or capture it with `parity html --url`.",
78953
+ evidence: page.screenshotPath ? [{ kind: "screenshot", path: page.screenshotPath }] : []
78954
+ }));
78955
+ return {
78956
+ ...result,
78957
+ status: result.status === "pass" ? "warn" : result.status,
78958
+ issues: [...result.issues, ...issues]
78959
+ };
78960
+ };
78961
+ Object.defineProperty(guarded, "name", { value: check.name });
78962
+ return guarded;
78963
+ }
78964
+
78914
78965
  // src/checks/login-flow.ts
78915
78966
  var STEP_LABELS = {
78916
78967
  "visit-home": "Visitar home",
@@ -79842,35 +79893,66 @@ function matchAny(text, patterns) {
79842
79893
 
79843
79894
  // src/checks/picture-missing-dims.ts
79844
79895
  init_esm10();
79896
+ var FIX = "Adicione width + height (ou aspect-ratio) ao <img> dentro do <Picture>. Use as dimensões intrínsecas da imagem ou as do design (a media query é tratada pelo <source>).";
79845
79897
  function pictureMissingDims(ctx) {
79846
79898
  const start = Date.now();
79847
79899
  const issues = [];
79848
- const offendersByPage = new Map;
79849
- for (const cand of ctx.candPages) {
79850
- const offenders = scanForPictureMissingDims(cand);
79851
- if (offenders.length > 0) {
79852
- offendersByPage.set(`${cand.viewport}:${cand.url}`, offenders);
79853
- }
79854
- }
79855
- for (const [key, offenders] of offendersByPage) {
79856
- issues.push({
79900
+ const single = ctx.prodPages.length === 0;
79901
+ const prodByKey = new Map(ctx.prodPages.map((p) => [captureKey(p), p]));
79902
+ const candByKey = new Map(ctx.candPages.map((c) => [captureKey(c), c]));
79903
+ for (const [pairKey, cand] of candByKey) {
79904
+ const offenders = scanOffenders(cand);
79905
+ if (offenders.length === 0)
79906
+ continue;
79907
+ const key = `${cand.viewport}:${cand.url}`;
79908
+ const base = {
79857
79909
  id: `picture-missing-dims:${key}`,
79858
- severity: "medium",
79859
79910
  category: "performance",
79860
79911
  page: key,
79861
79912
  check: "picture-missing-dims",
79862
- summary: `${offenders.length} <Picture><img/> sem width/height em ${key} — risco de CLS`,
79863
- details: [
79864
- "Picture/img fallbacks sem width+height fazem o browser não reservar espaço",
79865
- "antes do decode. Em network lento, isso vira layout-shift visível.",
79866
- "",
79867
- "Elementos afetados (até 10 mostrados):",
79868
- ...offenders.slice(0, 10).map((s, i) => ` ${i + 1}. ${s}`),
79869
- offenders.length > 10 ? ` … e mais ${offenders.length - 10}` : ""
79870
- ].filter(Boolean).join(`
79871
- `),
79872
- suggestedFix: "Adicione width + height (ou aspect-ratio) ao <img> dentro do <Picture>. Use as dimensões intrínsecas da imagem ou as do design (a media query é tratada pelo <source>)."
79873
- });
79913
+ suggestedFix: FIX
79914
+ };
79915
+ if (single) {
79916
+ issues.push({
79917
+ ...base,
79918
+ severity: "medium",
79919
+ summary: `${offenders.length} <Picture><img/> sem width/height em ${key} — risco de CLS`,
79920
+ details: list("Elementos afetados", offenders)
79921
+ });
79922
+ continue;
79923
+ }
79924
+ const prod = prodByKey.get(pairKey);
79925
+ if (!prod?.html || prod.htmlSnapshotFailed) {
79926
+ issues.push({
79927
+ ...base,
79928
+ severity: "low",
79929
+ inconclusive: true,
79930
+ summary: `${offenders.length} <Picture><img/> sem width/height em ${key} — sem HTML de prod pra comparar`,
79931
+ details: list("Elementos em cand", offenders)
79932
+ });
79933
+ continue;
79934
+ }
79935
+ const prodOffenders = scanOffenders(prod);
79936
+ const delta = offenders.length - prodOffenders.length;
79937
+ if (delta > 0) {
79938
+ const prodFiles = new Set(prodOffenders.map((o) => o.file));
79939
+ const fresh = offenders.filter((o) => !prodFiles.has(o.file));
79940
+ issues.push({
79941
+ ...base,
79942
+ severity: "medium",
79943
+ summary: `${delta} <Picture><img/> a mais sem width/height em ${key} que em prod (cand ${offenders.length} · prod ${prodOffenders.length}) — risco de CLS`,
79944
+ details: list("Elementos sem dimensões só em cand", fresh.length > 0 ? fresh : offenders)
79945
+ });
79946
+ } else {
79947
+ issues.push({
79948
+ ...base,
79949
+ severity: "low",
79950
+ summary: `${offenders.length} <Picture><img/> sem width/height em ${key} — pré-existente em prod (prod ${prodOffenders.length}), vale corrigir`,
79951
+ details: `${list("Elementos afetados", offenders)}
79952
+
79953
+ Prod ships the same gap: not a cand regression, but a CLS source worth fixing on both.`
79954
+ });
79955
+ }
79874
79956
  }
79875
79957
  const status = issues.length > 0 ? "warn" : "pass";
79876
79958
  return {
@@ -79878,12 +79960,23 @@ function pictureMissingDims(ctx) {
79878
79960
  status,
79879
79961
  severity: "medium",
79880
79962
  durationMs: Date.now() - start,
79881
- summary: issues.length === 0 ? `${ctx.candPages.length} página(s) sem <Picture><img/> sem dimensões` : `${issues.length} página(s) com <Picture><img/> sem width/height`,
79963
+ summary: issues.length === 0 ? `${candByKey.size} página(s) sem <Picture><img/> sem dimensões` : `${issues.length} página(s) com <Picture><img/> sem width/height`,
79882
79964
  issues,
79883
- data: { pagesScanned: ctx.candPages.length, pagesWithOffenders: issues.length }
79965
+ data: { pagesScanned: candByKey.size, pagesWithOffenders: issues.length }
79884
79966
  };
79885
79967
  }
79886
- function scanForPictureMissingDims(page) {
79968
+ function list(title, offenders) {
79969
+ return [
79970
+ "Picture/img fallbacks sem width+height fazem o browser não reservar espaço",
79971
+ "antes do decode. Em network lento, isso vira layout-shift visível.",
79972
+ "",
79973
+ `${title} (até 10 mostrados):`,
79974
+ ...offenders.slice(0, 10).map((o, i) => ` ${i + 1}. ${o.desc}`),
79975
+ offenders.length > 10 ? ` … e mais ${offenders.length - 10}` : ""
79976
+ ].filter(Boolean).join(`
79977
+ `);
79978
+ }
79979
+ function scanOffenders(page) {
79887
79980
  if (!page.html)
79888
79981
  return [];
79889
79982
  const $ = load(page.html);
@@ -79896,7 +79989,7 @@ function scanForPictureMissingDims(page) {
79896
79989
  const src = $img.attr("src") ?? $img.attr("data-src") ?? "(no src)";
79897
79990
  const cls = $img.attr("class");
79898
79991
  const desc = cls ? `<img class="${cls.slice(0, 40)}"… src="${src.slice(0, 80)}">` : `<img src="${src.slice(0, 80)}">`;
79899
- offenders.push(desc);
79992
+ offenders.push({ desc, file: src.split(/[?#]/)[0]?.split("/").pop() || src });
79900
79993
  });
79901
79994
  });
79902
79995
  return offenders;
@@ -82981,6 +83074,26 @@ function isFromHttpCache(resp) {
82981
83074
  return true;
82982
83075
  return false;
82983
83076
  }
83077
+ async function readHtml(page, capMs) {
83078
+ let timer;
83079
+ const html = await Promise.race([
83080
+ page.content().catch(() => ""),
83081
+ new Promise((resolve) => {
83082
+ timer = setTimeout(() => resolve(""), capMs);
83083
+ })
83084
+ ]);
83085
+ clearTimeout(timer);
83086
+ return html;
83087
+ }
83088
+ async function snapshotHtml(page, firstCapMs) {
83089
+ const html = await readHtml(page, firstCapMs);
83090
+ if (html)
83091
+ return html;
83092
+ await page.waitForLoadState("load", { timeout: 2000 }).catch(() => {
83093
+ return;
83094
+ });
83095
+ return readHtml(page, 5000);
83096
+ }
82984
83097
  async function capturePage(page, opts) {
82985
83098
  await warmBeforeCapture(page.context(), opts.url, opts.viewport);
82986
83099
  const start = Date.now();
@@ -82997,6 +83110,7 @@ async function capturePage(page, opts) {
82997
83110
  side: opts.side,
82998
83111
  durationMs: Date.now() - start,
82999
83112
  html,
83113
+ ...!html && (response?.status() ?? 0) > 0 ? { htmlSnapshotFailed: true } : {},
83000
83114
  vitals: vitals ?? { lcp: null, cls: null, fcp: null, ttfb: null, inp: null },
83001
83115
  vitalsStats,
83002
83116
  vitalsFullPage: vitalsFullPage ?? undefined,
@@ -83137,10 +83251,7 @@ async function capturePage(page, opts) {
83137
83251
  dlog(opts.side, opts.viewport, " capturePage: screenshot done");
83138
83252
  }
83139
83253
  dlog(opts.side, opts.viewport, ` capturePage: page.content() (cap=${Math.min(5000, remaining())}ms)`);
83140
- html = await Promise.race([
83141
- page.content().catch(() => ""),
83142
- new Promise((resolve) => setTimeout(() => resolve(""), Math.min(5000, remaining())))
83143
- ]);
83254
+ html = await snapshotHtml(page, Math.min(5000, remaining()));
83144
83255
  dlog(opts.side, opts.viewport, ` capturePage: flushCollectors (cap=${Math.min(3000, remaining())}ms)`);
83145
83256
  await flushCollectors(state, Math.min(3000, remaining()));
83146
83257
  const extraRuns = Math.max(0, (opts.runs ?? 1) - 1);
@@ -83169,15 +83280,18 @@ async function capturePage(page, opts) {
83169
83280
  };
83170
83281
  const SAFETY_MARGIN_MS = 1e4;
83171
83282
  const outerDeadlineMs = overallBudgetMs + SAFETY_MARGIN_MS;
83283
+ let outerTimer;
83172
83284
  const result = await Promise.race([
83173
83285
  inner(),
83174
- new Promise((resolve) => setTimeout(() => {
83175
- state.console.push({
83176
- type: "error",
83177
- text: `[capture-timeout] capturePage exceeded ${outerDeadlineMs}ms outer deadline — returning partial capture`
83178
- });
83179
- resolve(buildPartial());
83180
- }, outerDeadlineMs)),
83286
+ new Promise((resolve) => {
83287
+ outerTimer = setTimeout(() => {
83288
+ state.console.push({
83289
+ type: "error",
83290
+ text: `[capture-timeout] capturePage exceeded ${outerDeadlineMs}ms outer deadline — returning partial capture`
83291
+ });
83292
+ resolve(buildPartial());
83293
+ }, outerDeadlineMs);
83294
+ }),
83181
83295
  disconnectPromise.then(() => {
83182
83296
  state.console.push({
83183
83297
  type: "error",
@@ -83186,6 +83300,7 @@ async function capturePage(page, opts) {
83186
83300
  return buildPartial();
83187
83301
  })
83188
83302
  ]);
83303
+ clearTimeout(outerTimer);
83189
83304
  browser?.off("disconnected", handleBrowserDisconnect);
83190
83305
  page.off("crash", handlePageCrash);
83191
83306
  return result;
@@ -88940,89 +89055,106 @@ function fmt(n) {
88940
89055
  }
88941
89056
 
88942
89057
  // src/checks/index.ts
89058
+ var bannerAspectRatio2 = withHtmlSnapshot(bannerAspectRatio);
89059
+ var contentStructureParity2 = withHtmlSnapshot(contentStructureParity);
89060
+ var cookieCepModalCls2 = withHtmlSnapshot(cookieCepModalCls);
89061
+ var faviconParity2 = withHtmlSnapshot(faviconParity);
89062
+ var fontParity2 = withHtmlSnapshot(fontParity);
89063
+ var footerLinksHealth2 = withHtmlSnapshot(footerLinksHealth);
89064
+ var htmlStructuralDiff2 = withHtmlSnapshot(htmlStructuralDiff);
89065
+ var imageLoadingHealth2 = withHtmlSnapshot(imageLoadingHealth);
89066
+ var lazySectionPresence2 = withHtmlSnapshot(lazySectionPresence);
89067
+ var metaSeoParity2 = withHtmlSnapshot(metaSeoParity);
89068
+ var navLinksHealth2 = withHtmlSnapshot(navLinksHealth);
89069
+ var notFoundParity2 = withHtmlSnapshot(notFoundParity);
89070
+ var pdpBreadcrumbs2 = withHtmlSnapshot(pdpBreadcrumbs);
89071
+ var pdpGalleryRelated2 = withHtmlSnapshot(pdpGalleryRelated);
89072
+ var pictureMissingDims2 = withHtmlSnapshot(pictureMissingDims);
89073
+ var sectionOrderParity2 = withHtmlSnapshot(sectionOrderParity);
89074
+ var seoDeepAudit2 = withHtmlSnapshot(seoDeepAudit);
88943
89075
  var ALL_CHECKS = [
88944
89076
  httpStatusParity,
88945
89077
  consoleErrorsBaseline,
88946
- htmlStructuralDiff,
88947
- metaSeoParity,
89078
+ htmlStructuralDiff2,
89079
+ metaSeoParity2,
88948
89080
  visualRegressionKeyframes,
88949
89081
  purchaseJourneyFlow,
88950
89082
  networkSummaryDelta,
88951
89083
  webVitalsMobile,
88952
- imageLoadingHealth,
88953
- bannerAspectRatio,
89084
+ imageLoadingHealth2,
89085
+ bannerAspectRatio2,
88954
89086
  cartRevealModeDivergence,
88955
- lazySectionPresence,
88956
- seoDeepAudit,
89087
+ lazySectionPresence2,
89088
+ seoDeepAudit2,
88957
89089
  cacheCoverage,
88958
89090
  searchPresence,
88959
89091
  searchAutocomplete,
88960
89092
  searchResults,
88961
89093
  searchNoResults,
88962
89094
  cartInteractionsFlow,
88963
- notFoundParity,
88964
- cookieCepModalCls,
88965
- pdpGalleryRelated,
88966
- footerLinksHealth,
89095
+ notFoundParity2,
89096
+ cookieCepModalCls2,
89097
+ pdpGalleryRelated2,
89098
+ footerLinksHealth2,
88967
89099
  loginFlow,
88968
- pictureMissingDims,
89100
+ pictureMissingDims2,
88969
89101
  plpPagination,
88970
- pdpBreadcrumbs,
89102
+ pdpBreadcrumbs2,
88971
89103
  plpSorting,
88972
89104
  spaNavigationFlow,
88973
89105
  serverFnHoverFlood,
88974
- faviconParity,
88975
- fontParity,
88976
- contentStructureParity,
89106
+ faviconParity2,
89107
+ fontParity2,
89108
+ contentStructureParity2,
88977
89109
  ssrNoJs,
88978
- navLinksHealth,
89110
+ navLinksHealth2,
88979
89111
  redirectsParity,
88980
89112
  thirdPartyScriptsParity,
88981
89113
  analyticsBeaconParity,
88982
- sectionOrderParity,
89114
+ sectionOrderParity2,
88983
89115
  sweepFlows
88984
89116
  ];
88985
89117
  var ALL_CHECKS_BY_NAME = {
88986
89118
  "http-status-parity": httpStatusParity,
88987
89119
  "console-errors-baseline": consoleErrorsBaseline,
88988
- "html-structural-diff": htmlStructuralDiff,
88989
- "meta-seo-parity": metaSeoParity,
89120
+ "html-structural-diff": htmlStructuralDiff2,
89121
+ "meta-seo-parity": metaSeoParity2,
88990
89122
  "visual-regression-keyframes": visualRegressionKeyframes,
88991
89123
  "purchase-journey-flow": purchaseJourneyFlow,
88992
89124
  "network-summary-delta": networkSummaryDelta,
88993
89125
  "web-vitals-mobile": webVitalsMobile,
88994
- "image-loading-health": imageLoadingHealth,
88995
- "banner-aspect-ratio": bannerAspectRatio,
89126
+ "image-loading-health": imageLoadingHealth2,
89127
+ "banner-aspect-ratio": bannerAspectRatio2,
88996
89128
  "cart-reveal-mode-divergence": cartRevealModeDivergence,
88997
- "lazy-section-presence": lazySectionPresence,
88998
- "seo-deep-audit": seoDeepAudit,
89129
+ "lazy-section-presence": lazySectionPresence2,
89130
+ "seo-deep-audit": seoDeepAudit2,
88999
89131
  "cache-coverage": cacheCoverage,
89000
89132
  "search-presence": searchPresence,
89001
89133
  "search-autocomplete": searchAutocomplete,
89002
89134
  "search-results": searchResults,
89003
89135
  "search-no-results": searchNoResults,
89004
89136
  "cart-interactions-flow": cartInteractionsFlow,
89005
- "not-found-parity": notFoundParity,
89006
- "cookie-cep-modal-cls": cookieCepModalCls,
89007
- "pdp-gallery-related": pdpGalleryRelated,
89008
- "footer-links-health": footerLinksHealth,
89137
+ "not-found-parity": notFoundParity2,
89138
+ "cookie-cep-modal-cls": cookieCepModalCls2,
89139
+ "pdp-gallery-related": pdpGalleryRelated2,
89140
+ "footer-links-health": footerLinksHealth2,
89009
89141
  "login-flow": loginFlow,
89010
89142
  "sweep-flows": sweepFlows,
89011
- "picture-missing-dims": pictureMissingDims,
89143
+ "picture-missing-dims": pictureMissingDims2,
89012
89144
  "plp-pagination": plpPagination,
89013
- "pdp-breadcrumbs": pdpBreadcrumbs,
89145
+ "pdp-breadcrumbs": pdpBreadcrumbs2,
89014
89146
  "plp-sorting": plpSorting,
89015
89147
  "spa-navigation-flow": spaNavigationFlow,
89016
89148
  "serverfn-hover-flood": serverFnHoverFlood,
89017
- "favicon-parity": faviconParity,
89018
- "font-parity": fontParity,
89019
- "content-structure": contentStructureParity,
89149
+ "favicon-parity": faviconParity2,
89150
+ "font-parity": fontParity2,
89151
+ "content-structure": contentStructureParity2,
89020
89152
  "ssr-no-js": ssrNoJs,
89021
- "nav-links-health": navLinksHealth,
89153
+ "nav-links-health": navLinksHealth2,
89022
89154
  "redirects-parity": redirectsParity,
89023
89155
  "third-party-scripts-parity": thirdPartyScriptsParity,
89024
89156
  "analytics-beacon-parity": analyticsBeaconParity,
89025
- "section-order-parity": sectionOrderParity
89157
+ "section-order-parity": sectionOrderParity2
89026
89158
  };
89027
89159
  var FLOW_DEPENDENT_CHECKS = new Set([
89028
89160
  "purchase-journey-flow",
@@ -89323,6 +89455,7 @@ var PageCapture = z2.object({
89323
89455
  side: Side,
89324
89456
  durationMs: z2.number(),
89325
89457
  html: z2.string().optional(),
89458
+ htmlSnapshotFailed: z2.boolean().optional(),
89326
89459
  vitals: WebVitals,
89327
89460
  vitalsStats: WebVitalsStats.optional(),
89328
89461
  vitalsFullPage: WebVitals.optional(),
@@ -92792,7 +92925,7 @@ function sameSet(a, b) {
92792
92925
  const sb = [...b].sort();
92793
92926
  return sa.every((v, i) => v === sb[i]);
92794
92927
  }
92795
- var list = (v) => v.length ? v.join(", ") : "none";
92928
+ var list2 = (v) => v.length ? v.join(", ") : "none";
92796
92929
  function descendantWithTransition(nodes, ancestorKey, props) {
92797
92930
  const wanted = new Set(props);
92798
92931
  for (const n of nodes) {
@@ -92813,20 +92946,20 @@ function diffTransitions(p, c, candNodes) {
92813
92946
  if (pOn && !cOn) {
92814
92947
  const inner = descendantWithTransition(candNodes, c.key, p.transition.properties);
92815
92948
  if (inner) {
92816
- out.push(finding(p, "moved-to-descendant", `prod transitions ${list(p.transition.properties)} over ${Math.max(...p.transition.durationsMs)}ms on this node; cand declares it on a DESCENDANT instead (${inner.key}: ${list(inner.transition.properties)} over ${Math.max(...inner.transition.durationsMs)}ms). The effect exists — the node carrying it differs, which is a structural difference, not a lost transition.`, at));
92949
+ out.push(finding(p, "moved-to-descendant", `prod transitions ${list2(p.transition.properties)} over ${Math.max(...p.transition.durationsMs)}ms on this node; cand declares it on a DESCENDANT instead (${inner.key}: ${list2(inner.transition.properties)} over ${Math.max(...inner.transition.durationsMs)}ms). The effect exists — the node carrying it differs, which is a structural difference, not a lost transition.`, at));
92817
92950
  return out;
92818
92951
  }
92819
- out.push(finding(p, "missing-transition", `prod transitions ${list(p.transition.properties)} over ${Math.max(...p.transition.durationsMs)}ms; cand's node ${c.key} has no transition, and no descendant of it declares one either (the change is instant)`, at));
92952
+ out.push(finding(p, "missing-transition", `prod transitions ${list2(p.transition.properties)} over ${Math.max(...p.transition.durationsMs)}ms; cand's node ${c.key} has no transition, and no descendant of it declares one either (the change is instant)`, at));
92820
92953
  return out;
92821
92954
  }
92822
92955
  if (!pOn && cOn) {
92823
- out.push(finding(p, "extra-transition", `cand transitions ${list(c.transition.properties)}; prod does not (the migration added motion)`, at));
92956
+ out.push(finding(p, "extra-transition", `cand transitions ${list2(c.transition.properties)}; prod does not (the migration added motion)`, at));
92824
92957
  return out;
92825
92958
  }
92826
92959
  if (!pOn && !cOn)
92827
92960
  return out;
92828
92961
  if (!sameSet(p.transition.properties, c.transition.properties)) {
92829
- out.push(finding(p, "property-set", `transitioned properties differ: prod [${list(p.transition.properties)}] vs cand [${list(c.transition.properties)}]`, at));
92962
+ out.push(finding(p, "property-set", `transitioned properties differ: prod [${list2(p.transition.properties)}] vs cand [${list2(c.transition.properties)}]`, at));
92830
92963
  }
92831
92964
  const pd = Math.max(...p.transition.durationsMs);
92832
92965
  const cd = Math.max(...c.transition.durationsMs);
@@ -92834,7 +92967,7 @@ function diffTransitions(p, c, candNodes) {
92834
92967
  out.push(finding(p, "duration", `transition duration ${pd}ms → ${cd}ms`, at));
92835
92968
  }
92836
92969
  if (!sameSet(p.transition.easings, c.transition.easings)) {
92837
- out.push(finding(p, "easing", `transition easing [${list(p.transition.easings)}] → [${list(c.transition.easings)}]`, at));
92970
+ out.push(finding(p, "easing", `transition easing [${list2(p.transition.easings)}] → [${list2(c.transition.easings)}]`, at));
92838
92971
  }
92839
92972
  const pdel = Math.max(0, ...p.transition.delaysMs);
92840
92973
  const cdel = Math.max(0, ...c.transition.delaysMs);
@@ -92852,11 +92985,11 @@ function diffAnimations(p, c) {
92852
92985
  const pNames = p.animation.names.filter((n) => n && n !== "none");
92853
92986
  const cNames = c.animation.names.filter((n) => n && n !== "none");
92854
92987
  if (pNames.length > 0 && cNames.length === 0) {
92855
- out.push(finding(p, "missing-animation", `prod animates [${list(pNames)}]; cand has no animation`, at));
92988
+ out.push(finding(p, "missing-animation", `prod animates [${list2(pNames)}]; cand has no animation`, at));
92856
92989
  return out;
92857
92990
  }
92858
92991
  if (pNames.length === 0 && cNames.length > 0) {
92859
- out.push(finding(p, "extra-animation", `cand animates [${list(cNames)}]; prod does not`, at));
92992
+ out.push(finding(p, "extra-animation", `cand animates [${list2(cNames)}]; prod does not`, at));
92860
92993
  return out;
92861
92994
  }
92862
92995
  if (pNames.length === 0)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@decocms/parity",
3
- "version": "0.35.11",
3
+ "version": "0.35.12",
4
4
  "description": "E2E parity validator for site migrations. Compares prod vs cand and reports UI, functional, SEO, visual, and Web Vitals deltas with an LLM-ranked HTML report.",
5
5
  "type": "module",
6
6
  "license": "MIT",