sitespeed.io 37.8.0 → 38.0.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/docs/README.md ADDED
@@ -0,0 +1,10 @@
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/
package/eslint.config.mjs CHANGED
@@ -1,18 +1,7 @@
1
1
  import prettier from 'eslint-plugin-prettier';
2
2
  import unicorn from 'eslint-plugin-unicorn';
3
3
  import globals from 'globals';
4
- import path from 'node:path';
5
- import { fileURLToPath } from 'node:url';
6
4
  import js from '@eslint/js';
7
- import { FlatCompat } from '@eslint/eslintrc';
8
-
9
- const __filename = fileURLToPath(import.meta.url);
10
- const __dirname = path.dirname(__filename);
11
- const compat = new FlatCompat({
12
- baseDirectory: __dirname,
13
- recommendedConfig: js.configs.recommended,
14
- allConfig: js.configs.all
15
- });
16
5
 
17
6
  export default [
18
7
  {
@@ -28,11 +17,11 @@ export default [
28
17
  'test/prepostscripts/*'
29
18
  ]
30
19
  },
31
- ...compat.extends('eslint:recommended', 'plugin:unicorn/recommended'),
20
+ js.configs.recommended,
21
+ unicorn.configs.recommended,
32
22
  {
33
23
  plugins: {
34
- prettier,
35
- unicorn
24
+ prettier
36
25
  },
37
26
 
38
27
  languageOptions: {
package/lib/cli/cli.js CHANGED
@@ -64,7 +64,7 @@ try {
64
64
  function validateInput(argv) {
65
65
  // Check NodeJS major version
66
66
  const fullVersion = process.versions.node;
67
- const minVersion = 14;
67
+ const minVersion = 20;
68
68
  const majorVersion = fullVersion.split('.')[0];
69
69
  if (majorVersion < minVersion) {
70
70
  return (
@@ -505,12 +505,6 @@ export async function parseCommandLine() {
505
505
  describe: 'Collect Contentful Speed Index when you run --visualMetrics.',
506
506
  group: 'Browser'
507
507
  })
508
- .option('browsertime.visualMetricsPortable', {
509
- type: 'boolean',
510
- default: true,
511
- describe:
512
- 'Use the portable visual-metrics processing script (no ImageMagick dependencies).'
513
- })
514
508
  .option('browsertime.visualElements', {
515
509
  type: 'boolean',
516
510
  alias: ['visualElements'],
@@ -1,5 +1,6 @@
1
1
  import { parse } from 'node:url';
2
2
 
3
+ // eslint-disable-next-line unicorn/no-named-default
3
4
  import { default as _merge } from 'lodash.merge';
4
5
 
5
6
  import { getLogger } from '@sitespeed.io/log';
@@ -1,3 +1,4 @@
1
+ // eslint-disable-next-line unicorn/no-named-default
1
2
  import { default as _get } from 'lodash.get';
2
3
 
3
4
  export function get(object, property, defaultValue) {