sitespeed.io 21.1.0 → 21.2.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,12 @@
1
1
  # CHANGELOG - sitespeed.io (we use [semantic versioning](https://semver.org))
2
2
 
3
+ ## 21.2.0 - 2021-12-22
4
+ ### Fixed
5
+ * The catching of errors in the queue was broken and reported the error x times (x=numbert of plugins). Also when we had an error the result JSON was not stored. [#3522](https://github.com/sitespeedio/sitespeed.io/pull/3522).
6
+
7
+ ### Added
8
+ * Updated to Firefox 95 and Edge 96 in the Docker container.
9
+ * Include page summary URL in the result JSON [#3523](https://github.com/sitespeedio/sitespeed.io/pull/3523).
3
10
 
4
11
  ## 21.1.0 - 2021-12-06
5
12
  ### Added
package/Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM sitespeedio/webbrowsers:chrome-96.0-firefox-94.0-edge-95.0-dev
1
+ FROM sitespeedio/webbrowsers:chrome-96.0-firefox-95.0-edge-96.0-dev
2
2
 
3
3
  ENV SITESPEED_IO_BROWSERTIME__XVFB true
4
4
  ENV SITESPEED_IO_BROWSERTIME__DOCKER true
package/Dockerfile-slim CHANGED
@@ -6,7 +6,7 @@ ENV SITESPEED_IO_BROWSERTIME__BROWSER firefox
6
6
  ENV SITESPEED_IO_BROWSERTIME__VISUAL_METRICS false
7
7
  ENV SITESPEED_IO_BROWSERTIME__HEADLESS true
8
8
 
9
- ENV FIREFOX_VERSION 94.0
9
+ ENV FIREFOX_VERSION 95.0
10
10
 
11
11
  ENV PATH="/usr/local/bin:${PATH}"
12
12
 
package/bin/sitespeed.js CHANGED
@@ -14,9 +14,6 @@ async function run(options) {
14
14
  process.exitCode = 1;
15
15
  try {
16
16
  const result = await sitespeed.run(options);
17
- if (result.errors.length > 0) {
18
- throw new Error('Errors while running:\n' + result.errors.join('\n'));
19
- }
20
17
 
21
18
  if (options.storeResult) {
22
19
  if (options.storeResult != 'true') {
@@ -26,6 +23,10 @@ async function run(options) {
26
23
  }
27
24
  }
28
25
 
26
+ if (result.errors.length > 0) {
27
+ throw new Error('Errors while running:\n' + result.errors.join('\n'));
28
+ }
29
+
29
30
  if ((options.open || options.o) && os.platform() === 'darwin') {
30
31
  execSync('open ' + result.localPath + '/index.html');
31
32
  }
@@ -125,10 +125,6 @@ class QueueHandler {
125
125
  // FIXME handle rejections (i.e. failures while processing messages) properly
126
126
  queue.processingEnded(obj => {
127
127
  const message = obj.item;
128
- // if we get a error message on the queue make sure we register that
129
- if (message.type === 'error' || message.type.endsWith('.error')) {
130
- this.errors.push(message.data);
131
- }
132
128
  const err = obj.err;
133
129
  if (err) {
134
130
  let rejectionMessage =
@@ -197,6 +193,11 @@ class QueueHandler {
197
193
  postMessage(message) {
198
194
  validateMessageFormat(message);
199
195
 
196
+ // if we get a error message on the queue make sure we register that
197
+ if (message.type === 'error' || message.type.endsWith('.error')) {
198
+ this.errors.push('' + message.data);
199
+ }
200
+
200
201
  // Don't return promise in loop - we don't want to wait for completion,
201
202
  // just post the message.
202
203
  for (let item of this.queues) {
package/lib/sitespeed.js CHANGED
@@ -163,6 +163,10 @@ module.exports = {
163
163
  resultUrl: resultUrls.hasBaseUrl()
164
164
  ? resultUrls.reportSummaryUrl() + '/index.html'
165
165
  : '',
166
+ pageSummaryUrl:
167
+ url && resultUrls.hasBaseUrl()
168
+ ? resultUrls.absoluteSummaryPageUrl(url) + 'index.html'
169
+ : '',
166
170
  localPath: storageManager.getBaseDir()
167
171
  };
168
172
  } catch (err) {
@@ -1,19 +1,19 @@
1
1
  {
2
2
  "name": "sitespeed.io",
3
- "version": "21.1.0",
3
+ "version": "21.2.0",
4
4
  "lockfileVersion": 2,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "sitespeed.io",
9
- "version": "21.1.0",
9
+ "version": "21.2.0",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
12
  "@google-cloud/storage": "5.8.3",
13
13
  "@tgwf/co2": "0.8.0",
14
14
  "aws-sdk": "2.882.0",
15
15
  "axe-core": "4.3.5",
16
- "browsertime": "14.12.1",
16
+ "browsertime": "14.12.2",
17
17
  "cli-color": "2.0.0",
18
18
  "coach-core": "7.0.0",
19
19
  "concurrent-queue": "7.0.2",
@@ -1465,9 +1465,9 @@
1465
1465
  }
1466
1466
  },
1467
1467
  "node_modules/browsertime": {
1468
- "version": "14.12.1",
1469
- "resolved": "https://registry.npmjs.org/browsertime/-/browsertime-14.12.1.tgz",
1470
- "integrity": "sha512-qWEGcJw9N2/x1oMYNkH/+m3KyYHNT7rQ2iNlkgC9NYb3khNdPhaV1FGRD5dQIiRgwnCDpiKWBgBSbtTfEMAkLA==",
1468
+ "version": "14.12.2",
1469
+ "resolved": "https://registry.npmjs.org/browsertime/-/browsertime-14.12.2.tgz",
1470
+ "integrity": "sha512-y/ouU8ejg6OuxSw4GXVIHLL83vw65/45O5yWaYmj8rtoqaeghBzWsG+KiCtu5zJRH5B1SD+zM5x47hmxNYFvzQ==",
1471
1471
  "dependencies": {
1472
1472
  "@cypress/xvfb": "1.2.4",
1473
1473
  "@devicefarmer/adbkit": "2.11.3",
@@ -8631,9 +8631,9 @@
8631
8631
  }
8632
8632
  },
8633
8633
  "browsertime": {
8634
- "version": "14.12.1",
8635
- "resolved": "https://registry.npmjs.org/browsertime/-/browsertime-14.12.1.tgz",
8636
- "integrity": "sha512-qWEGcJw9N2/x1oMYNkH/+m3KyYHNT7rQ2iNlkgC9NYb3khNdPhaV1FGRD5dQIiRgwnCDpiKWBgBSbtTfEMAkLA==",
8634
+ "version": "14.12.2",
8635
+ "resolved": "https://registry.npmjs.org/browsertime/-/browsertime-14.12.2.tgz",
8636
+ "integrity": "sha512-y/ouU8ejg6OuxSw4GXVIHLL83vw65/45O5yWaYmj8rtoqaeghBzWsG+KiCtu5zJRH5B1SD+zM5x47hmxNYFvzQ==",
8637
8637
  "requires": {
8638
8638
  "@cypress/xvfb": "1.2.4",
8639
8639
  "@devicefarmer/adbkit": "2.11.3",
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "sitespeed.io": "./bin/sitespeed.js",
5
5
  "sitespeed.io-wpr": "./bin/browsertimeWebPageReplay.js"
6
6
  },
7
- "version": "21.1.0",
7
+ "version": "21.2.0",
8
8
  "description": "Analyze the web performance of your site",
9
9
  "keywords": [
10
10
  "performance",
@@ -74,7 +74,7 @@
74
74
  "@tgwf/co2": "0.8.0",
75
75
  "aws-sdk": "2.882.0",
76
76
  "axe-core": "4.3.5",
77
- "browsertime": "14.12.1",
77
+ "browsertime": "14.12.2",
78
78
  "coach-core": "7.0.0",
79
79
  "cli-color": "2.0.0",
80
80
  "concurrent-queue": "7.0.2",