browsertime 24.2.0 → 24.4.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 +13 -1
- package/browserscripts/timings/serverTimings.js +10 -14
- package/lib/core/engine/command/actions.js +2 -2
- package/lib/core/engine/command/measure.js +6 -3
- package/lib/support/cli.js +5 -0
- package/lib/support/logging.js +1 -0
- package/package.json +5 -5
- package/types/core/engine/command/actions.d.ts +2 -2
- package/types/core/engine/command/measure.d.ts +6 -3
- package/types/core/engine/command/measure.d.ts.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
# Browsertime changelog (we do [semantic versioning](https://semver.org))
|
|
2
2
|
|
|
3
|
-
## 24.
|
|
3
|
+
## 24.4.0 - 2025-03-11
|
|
4
|
+
### Added
|
|
5
|
+
* Edgedriver 134 [#2269](https://github.com/sitespeedio/browsertime/pull/2269).
|
|
6
|
+
* Chromedriver 134, updated chrome-remote-interfaces and webdriver [#2266](https://github.com/sitespeedio/browsertime/pull/2266)
|
|
7
|
+
|
|
8
|
+
### Fixed
|
|
9
|
+
* Fix how to get server timings (from main request) as reported on Slack [#2268](https://github.com/sitespeedio/browsertime/pull/2268).
|
|
10
|
+
|
|
11
|
+
## 24.3.0 - 2025-03-03
|
|
12
|
+
### Added
|
|
13
|
+
* Add support for manually setting the log level using `--logLevel` [#2264](https://github.com/sitespeedio/browsertime/pull/2264).2264
|
|
14
|
+
|
|
15
|
+
## 24.2.0 - 2025-02-05
|
|
4
16
|
### Added
|
|
5
17
|
* Updated Chromedriver and Chromne to 133 and Firefox to 135 [#2261](https://github.com/sitespeedio/browsertime/pull/2261) and [#2262](https://github.com/sitespeedio/browsertime/pull/2262).
|
|
6
18
|
|
|
@@ -1,16 +1,12 @@
|
|
|
1
1
|
(function () {
|
|
2
|
-
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
return serverTimings;
|
|
15
|
-
} else return undefined;
|
|
2
|
+
let t = window.performance.getEntriesByType('navigation')[0];
|
|
3
|
+
const serverTimings = [];
|
|
4
|
+
for (let timing of t.serverTiming) {
|
|
5
|
+
serverTimings.push({
|
|
6
|
+
name: timing.name,
|
|
7
|
+
duration: timing.duration,
|
|
8
|
+
description: timing.description
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
return serverTimings;
|
|
16
12
|
})();
|
|
@@ -39,8 +39,8 @@ export class Actions {
|
|
|
39
39
|
* @returns {SeleniumActions} The current Selenium Actions builder object for chaining browser actions.
|
|
40
40
|
* @example
|
|
41
41
|
* // Example of using the actions builder to perform a drag-and-drop operation:
|
|
42
|
-
* const elementToDrag = await commands.
|
|
43
|
-
* const dropTarget = await commands.
|
|
42
|
+
* const elementToDrag = await commands.element.getByCss('.draggable');
|
|
43
|
+
* const dropTarget = await commands.element.getByCss('.drop-target');
|
|
44
44
|
* await commands.action.getAction()
|
|
45
45
|
* .dragAndDrop(elementToDrag, dropTarget)
|
|
46
46
|
* .perform();
|
|
@@ -478,8 +478,9 @@ export class Measure {
|
|
|
478
478
|
|
|
479
479
|
/**
|
|
480
480
|
* Adds a custom metric to the current measurement result.
|
|
481
|
-
*
|
|
482
|
-
*
|
|
481
|
+
* The metric will be attached to the latest tested page, meaming
|
|
482
|
+
* you need to have measured a URL and stopped the measurement before
|
|
483
|
+
* you add the metric.
|
|
483
484
|
* @param {string} name - The name of the metric.
|
|
484
485
|
* @param {*} value - The value of the metric.
|
|
485
486
|
* @throws {Error} Throws an error if called before a measurement cycle has started.
|
|
@@ -497,7 +498,9 @@ export class Measure {
|
|
|
497
498
|
/**
|
|
498
499
|
* Adds multiple custom metrics to the current measurement result.
|
|
499
500
|
* This method accepts an object containing multiple key-value pairs representing different metrics.
|
|
500
|
-
*
|
|
501
|
+
* The metric will be attached to the latest tested page, meaming
|
|
502
|
+
* you need to have measured a URL and stopped the measurement before
|
|
503
|
+
* you add the metric.
|
|
501
504
|
*
|
|
502
505
|
* @param {Object} object - An object containing key-value pairs of metrics to add.
|
|
503
506
|
* @throws {Error} Throws an error if called before a measurement cycle has started.
|
package/lib/support/cli.js
CHANGED
|
@@ -1184,6 +1184,11 @@ export function parseCommandLine() {
|
|
|
1184
1184
|
describe:
|
|
1185
1185
|
'Append a String to the user agent. Works in Chrome/Edge and Firefox.'
|
|
1186
1186
|
})
|
|
1187
|
+
.option('logLevel', {
|
|
1188
|
+
type: 'string',
|
|
1189
|
+
choices: ['trace', 'verbose', 'debug', 'info', 'warning', 'error'],
|
|
1190
|
+
describe: 'Manually set the min log level'
|
|
1191
|
+
})
|
|
1187
1192
|
.option('silent', {
|
|
1188
1193
|
alias: 'q',
|
|
1189
1194
|
type: 'count',
|
package/lib/support/logging.js
CHANGED
package/package.json
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "browsertime",
|
|
3
3
|
"description": "Get performance metrics from your web page using Browsertime.",
|
|
4
|
-
"version": "24.
|
|
4
|
+
"version": "24.4.0",
|
|
5
5
|
"bin": "./bin/browsertime.js",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"types": "./types/scripting.d.ts",
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"@devicefarmer/adbkit": "3.3.8",
|
|
10
|
-
"@sitespeed.io/chromedriver": "
|
|
11
|
-
"@sitespeed.io/edgedriver": "
|
|
10
|
+
"@sitespeed.io/chromedriver": "134.0.6998-35",
|
|
11
|
+
"@sitespeed.io/edgedriver": "134.0.3124-51",
|
|
12
12
|
"@sitespeed.io/geckodriver": "0.35.0-1",
|
|
13
13
|
"@sitespeed.io/log": "0.2.6",
|
|
14
14
|
"@sitespeed.io/throttle": "5.0.1",
|
|
15
15
|
"@sitespeed.io/tracium": "0.3.3",
|
|
16
16
|
"chrome-har": "1.0.1",
|
|
17
|
-
"chrome-remote-interface": "0.33.
|
|
17
|
+
"chrome-remote-interface": "0.33.3",
|
|
18
18
|
"execa": "9.5.2",
|
|
19
19
|
"fast-stats": "0.0.7",
|
|
20
20
|
"ff-test-bidi-har-export": "0.0.17",
|
|
21
21
|
"lodash.merge": "4.6.2",
|
|
22
|
-
"selenium-webdriver": "4.
|
|
22
|
+
"selenium-webdriver": "4.29.0",
|
|
23
23
|
"yargs": "17.7.2"
|
|
24
24
|
},
|
|
25
25
|
"optionalDependencies": {
|
|
@@ -25,8 +25,8 @@ export class Actions {
|
|
|
25
25
|
* @returns {SeleniumActions} The current Selenium Actions builder object for chaining browser actions.
|
|
26
26
|
* @example
|
|
27
27
|
* // Example of using the actions builder to perform a drag-and-drop operation:
|
|
28
|
-
* const elementToDrag = await commands.
|
|
29
|
-
* const dropTarget = await commands.
|
|
28
|
+
* const elementToDrag = await commands.element.getByCss('.draggable');
|
|
29
|
+
* const dropTarget = await commands.element.getByCss('.drop-target');
|
|
30
30
|
* await commands.action.getAction()
|
|
31
31
|
* .dragAndDrop(elementToDrag, dropTarget)
|
|
32
32
|
* .perform();
|
|
@@ -174,8 +174,9 @@ export class Measure {
|
|
|
174
174
|
stop(testedStartUrl: string): Promise<any>;
|
|
175
175
|
/**
|
|
176
176
|
* Adds a custom metric to the current measurement result.
|
|
177
|
-
*
|
|
178
|
-
*
|
|
177
|
+
* The metric will be attached to the latest tested page, meaming
|
|
178
|
+
* you need to have measured a URL and stopped the measurement before
|
|
179
|
+
* you add the metric.
|
|
179
180
|
* @param {string} name - The name of the metric.
|
|
180
181
|
* @param {*} value - The value of the metric.
|
|
181
182
|
* @throws {Error} Throws an error if called before a measurement cycle has started.
|
|
@@ -184,7 +185,9 @@ export class Measure {
|
|
|
184
185
|
/**
|
|
185
186
|
* Adds multiple custom metrics to the current measurement result.
|
|
186
187
|
* This method accepts an object containing multiple key-value pairs representing different metrics.
|
|
187
|
-
*
|
|
188
|
+
* The metric will be attached to the latest tested page, meaming
|
|
189
|
+
* you need to have measured a URL and stopped the measurement before
|
|
190
|
+
* you add the metric.
|
|
188
191
|
*
|
|
189
192
|
* @param {Object} object - An object containing key-value pairs of metrics to add.
|
|
190
193
|
* @throws {Error} Throws an error if called before a measurement cycle has started.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"measure.d.ts","sourceRoot":"","sources":["../../../../lib/core/engine/command/measure.js"],"names":[],"mappings":"AAgCA;;;;;;GAMG;AACH;IACE,gQA+GC;IAhGC;;OAEG;IACH,gBAAsB;IACtB;;OAEG;IACH,0BAA0C;IAC1C;;OAEG;IACH,cAAkB;IAClB;;OAEG;IACH,eAAoB;IACpB;;OAEG;IACH,uBAAoC;IACpC;;OAEG;IACH,gBAAsB;IACtB;;OAEG;IACH,0BAA0C;IAC1C;;OAEG;IACH,uBAAoC;IACpC;;OAEG;IACH,oBAAyD;IACzD;;OAEG;IACH,eAAoB;IACpB;;OAEG;IACH,0BAA0C;IAC1C;;OAEG;IACH,+BAAoD;IACpD;;OAEG;IACH,uBAAoC;IACpC;;OAEG;IACH,gBAAsB;IACtB;;OAEG;IACH,8BAA8B;IAC9B;;OAEG;IACH,6BAA6B;IAC7B;;OAEG;IACH,uBAA2B;IAC3B;;OAEG;IACH,mBAAoB;IACpB;;OAEG;IACH,gBAA6D;IAC7D;;OAEG;IACH,2BAIC;IACD;;OAEG;IACH,uBAAsE;IACtE;;OAEG;IACH,2BAIC;IAGH;;;OAGG;IACH,oBAsBC;IArBC,aAAuE;IAuBzE;;;OAGG;IACH,mBAKC;IAED;;;OAGG;IACH,eAyBC;IAED;;;OAGG;IACH,iBAQC;IAED;;;;;;;;;;;;OAYG;IACH,kBAmBC;IAED;;;;;;;;;;;;;;;;;;;OAmBG;IACH,kBALW,MAAM,kBACN,MAAM,GAEJ,OAAO,CAAC,IAAI,CAAC,CAmFzB;IAED;;;;;;;;OAQG;IACH,0BAJW,MAAM,gBAiBhB;IACD;;;;;;;;;OASG;IACH,qBAJW,MAAM,gBAyEhB;IAED
|
|
1
|
+
{"version":3,"file":"measure.d.ts","sourceRoot":"","sources":["../../../../lib/core/engine/command/measure.js"],"names":[],"mappings":"AAgCA;;;;;;GAMG;AACH;IACE,gQA+GC;IAhGC;;OAEG;IACH,gBAAsB;IACtB;;OAEG;IACH,0BAA0C;IAC1C;;OAEG;IACH,cAAkB;IAClB;;OAEG;IACH,eAAoB;IACpB;;OAEG;IACH,uBAAoC;IACpC;;OAEG;IACH,gBAAsB;IACtB;;OAEG;IACH,0BAA0C;IAC1C;;OAEG;IACH,uBAAoC;IACpC;;OAEG;IACH,oBAAyD;IACzD;;OAEG;IACH,eAAoB;IACpB;;OAEG;IACH,0BAA0C;IAC1C;;OAEG;IACH,+BAAoD;IACpD;;OAEG;IACH,uBAAoC;IACpC;;OAEG;IACH,gBAAsB;IACtB;;OAEG;IACH,8BAA8B;IAC9B;;OAEG;IACH,6BAA6B;IAC7B;;OAEG;IACH,uBAA2B;IAC3B;;OAEG;IACH,mBAAoB;IACpB;;OAEG;IACH,gBAA6D;IAC7D;;OAEG;IACH,2BAIC;IACD;;OAEG;IACH,uBAAsE;IACtE;;OAEG;IACH,2BAIC;IAGH;;;OAGG;IACH,oBAsBC;IArBC,aAAuE;IAuBzE;;;OAGG;IACH,mBAKC;IAED;;;OAGG;IACH,eAyBC;IAED;;;OAGG;IACH,iBAQC;IAED;;;;;;;;;;;;OAYG;IACH,kBAmBC;IAED;;;;;;;;;;;;;;;;;;;OAmBG;IACH,kBALW,MAAM,kBACN,MAAM,GAEJ,OAAO,CAAC,IAAI,CAAC,CAmFzB;IAED;;;;;;;;OAQG;IACH,0BAJW,MAAM,gBAiBhB;IACD;;;;;;;;;OASG;IACH,qBAJW,MAAM,gBAyEhB;IAED;;;;;;;;OAQG;IACH,UAJW,MAAM,SACN,GAAC,QAWX;IAED;;;;;;;;;OASG;IACH,6BAOC;IAED;;;OAGG;IACH,gBAwLC;CACF;sBA7rBqB,yBAAyB"}
|