browsertime 17.14.0 → 17.14.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,5 +1,16 @@
1
1
  # Browsertime changelog (we do [semantic versioning](https://semver.org))
2
2
 
3
+ ## 17.14.2 - 2022-07-31
4
+ ### Fixed
5
+ * The auto build of release Docker container was broken so no tagged containers was pushed.
6
+
7
+ ## 17.14.1 - 2022-07-31
8
+
9
+ ### Fixed
10
+ * Default jimp resize didn't handle large values (2000) when running in Docker AMD on a ARM machine so changing to another algorithm (HERMITE) [#1977](https://github.com/sitespeedio/browsertime/pull/1977).
11
+
12
+ * Update: chrome-har, dayjs, execa, chrome-remote-interface and jimp [#1976](https://github.com/sitespeedio/browsertime/pull/1976).
13
+
3
14
  ## 17.14.0 - 2022-07-24
4
15
 
5
16
  ### Added
@@ -32,12 +32,11 @@ export async function savePng(
32
32
  }
33
33
 
34
34
  if (jimp) {
35
- const buffer = await jimp.default.read(data).then(image => {
36
- return image
37
- .deflateLevel(config.png.compressionLevel)
38
- .scaleToFit(config.maxSize, config.maxSize)
39
- .getBufferAsync('image/png');
40
- });
35
+ const image = await jimp.default.read(data);
36
+ const buffer = await image
37
+ .deflateLevel(config.png.compressionLevel)
38
+ .scaleToFit(config.maxSize, config.maxSize, jimp.default.RESIZE_HERMITE)
39
+ .getBufferAsync('image/png');
41
40
 
42
41
  return storageManager.writeData(
43
42
  `${name}.png`,
@@ -62,12 +61,12 @@ export async function saveJpg(
62
61
  jimp = undefined;
63
62
  }
64
63
  if (jimp) {
65
- const buffer = await jimp.default.read(data).then(image => {
66
- return image
67
- .quality(config.jpg.quality)
68
- .scaleToFit(config.maxSize, config.maxSize)
69
- .getBufferAsync('image/jpeg');
70
- });
64
+ const image = await jimp.default.read(data);
65
+ // https://github.com/sitespeedio/sitespeed.io/issues/3922
66
+ const buffer = await image
67
+ .quality(config.jpg.quality)
68
+ .scaleToFit(config.maxSize, config.maxSize, jimp.default.RESIZE_HERMITE)
69
+ .getBufferAsync('image/jpeg');
71
70
  return storageManager.writeData(
72
71
  `${name}.jpg`,
73
72
  buffer,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "browsertime",
3
3
  "description": "Get performance metrics from your web page using Browsertime.",
4
- "version": "17.14.0",
4
+ "version": "17.14.2",
5
5
  "bin": "./bin/browsertime.js",
6
6
  "type": "module",
7
7
  "dependencies": {
@@ -14,10 +14,10 @@
14
14
  "@sitespeed.io/tracium": "0.3.3",
15
15
  "ff-test-bidi-har-export": "0.0.11",
16
16
  "btoa": "1.2.1",
17
- "chrome-har": "0.13.1",
18
- "chrome-remote-interface": "0.32.2",
19
- "dayjs": "1.11.7",
20
- "execa": "7.1.1",
17
+ "chrome-har": "0.13.2",
18
+ "chrome-remote-interface": "0.33.0",
19
+ "dayjs": "1.11.9",
20
+ "execa": "7.2.0",
21
21
  "fast-stats": "0.0.6",
22
22
  "find-up": "6.3.0",
23
23
  "get-port": "6.1.2",
@@ -33,7 +33,7 @@
33
33
  "yargs": "17.7.2"
34
34
  },
35
35
  "optionalDependencies": {
36
- "jimp": "0.22.8"
36
+ "jimp": "0.22.10"
37
37
  },
38
38
  "devDependencies": {
39
39
  "ava": "5.1.0",