sitespeed.io 21.0.1 → 21.2.2

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,6 +1,24 @@
1
1
  # CHANGELOG - sitespeed.io (we use [semantic versioning](https://semver.org))
2
2
 
3
+ ## 21.2.2 - 2021-12-23
4
+ ### Fixed
5
+ * Fix the error introduced in 21.2.0 for "Include page summary URL in the result JSON"
6
+ [#3525](https://github.com/sitespeedio/sitespeed.io/pull/3525).
7
+
8
+ ## 21.2.1 - 2021-12-22
9
+ ### Fixed
10
+ * It turns out that Firefox 95 doesn't work with the HAR export trigger and the workaround that worked in Firefox 94 seems to not work in 95 see https://github.com/sitespeedio/browsertime/issues/1671#issuecomment-999412035. That's why we are reverting to Firefox 94 in the Docker containers.
11
+ ## 21.2.0 - 2021-12-22
12
+ ### Fixed
13
+ * 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).
3
14
 
15
+ ### Added
16
+ * Updated to Firefox 95 and Edge 96 in the Docker container.
17
+ * Include page summary URL in the result JSON [#3523](https://github.com/sitespeedio/sitespeed.io/pull/3523).
18
+
19
+ ## 21.1.0 - 2021-12-06
20
+ ### Added
21
+ * Added possibility choose name for storing a result JSON [#3520](https://github.com/sitespeedio/sitespeed.io/pull/3520). We use this for a feature that will be released soon.
4
22
  ## 21.0.1 - 2021-12-01
5
23
  ### Fixed
6
24
  * Updated Browsertime that logs Chrome document request failures on debug log level instead so that the log is not cluttered.
package/bin/sitespeed.js CHANGED
@@ -14,12 +14,17 @@ 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
- fs.writeFileSync('result.json', JSON.stringify(result));
19
+ if (options.storeResult != 'true') {
20
+ fs.writeFileSync(options.storeResult, JSON.stringify(result));
21
+ } else {
22
+ fs.writeFileSync('result.json', JSON.stringify(result));
23
+ }
24
+ }
25
+
26
+ if (result.errors.length > 0) {
27
+ throw new Error('Errors while running:\n' + result.errors.join('\n'));
23
28
  }
24
29
 
25
30
  if ((options.open || options.o) && os.platform() === 'darwin') {
@@ -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() && !options.multi
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.0.1",
3
+ "version": "21.2.2",
4
4
  "lockfileVersion": 2,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "sitespeed.io",
9
- "version": "21.0.1",
9
+ "version": "21.2.2",
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.0.1",
7
+ "version": "21.2.2",
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",