sitespeed.io 34.2.1 → 34.3.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,7 +1,17 @@
1
1
  # CHANGELOG - sitespeed.io (we use [semantic versioning](https://semver.org))
2
2
 
3
+
4
+ ## 34.3.0 - 2024-06-20
5
+ ### Added
6
+ * API: Show the URL/script name in the API call [#4195](https://github.com/sitespeedio/sitespeed.io/pull/4195)
7
+ * Update WebPageReplay binaries [#4196](https://github.com/sitespeedio/sitespeed.io/pull/4196).
8
+
9
+ ## 34.2.2 - 2024-06-18
10
+ ### Fixed
11
+ * Make it possible to disable the API. In some cases where you extends another configuration file, you could end up in a API loop where the API calls the API [#4191](https://github.com/sitespeedio/sitespeed.io/pull/4191).
12
+
3
13
  ## 34.2.1 - 2024-06-17
4
- ### Changelog
14
+ ### Fixed
5
15
  * API: safer parsing if something fail to get better error messages [#4188](https://github.com/sitespeedio/sitespeed.io/pull/4188).
6
16
 
7
17
  ## 34.2.0 - 2024-06-14
@@ -46,11 +56,11 @@
46
56
 
47
57
  ### Breaking
48
58
 
49
- * Woho! There's now a way to deploy your own version of sitespeed.io online for your own testing using [onlinetest)[https://github.com/sitespeedio/onlinetest]! It has a HTML GUI and an API that you can use using sitespeed.io command line. There's one server part (the frontend and the API) and a testrunner part. You can run desktop, emulated mobile and Android test. I do not host a global version but I worked hard to make it easy to host yourself. I still work on the documentation but feel free to start to try it out before all documentation is finished :) If you have quick question and need help, please use the [Slack channel](https://join.slack.com/t/sitespeedio/shared_invite/zt-296jzr7qs-d6DId2KpEnMPJSQ8_R~WFw). If you have more complicated problems, please feel free to create issues [here](https://github.com/sitespeedio/onlinetest/issues/new).
59
+ * Woho! There's now a way to deploy your own version of sitespeed.io online for your own testing using [onlinetest][https://github.com/sitespeedio/onlinetest]! It has a HTML GUI and an API that you can use using sitespeed.io command line. There's one server part (the frontend and the API) and a testrunner part. You can run desktop, emulated mobile and Android test. I do not host a global version but I worked hard to make it easy to host yourself. I still work on the documentation but feel free to start to try it out before all documentation is finished :) If you have quick question and need help, please use the [Slack channel](https://join.slack.com/t/sitespeedio/shared_invite/zt-296jzr7qs-d6DId2KpEnMPJSQ8_R~WFw). If you have more complicated problems, please feel free to create issues [here](https://github.com/sitespeedio/onlinetest/issues/new).
50
60
 
51
61
  * With this release we remove all dependencies to WebPageTest [#4085](https://github.com/sitespeedio/sitespeed.io/pull/4085). You are only affected if you used the [plugin-webpagetest](https://github.com/sitespeedio/plugin-webpagetest) or the +webpagetest Docker container. If you still want to use WebPageTest with sitespeed.io you can build something on the archived [plugin-webpagetest](https://github.com/sitespeedio/plugin-webpagetest).
52
62
 
53
- * The S3 plugin has been upgraded to @aws-sdk/client-s3 v3 [#4138](https://github.com/sitespeedio/sitespeed.io/pull/4138). If you are using the S3 plugin and not set region, that will now fail. The v2 version of the aws-sdk used us-east-1 region as default, but v3 has removed the default setting. If you didn't used to set region you can add `--s3.region us-east-1` and it will work as before. If you do not do that, the uploads to S3 will fail.
63
+ * The S3 plugin has been upgraded to @aws-sdk/client-s3 v3 [#4138](https://github.com/sitespeedio/sitespeed.io/pull/4138). If you are using the S3 plugin and not set region, that will now fail. The v2 version of the aws-sdk used us-east-1 region as default, but v3 has removed the default setting. If you didn't used to set region you can add `--s3.region us-east-1` and it will work as before. If you do not do that, the uploads to S3 will fail. With v3 your `endpoint` need to start with http/https.
54
64
 
55
65
  * The -plus1 Docker container now has plugin-lighthouse and plugin-gpsi installed from npm instead of the git repository. It will work as before, but if you want to disable one of them, that has changed. To not run the GPSI plugin add `--plugins.remove @sitespeed.io/plugin-gpsi` and to disble Lighthouse you add `--plugins.remove @sitespeed.io/plugin-lighthouse`.
56
66
 
package/bin/sitespeed.js CHANGED
@@ -66,7 +66,7 @@ async function api(options) {
66
66
 
67
67
  if (action === 'add' || action === 'addAndGetResult') {
68
68
  const spinner = ora({
69
- text: `Send test to ${hostname}`,
69
+ text: `Send test to ${hostname} testing ${options._[0]}`,
70
70
  isSilent: options.api.silent
71
71
  }).start();
72
72
 
@@ -74,10 +74,10 @@ async function api(options) {
74
74
  const data = await addTest(hostname, apiOptions);
75
75
  const testId = JSON.parse(data).id;
76
76
  spinner.color = 'yellow';
77
- spinner.text = `Added test with id ${testId}`;
77
+ spinner.text = `Added test ${options._[0]} with id ${testId}`;
78
78
 
79
79
  if (action === 'add') {
80
- spinner.succeed(`Added test with id ${testId}`);
80
+ spinner.succeed(`Added test ${options._[0]} with id ${testId}`);
81
81
  console.log(testId);
82
82
  process.exit();
83
83
  } else if (action === 'addAndGetResult') {
@@ -132,7 +132,7 @@ async function start() {
132
132
 
133
133
  let options = parsed.options;
134
134
 
135
- if (options.api && options.api.hostname) {
135
+ if (options.api && options.api.hostname && !options.disableAPI) {
136
136
  api(options);
137
137
  } else {
138
138
  try {
package/lib/cli/cli.js CHANGED
@@ -2034,9 +2034,14 @@ export async function parseCommandLine() {
2034
2034
  describe:
2035
2035
  'Give your test a slug. The slug is used when you send the metrics to your data storage to identify the test and the folder of the tests. The max length of the slug is 200 characters and it can only contain a-z A-Z 0-9 and -_ characters.'
2036
2036
  })
2037
+ .option('disableAPI', {
2038
+ default: false,
2039
+ type: 'boolean'
2040
+ })
2037
2041
  .help('h')
2038
2042
  .alias('help', 'h')
2039
2043
  .config(config)
2044
+ .hide('disableAPI')
2040
2045
  .alias('version', 'V')
2041
2046
  .version(version)
2042
2047
  .coerce('budget', function (argument) {
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "sitespeed.io",
3
- "version": "34.2.1",
3
+ "version": "34.3.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "sitespeed.io",
9
- "version": "34.2.1",
9
+ "version": "34.3.0",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
12
  "@aws-sdk/client-s3": "3.564.0",
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "sitespeed.io": "./bin/sitespeed.js",
6
6
  "sitespeed.io-wpr": "./bin/browsertimeWebPageReplay.js"
7
7
  },
8
- "version": "34.2.1",
8
+ "version": "34.3.0",
9
9
  "description": "sitespeed.io is an open-source tool for comprehensive web performance analysis, enabling you to test, monitor, and optimize your website’s speed using real browsers in various environments.",
10
10
  "keywords": [
11
11
  "performance",