sitespeed.io 27.6.3 → 27.6.4
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/.github/workflows/unittests.yml +1 -1
- package/CHANGELOG.md +7 -0
- package/Dockerfile +1 -1
- package/bin/sitespeed.js +2 -1
- package/lib/core/queueHandler.js +9 -1
- package/lib/plugins/html/templates/url/metrics/inp.pug +1 -1
- package/lib/sitespeed.js +4 -3
- package/npm-shrinkwrap.json +393 -393
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# CHANGELOG - sitespeed.io (we use [semantic versioning](https://semver.org))
|
|
2
2
|
|
|
3
|
+
## 27.6.4 - 2023-05-20
|
|
4
|
+
### Fixed
|
|
5
|
+
* New fixed version of the ARM container with a working version of Firefox [#3844](https://github.com/sitespeedio/sitespeed.io/pull/3844)
|
|
6
|
+
* Fixes for the API: Pass on scriptname and pass on Browsertime data in the result.
|
|
7
|
+
* New Browsertime version(s) with updated Interaction To Next Paint script and updated Chromedriver/Edgedriver to 113 [#3851](https://github.com/sitespeedio/sitespeed.io/pull/3851) and [#3853](https://github.com/sitespeedio/sitespeed.io/pull/3853).
|
|
8
|
+
* Upgrade yargs, ora, fs-extra, axe-core [#3852](https://github.com/sitespeedio/sitespeed.io/pull/3852).
|
|
9
|
+
|
|
3
10
|
## 27.6.3 - 2023-05-15
|
|
4
11
|
### Fixed
|
|
5
12
|
* Bumped the Ubuntu image + updated to latest Node JS LTS + included ImageMagick again in the Docker container [#3841](https://github.com/sitespeedio/sitespeed.io/pull/3841).
|
package/Dockerfile
CHANGED
package/bin/sitespeed.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import { writeFileSync } from 'node:fs';
|
|
6
6
|
import { execSync } from 'node:child_process';
|
|
7
7
|
import { platform } from 'node:os';
|
|
8
|
-
import { resolve } from 'node:path';
|
|
8
|
+
import { resolve, basename } from 'node:path';
|
|
9
9
|
import { readFileSync } from 'node:fs';
|
|
10
10
|
|
|
11
11
|
import merge from 'lodash.merge';
|
|
@@ -36,6 +36,7 @@ async function api(options) {
|
|
|
36
36
|
new URL(resolve(process.cwd(), options._[0]), import.meta.url)
|
|
37
37
|
);
|
|
38
38
|
apiOptions.api.scripting = scripting.toString();
|
|
39
|
+
apiOptions.api.scriptingName = basename(options._[0]);
|
|
39
40
|
}
|
|
40
41
|
|
|
41
42
|
if (apiOptions.mobile) {
|
package/lib/core/queueHandler.js
CHANGED
|
@@ -92,6 +92,7 @@ export class QueueHandler {
|
|
|
92
92
|
constructor(options) {
|
|
93
93
|
this.options = options;
|
|
94
94
|
this.errors = [];
|
|
95
|
+
this.browsertimePageSummaries = [];
|
|
95
96
|
}
|
|
96
97
|
|
|
97
98
|
setup(plugins) {
|
|
@@ -188,7 +189,10 @@ export class QueueHandler {
|
|
|
188
189
|
if (this.options.queueStats) {
|
|
189
190
|
log.info(JSON.stringify(generateStatistics(), undefined, 2));
|
|
190
191
|
}
|
|
191
|
-
return
|
|
192
|
+
return {
|
|
193
|
+
errors: this.errors,
|
|
194
|
+
browsertime: this.browsertimePageSummaries
|
|
195
|
+
};
|
|
192
196
|
});
|
|
193
197
|
}
|
|
194
198
|
|
|
@@ -200,6 +204,10 @@ export class QueueHandler {
|
|
|
200
204
|
this.errors.push('' + message.data);
|
|
201
205
|
}
|
|
202
206
|
|
|
207
|
+
if (message.type === 'browsertime.pageSummary') {
|
|
208
|
+
this.browsertimePageSummaries.push(message.data);
|
|
209
|
+
}
|
|
210
|
+
|
|
203
211
|
// Don't return promise in loop - we don't want to wait for completion,
|
|
204
212
|
// just post the message.
|
|
205
213
|
for (let item of this.queues) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
if browsertime.pageinfo && browsertime.pageinfo.interactionToNextPaintInfo!== undefined
|
|
2
2
|
a#interactionToNextPaint
|
|
3
3
|
h3 Interaction to Next Paint
|
|
4
|
-
p Interaction to Next Paint (INP) is
|
|
4
|
+
p Interaction to Next Paint (INP) is a metric that try to measure responsiveness. It's useful if you are testing user journeys Read more about
|
|
5
5
|
a(href='https://web.dev/inp/') Interaction to Next Paint
|
|
6
6
|
| .
|
|
7
7
|
.row
|
package/lib/sitespeed.js
CHANGED
|
@@ -143,11 +143,11 @@ export async function run(options) {
|
|
|
143
143
|
);
|
|
144
144
|
|
|
145
145
|
// Pass the URLs
|
|
146
|
-
const
|
|
146
|
+
const result = await queueHandler.run(urlSources);
|
|
147
147
|
|
|
148
148
|
// Close the plugins
|
|
149
149
|
await Promise.all(
|
|
150
|
-
runOptionalFunction(allPlugins, 'close', options, errors)
|
|
150
|
+
runOptionalFunction(allPlugins, 'close', options, result.errors)
|
|
151
151
|
);
|
|
152
152
|
|
|
153
153
|
if (resultUrls.hasBaseUrl()) {
|
|
@@ -169,7 +169,8 @@ export async function run(options) {
|
|
|
169
169
|
}
|
|
170
170
|
|
|
171
171
|
return {
|
|
172
|
-
errors,
|
|
172
|
+
errors: result.errors,
|
|
173
|
+
browsertime: result.browsertime,
|
|
173
174
|
budgetResult,
|
|
174
175
|
resultUrl: resultUrls.hasBaseUrl()
|
|
175
176
|
? resultUrls.reportSummaryUrl() + '/index.html'
|