sitespeed.io 35.6.0 → 35.6.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG - sitespeed.io (we use [semantic versioning](https://semver.org))
2
2
 
3
+ ## 35.6.1 - 2024-11-23
4
+ ### Fixed
5
+ * Make sure the compare plugin can handle if your run Firefox with CPU options [#4324](https://github.com/sitespeedio/sitespeed.io/pull/4324).
6
+
3
7
  ## 35.6.0 - 2024-11-23
4
8
  ### Added
5
9
  * Updated to Firefox 132 and Edge 131 in the Docketr container. The performance regression in Firefox 132 [#2211](https://github.com/sitespeedio/browsertime/issues/2211) has been fixed.
@@ -275,16 +275,18 @@ function getCPU(data) {
275
275
  };
276
276
 
277
277
  for (const run of data.cpu) {
278
- const longTasks = run.longTasks;
279
- cpuMetrics['tasks'].push(longTasks['tasks']);
280
- cpuMetrics['totalDuration'].push(longTasks['totalDuration']);
281
- cpuMetrics['lastLongTask'].push(longTasks['lastLongTask']);
282
- cpuMetrics['beforeFirstContentfulPaint'].push(
283
- longTasks['beforeFirstContentfulPaint'].totalDuration
284
- );
285
- cpuMetrics['beforeLargestContentfulPaint'].push(
286
- longTasks['beforeLargestContentfulPaint'].totalDuration
287
- );
278
+ if (run.longTasks) {
279
+ const longTasks = run.longTasks;
280
+ cpuMetrics['tasks'].push(longTasks['tasks']);
281
+ cpuMetrics['totalDuration'].push(longTasks['totalDuration']);
282
+ cpuMetrics['lastLongTask'].push(longTasks['lastLongTask']);
283
+ cpuMetrics['beforeFirstContentfulPaint'].push(
284
+ longTasks['beforeFirstContentfulPaint'].totalDuration
285
+ );
286
+ cpuMetrics['beforeLargestContentfulPaint'].push(
287
+ longTasks['beforeLargestContentfulPaint'].totalDuration
288
+ );
289
+ }
288
290
  }
289
291
 
290
292
  const isEmpty = Object.values(cpuMetrics).every(arr => arr.length === 0);
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "sitespeed.io",
3
- "version": "35.6.0",
3
+ "version": "35.6.1",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "sitespeed.io",
9
- "version": "35.6.0",
9
+ "version": "35.6.1",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
12
  "@aws-sdk/client-s3": "3.609.0",
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "sitespeed.io": "./bin/sitespeed.js",
6
6
  "sitespeed.io-wpr": "./bin/browsertimeWebPageReplay.js"
7
7
  },
8
- "version": "35.6.0",
8
+ "version": "35.6.1",
9
9
  "description": "sitespeed.io is an open-source tool for comprehensive web performance analysis, enabling you to test, monitor, and optimize your website’s speed using real browsers in various environments.",
10
10
  "keywords": [
11
11
  "performance",