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.
@@ -11,7 +11,7 @@ jobs:
11
11
  runs-on: ubuntu-latest
12
12
  strategy:
13
13
  matrix:
14
- node-version: [14.x, 16.x, 18.x]
14
+ node-version: [16.x, 18.x, 20.x]
15
15
  steps:
16
16
  - uses: actions/checkout@v3
17
17
  - name: Use Node.js ${{ matrix.node-version }}
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
@@ -1,4 +1,4 @@
1
- FROM sitespeedio/webbrowsers:chrome-113.0-firefox-113.0-edge-113.0-b
1
+ FROM sitespeedio/webbrowsers:chrome-113.0-firefox-113.0-edge-113.0-c
2
2
 
3
3
  ARG TARGETPLATFORM=linux/amd64
4
4
 
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) {
@@ -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 this.errors;
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 an experimental metric that try to measure responsiveness. It's useful if you are testing user journeys. The metric is really new and we try to measure it as good as possible. Read more about
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 errors = await queueHandler.run(urlSources);
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'