browsertime 22.10.2 → 23.0.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,18 @@
1
1
  # Browsertime changelog (we do [semantic versioning](https://semver.org))
2
2
 
3
+ ## 23.0.0 - 2024-09-23
4
+
5
+ ### Breaking
6
+ * Disable camel case configuration that comes automatically with yargs [#2182](https://github.com/sitespeedio/browsertime/pull/2182). This is a breaking change ONLY if you didn't follow our doecumentation/help and used internal YARGS configuration names for our CLI configuration.
7
+
8
+ ### Added
9
+ * Updated Docker container with Chrome 129, Firefox 130. New Chromedriver [#2181](https://github.com/sitespeedio/browsertime/pull/2181).
10
+
11
+ ### Fixed
12
+ * Updated to Selenium 4.25.0 [#2185](https://github.com/sitespeedio/browsertime/pull/2185).
13
+ * Use HAR export 0.0.15 for upcoming changes in Firefox [#2184](https://github.com/sitespeedio/browsertime/pull/2184).
14
+ * Fixes the internal configuration object for android. The old solution created an array with objects instead of just keys on the object.[#2183](https://github.com/sitespeedio/browsertime/pull/2183).
15
+
3
16
  ## 22.10.2 - 2024-09-13
4
17
  ### Fixed
5
18
  * Fix for wait.byIdAndVisible command [#2179](https://github.com/sitespeedio/browsertime/pull/2179).
@@ -63,11 +63,6 @@ function validateInput(argv) {
63
63
  }
64
64
  }
65
65
 
66
- // hack to keep backward compability to --android
67
- if (argv.android[0] === true) {
68
- set(argv, 'android.enabled', true);
69
- }
70
-
71
66
  if (argv.chrome && argv.chrome.mobileEmulation) {
72
67
  const m = argv.chrome.mobileEmulation;
73
68
  if (!(m.deviceName || (m.height && m.width && m.pixelRatio))) {
@@ -144,9 +139,16 @@ function validateInput(argv) {
144
139
  }
145
140
 
146
141
  export function parseCommandLine() {
147
- let yargsInstance = yargs(hideBin(process.argv));
142
+ let argvFix = process.argv.map(arg =>
143
+ arg === '--android' ? '--android.enabled' : arg
144
+ );
145
+
146
+ let yargsInstance = yargs(hideBin(argvFix));
148
147
  let validated = yargsInstance
149
- .parserConfiguration({ 'deep-merge-config': true })
148
+ .parserConfiguration({
149
+ 'camel-case-expansion': false,
150
+ 'deep-merge-config': true
151
+ })
150
152
  .env('BROWSERTIME')
151
153
  .usage('$0 [options] <url>/<scriptFile>')
152
154
  .require(1, 'One or more url or script files')
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": "22.10.2",
4
+ "version": "23.0.0",
5
5
  "bin": "./bin/browsertime.js",
6
6
  "type": "module",
7
7
  "types": "./types/scripting.d.ts",
8
8
  "dependencies": {
9
9
  "@cypress/xvfb": "1.2.4",
10
10
  "@devicefarmer/adbkit": "3.2.6",
11
- "@sitespeed.io/chromedriver": "128.0.6613-86",
11
+ "@sitespeed.io/chromedriver": "129.0.6668-58",
12
12
  "@sitespeed.io/edgedriver": "126.0.2592-102",
13
13
  "@sitespeed.io/geckodriver": "0.35.0",
14
14
  "@sitespeed.io/throttle": "5.0.1",
@@ -19,7 +19,7 @@
19
19
  "dayjs": "1.11.13",
20
20
  "execa": "9.3.1",
21
21
  "fast-stats": "0.0.7",
22
- "ff-test-bidi-har-export": "0.0.14",
22
+ "ff-test-bidi-har-export": "0.0.15",
23
23
  "find-up": "7.0.0",
24
24
  "get-port": "7.1.0",
25
25
  "hasbin": "1.2.3",
@@ -30,7 +30,7 @@
30
30
  "lodash.merge": "4.6.2",
31
31
  "lodash.pick": "4.4.0",
32
32
  "lodash.set": "4.3.2",
33
- "selenium-webdriver": "4.24.0",
33
+ "selenium-webdriver": "4.25.0",
34
34
  "usb-power-profiling": "1.4.0",
35
35
  "yargs": "17.7.2"
36
36
  },