sitespeed.io 37.0.3 → 37.1.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 +11 -0
- package/Dockerfile +1 -1
- package/lib/plugins/s3/limit.js +13 -29
- package/lib/support/annotationsHelper.js +1 -1
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
|
|
2
2
|
# CHANGELOG - sitespeed.io (we use [semantic versioning](https://semver.org))
|
|
3
3
|
|
|
4
|
+
## 37.1.0 - 2025-03-08
|
|
5
|
+
### Fixed
|
|
6
|
+
* Simplified logic for uploading files to S3 since we have reports that it do not work 100% [#4472](https://github.com/sitespeedio/sitespeed.io/pull/4472).
|
|
7
|
+
|
|
8
|
+
### Added
|
|
9
|
+
* The Docker container now contains Chrome 134.0, Firefox 136 and Edge 134.0.
|
|
10
|
+
|
|
11
|
+
## 37.0.4 - 2025-03-07
|
|
12
|
+
### Fixed
|
|
13
|
+
* Sending annotations to Graphite failed because of InfluxDB check [#4469](https://github.com/sitespeedio/sitespeed.io/pull/4469).
|
|
14
|
+
|
|
4
15
|
## 37.0.3 - 2025-03-06
|
|
5
16
|
### Fixed
|
|
6
17
|
* Hopefully the last fix for getting --help to work with global plugins [#4466](https://github.com/sitespeedio/sitespeed.io/pull/4466).
|
package/Dockerfile
CHANGED
package/lib/plugins/s3/limit.js
CHANGED
|
@@ -1,34 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
async function runNext() {
|
|
5
|
-
if (tasks.length === 0) {
|
|
6
|
-
return;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
const task = tasks.shift();
|
|
10
|
-
const promise = task()
|
|
11
|
-
.catch(error => {
|
|
12
|
-
throw error;
|
|
13
|
-
})
|
|
14
|
-
.finally(() => {
|
|
15
|
-
running.delete(promise);
|
|
16
|
-
void runNext();
|
|
17
|
-
});
|
|
1
|
+
import { getLogger } from '@sitespeed.io/log';
|
|
2
|
+
const log = getLogger('sitespeedio.plugin.s3');
|
|
18
3
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
4
|
+
export async function runWithConcurrencyLimit(tasks, limit) {
|
|
5
|
+
async function worker() {
|
|
6
|
+
while (tasks.length > 0) {
|
|
7
|
+
const task = tasks.shift();
|
|
8
|
+
try {
|
|
9
|
+
await task();
|
|
10
|
+
} catch (error) {
|
|
11
|
+
log.error('Could not finish upload task', error);
|
|
12
|
+
}
|
|
22
13
|
}
|
|
23
14
|
}
|
|
24
15
|
|
|
25
|
-
const
|
|
26
|
-
|
|
27
|
-
starters.push(runNext());
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
await Promise.allSettled(starters);
|
|
31
|
-
if (running.size > 0) {
|
|
32
|
-
await Promise.allSettled(Array.from(running));
|
|
33
|
-
}
|
|
16
|
+
const workers = Array.from({ length: limit }, () => worker());
|
|
17
|
+
await Promise.all(workers);
|
|
34
18
|
}
|
|
@@ -28,7 +28,7 @@ export function getAnnotationMessage(
|
|
|
28
28
|
|
|
29
29
|
const extraMessage =
|
|
30
30
|
options.graphite.annotationMessage ||
|
|
31
|
-
options.influxdb.annotationMessage ||
|
|
31
|
+
(options.influxdb && options.influxdb.annotationMessage) ||
|
|
32
32
|
options.grafana.annotationMessage ||
|
|
33
33
|
undefined;
|
|
34
34
|
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sitespeed.io",
|
|
3
|
-
"version": "37.0
|
|
3
|
+
"version": "37.1.0",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "sitespeed.io",
|
|
9
|
-
"version": "37.0
|
|
9
|
+
"version": "37.1.0",
|
|
10
10
|
"hasInstallScript": true,
|
|
11
11
|
"license": "MIT",
|
|
12
12
|
"dependencies": {
|
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": "37.0
|
|
8
|
+
"version": "37.1.0",
|
|
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",
|