@reqvire-org/ads 0.5.17 → 0.5.18

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.
@@ -242,8 +242,8 @@ try {
242
242
  let narrowed = await frame.evaluate(layoutOverflow, { ...options, width: request.overflowWidths.at(-1) ?? request.overflowWidths[0] });
243
243
  if (narrowed.issues.length) {
244
244
  await page.setViewportSize({ width: request.overflowWidths[0], height: request.viewport.height });
245
- const folded = await frame.evaluate(layoutOverflow, { ...options, width: request.overflowWidths[0] });
246
- if (!folded.issues.length)
245
+ const folded = await frame.evaluate(layoutOverflow, { ...options, width: request.overflowWidths[0] }), total = (result) => Object.values(result.counts).reduce((sum, count) => sum + (count ?? 0), 0);
246
+ if (total(folded) < total(narrowed))
247
247
  narrowed = folded;
248
248
  }
249
249
  layout.push({ width: app.container, container: !0, ...narrowed });
package/docs/CHANGELOG.md CHANGED
@@ -1,5 +1,61 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.5.18
4
+
5
+ <!-- ads-local-tests:start -->
6
+ Hot patch: the unit and integration groups; the browser group was not run.
7
+ Quick hot patch (on the owner's instruction, only the tests the fix may affect): unit render-audit-states.test.ts, render-audit-derived.test.ts, escaped-severity.test.ts; integration analysis-acceptance.test.mjs, analysis-contrast.test.mjs; not the whole unit or integration group. The changed audit worker runs only in tests/browser/render-audit.test.mjs, which passed 38/38 on this source separately.
8
+ Local verification: **23/23 passed** (unit 8, integration 15).
9
+ Tested commit: `e4c45f21f127335dc5526a93c5ebb527ea2c8b75`; Bun 1.4.4.
10
+ Completed 2026-11-26T17:00:38.367Z (46 seconds).
11
+
12
+ <!-- ads-local-test-proof
13
+ {
14
+ "schema": 3,
15
+ "version": "0.5.18",
16
+ "commit": "e4c45f21f127335dc5526a93c5ebb527ea2c8b75",
17
+ "sourceSha256": "473527688ce2848be8a4b35249172b0637db06fc1b036388222696a0698015b7",
18
+ "command": "bun run test:hotpatch",
19
+ "scope": "hotpatch",
20
+ "result": "pass",
21
+ "tests": 23,
22
+ "pass": 23,
23
+ "fail": 0,
24
+ "skipped": 0,
25
+ "groups": [
26
+ {
27
+ "name": "unit",
28
+ "tests": 8,
29
+ "pass": 8,
30
+ "fail": 0,
31
+ "skipped": 0,
32
+ "reportSha256": "6ef98ff08a6db45de3f6676848771b1037c5f332e58fd81901351b013044fe14"
33
+ },
34
+ {
35
+ "name": "integration",
36
+ "tests": 15,
37
+ "pass": 15,
38
+ "fail": 0,
39
+ "skipped": 0,
40
+ "reportSha256": "75d44a5587e03922ec264bc0d8868907f7c4653bcfb2a58a524ce25939f2939a"
41
+ }
42
+ ],
43
+ "testOverrides": {},
44
+ "bun": "1.4.4",
45
+ "completedAt": "2026-11-26T17:00:38.367Z",
46
+ "durationMs": 46056,
47
+ "logSha256": "4b465972476daa4b06cfc5e78613389de39596575e3db3166eb7dcc4c5a147cd"
48
+ }
49
+ -->
50
+ <!-- ads-local-tests:end -->
51
+
52
+ - *Fixed: page sections reported as escaping in the 240 px pane*: a layout
53
+ whose tiers follow the viewport (LinkCardGrid's three columns, two-column
54
+ pricing cards) kept its desktop layout in the pane render, which no screen
55
+ shows. That render now measures it at the 390 px viewport, where it folds,
56
+ whenever that reports less, not only when it is clean; what still does not
57
+ fit there is reported.
58
+
3
59
  ## 0.5.17
4
60
 
5
61
  <!-- ads-local-tests:start -->
package/docs/GUIDE.md CHANGED
@@ -677,7 +677,11 @@ What the audit measures in each render:
677
677
  - Scrollers, ellipsis text, carousels, pannable widgets, native text fields,
678
678
  fixed layers and visually hidden content are exempt.
679
679
  - Components and patterns are also rendered in a 240 px container. What does
680
- not fit a side pane is a `layout-overflow-narrow` review item.
680
+ not fit a side pane is a `layout-overflow-narrow` review item (an escaping
681
+ control is an error). A layout whose tiers follow the viewport (a page
682
+ section's grid) is measured in that container at the 390 px viewport, where
683
+ it folds, when that reports less: it never shows its desktop layout in a
684
+ pane. A container-context grid follows the pane at any viewport.
681
685
  - **Text scaling** (WCAG 1.4.4, 1.4.10, 1.4.12), once per scenario in the first
682
686
  theme and brand, because text does not follow colour. The passes add about a
683
687
  tenth to the audit's time.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reqvire-org/ads",
3
- "version": "0.5.17",
3
+ "version": "0.5.18",
4
4
  "type": "module",
5
5
  "description": "A design system your agent can see and shape. Your components. Your look. Your code.",
6
6
  "repository": {