sitespeed.io 37.0.1 → 37.0.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 +4 -1
- package/lib/cli/pluginOptions.js +13 -6
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
|
|
2
2
|
# CHANGELOG - sitespeed.io (we use [semantic versioning](https://semver.org))
|
|
3
3
|
|
|
4
|
+
## 37.0.2 - 2025-03-05
|
|
5
|
+
### Fixed
|
|
6
|
+
* Another fix for using --help and load plugins correctly [#4465](https://github.com/sitespeedio/sitespeed.io/pull/4465).
|
|
7
|
+
|
|
4
8
|
## 37.0.1 - 2025-03-05
|
|
5
9
|
### Fixed
|
|
6
10
|
* There was a bug in the InfluxDB plugin and loading the cli parameters failed [#4463](https://github.com/sitespeedio/sitespeed.io/pull/4463).
|
|
7
11
|
|
|
8
|
-
|
|
9
12
|
## 37.0.0 - 2025-03-05
|
|
10
13
|
### Breaking change
|
|
11
14
|
* If you are a InfluxDB user the InfluxDB functionality been moved to a standalone plugin [plugin-influxdb](https://github.com/sitespeedio/plugin-influxdb). This means if that sitespeed.io using NodeJS and the default Docker container will not include the InfluxDB plugin. The +1 container will still include the plugin but you need to add it with `--plugins.add @sitespeed.io/plugin-influxdb` for it to be able to run.
|
package/lib/cli/pluginOptions.js
CHANGED
|
@@ -11,16 +11,23 @@ export async function registerPluginOptions(yargsInstance, plugins) {
|
|
|
11
11
|
for (const pluginName of plugins) {
|
|
12
12
|
try {
|
|
13
13
|
// Dynamically import the plugin
|
|
14
|
-
let
|
|
14
|
+
let plugin = await importGlobalSilent(pluginName);
|
|
15
15
|
// If the plugin exports a function to get CLI options, merge them
|
|
16
|
-
if (
|
|
17
|
-
|
|
16
|
+
if (
|
|
17
|
+
plugin &&
|
|
18
|
+
plugin.default & (typeof plugin.default.getCliOptions === 'function')
|
|
19
|
+
) {
|
|
20
|
+
const options = plugin.default.getCliOptions();
|
|
18
21
|
yargsInstance.options(options);
|
|
19
22
|
} else {
|
|
20
23
|
try {
|
|
21
|
-
const
|
|
22
|
-
if (
|
|
23
|
-
|
|
24
|
+
const plugin = await import(pluginName);
|
|
25
|
+
if (
|
|
26
|
+
plugin &&
|
|
27
|
+
plugin.default &&
|
|
28
|
+
typeof plugin.default.getCliOptions === 'function'
|
|
29
|
+
) {
|
|
30
|
+
const options = plugin.default.getCliOptions();
|
|
24
31
|
yargsInstance.options(options);
|
|
25
32
|
}
|
|
26
33
|
} catch {
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sitespeed.io",
|
|
3
|
-
"version": "37.0.
|
|
3
|
+
"version": "37.0.2",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "sitespeed.io",
|
|
9
|
-
"version": "37.0.
|
|
9
|
+
"version": "37.0.2",
|
|
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.
|
|
8
|
+
"version": "37.0.2",
|
|
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",
|