browsertime 17.12.1 → 17.13.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,21 @@
1
1
  # Browsertime changelog (we do [semantic versioning](https://semver.org))
2
2
 
3
+ ## 17.13.1 - 2022-07-22
4
+
5
+ ### Tech
6
+ * Internal fix how the render blocking result is added [#1972](https://github.com/sitespeedio/browsertime/pull/1972).
7
+
8
+
9
+ ## 17.13.0 - 2022-07-21
10
+ ### Fixed
11
+ * Fix for Chromedriver 115 so that it works on Mac again [#1971](https://github.com/sitespeedio/browsertime/pull/1971).
12
+
13
+ ### Added
14
+ * Edgedriver 114 [#1969](https://github.com/sitespeedio/browsertime/pull/1969)
15
+
16
+ ### Tech
17
+ * Run tests on Chrome/Firefox/Edge on Mac OS on our GitHub Actions to catch the next time Chromedriver is broken on Mac [#1970](https://github.com/sitespeedio/browsertime/pull/1970)
18
+
3
19
  ## 17.12.1 - 2022-07-19
4
20
  ### Fixed
5
21
  * Hmm, Chromedriver 115 doesn't seems to work on Mac so reverted to 114.
@@ -1,4 +1,5 @@
1
1
  import { readFileSync } from 'node:fs';
2
+ import { platform } from 'node:os';
2
3
  import intel from 'intel';
3
4
  import { chromeDesktopOptions as defaultChromeOptions } from '../settings/chromeDesktopOptions.js';
4
5
  import { chromeAndroidOptions as defaultAndroidChromeOptions } from '../settings/chromeAndroidOptions.js';
@@ -188,6 +189,14 @@ export function setupChromiumOptions(
188
189
 
189
190
  if (browserOptions.binaryPath) {
190
191
  seleniumOptions.setChromeBinaryPath(browserOptions.binaryPath);
192
+ } else {
193
+ // Fix for https://github.com/sitespeedio/browsertime/issues/1968
194
+ // Same settings for Chrome/Edge
195
+ if (options.browser === 'chrome' && platform() === 'darwin') {
196
+ seleniumOptions.setChromeBinaryPath(
197
+ '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome'
198
+ );
199
+ }
191
200
  }
192
201
 
193
202
  if (browserOptions.mobileEmulation) {
@@ -51,6 +51,7 @@ function getNewResult(url, options) {
51
51
  fullyLoaded: [],
52
52
  mainDocumentTimings: [],
53
53
  errors: [],
54
+ renderBlocking: [],
54
55
  server: { processesAtStart: [] }
55
56
  };
56
57
  }
@@ -400,9 +401,6 @@ export class Collector {
400
401
  }
401
402
 
402
403
  if (data.renderBlocking) {
403
- if (!results.renderBlocking) {
404
- results.renderBlocking = [];
405
- }
406
404
  results.renderBlocking.push(data.renderBlocking);
407
405
 
408
406
  statistics.addDeep({
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "browsertime",
3
3
  "description": "Get performance metrics from your web page using Browsertime.",
4
- "version": "17.12.1",
4
+ "version": "17.13.1",
5
5
  "bin": "./bin/browsertime.js",
6
6
  "type": "module",
7
7
  "dependencies": {
8
8
  "@cypress/xvfb": "1.2.4",
9
9
  "@devicefarmer/adbkit": "2.11.3",
10
- "@sitespeed.io/chromedriver": "114.0.5735-90",
11
- "@sitespeed.io/edgedriver": "113.0.1774-9b",
10
+ "@sitespeed.io/chromedriver": "115.0.5790-98b",
11
+ "@sitespeed.io/edgedriver": "114.0.1823-82",
12
12
  "@sitespeed.io/geckodriver": "0.33.0",
13
13
  "@sitespeed.io/throttle": "5.0.0",
14
14
  "@sitespeed.io/tracium": "0.3.3",