sitespeed.io 37.0.2 → 37.0.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.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,14 @@
1
1
 
2
2
  # CHANGELOG - sitespeed.io (we use [semantic versioning](https://semver.org))
3
3
 
4
+ ## 37.0.4 - 2025-03-07
5
+ ### Fixed
6
+ * Sending annotations to Graphite failed because of InfluxDB check [#4469](https://github.com/sitespeedio/sitespeed.io/pull/4469).
7
+
8
+ ## 37.0.3 - 2025-03-06
9
+ ### Fixed
10
+ * Hopefully the last fix for getting --help to work with global plugins [#4466](https://github.com/sitespeedio/sitespeed.io/pull/4466).
11
+
4
12
  ## 37.0.2 - 2025-03-05
5
13
  ### Fixed
6
14
  * Another fix for using --help and load plugins correctly [#4465](https://github.com/sitespeedio/sitespeed.io/pull/4465).
@@ -15,7 +15,8 @@ export async function registerPluginOptions(yargsInstance, plugins) {
15
15
  // If the plugin exports a function to get CLI options, merge them
16
16
  if (
17
17
  plugin &&
18
- plugin.default & (typeof plugin.default.getCliOptions === 'function')
18
+ plugin.default &&
19
+ typeof plugin.default.getCliOptions === 'function'
19
20
  ) {
20
21
  const options = plugin.default.getCliOptions();
21
22
  yargsInstance.options(options);
@@ -82,9 +82,9 @@ export async function loadPlugins(pluginNames, options, context, queue) {
82
82
  } catch (error) {
83
83
  // try global
84
84
  try {
85
- let { default: plugin } = await importGlobalSilent(name);
85
+ const plugin = await importGlobalSilent(name);
86
86
  if (plugin) {
87
- let p = new plugin(options, context, queue);
87
+ let p = new plugin.default(options, context, queue);
88
88
  plugins.push(p);
89
89
  } else {
90
90
  console.error("Couldn't load plugin %s: %s", name, error_);
@@ -28,7 +28,7 @@ export function getAnnotationMessage(
28
28
 
29
29
  const extraMessage =
30
30
  options.graphite.annotationMessage ||
31
- options.influxdb.annotationMessage ||
31
+ (options.influxdb && options.influxdb.annotationMessage) ||
32
32
  options.grafana.annotationMessage ||
33
33
  undefined;
34
34
 
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "sitespeed.io",
3
- "version": "37.0.2",
3
+ "version": "37.0.4",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "sitespeed.io",
9
- "version": "37.0.2",
9
+ "version": "37.0.4",
10
10
  "hasInstallScript": true,
11
11
  "license": "MIT",
12
12
  "dependencies": {
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": "37.0.2",
8
+ "version": "37.0.4",
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",
package/docs/README.md DELETED
@@ -1,10 +0,0 @@
1
- Documentation for sitespeed.io
2
- ================
3
-
4
- First make sure you have Bundler: <code>gem install bundler</code>
5
-
6
- If you run on a Mac OS make sure you have xcode-select installed: <code>xcode-select --install</code>
7
-
8
- To run it locally: <code>bundle install && bundle exec jekyll serve --baseurl ''</code>
9
-
10
- Checkout http://localhost:4000/