browsertime 27.1.0 → 27.2.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Browsertime changelog (we do [semantic versioning](https://semver.org))
2
2
 
3
+ ## 27.2.0 - 2026-05-12
4
+
5
+ ### Added
6
+ * Surface the page-level `recalculateStyle` summary (beforeFCP / beforeLCP element counts + durations) on the first HAR page as `_renderBlocking.recalculateStyle`. The per-request `_renderBlocking` map already projected onto each entry stays where it is — the page-level summary is what powers the "Elements that needed recalculate style before FCP" view and was previously only reachable via `browsertime.json` [#2466](https://github.com/sitespeedio/browsertime/pull/2466).
7
+
3
8
  ## 27.1.0 - 2026-05-06
4
9
 
5
10
  ### Added
@@ -415,6 +415,19 @@ export class Chromium {
415
415
  render.renderBlockingInfo[harRequest.request.url];
416
416
  }
417
417
  }
418
+ // Also stamp the page-level summary (recalculate-style
419
+ // elements + duration before FCP/LCP) onto the HAR's page
420
+ // object so HAR-only consumers can pick it up without
421
+ // needing browsertime.json. The per-request map is already
422
+ // projected onto each entry above, so we keep this payload
423
+ // to just the summary fields.
424
+ const harPage =
425
+ this.hars[index - 1].log.pages && this.hars[index - 1].log.pages[0];
426
+ if (harPage && render.renderBlocking.recalculateStyle) {
427
+ harPage._renderBlocking = {
428
+ recalculateStyle: render.renderBlocking.recalculateStyle
429
+ };
430
+ }
418
431
  }
419
432
 
420
433
  result.renderBlocking.requests = render.renderBlockingInfo;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "browsertime",
3
3
  "description": "Get performance metrics from your web page using Browsertime.",
4
- "version": "27.1.0",
4
+ "version": "27.2.0",
5
5
  "bin": "./bin/browsertime.js",
6
6
  "type": "module",
7
7
  "types": "./types/scripting.d.ts",