@code-pushup/lighthouse-plugin 0.53.0 → 0.54.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/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  // packages/plugin-lighthouse/package.json
2
2
  var name = "@code-pushup/lighthouse-plugin";
3
- var version = "0.53.0";
3
+ var version = "0.54.0";
4
4
 
5
5
  // packages/plugin-lighthouse/src/lib/constants.ts
6
6
  import { DEFAULT_FLAGS } from "chrome-launcher/dist/flags.js";
@@ -20,7 +20,7 @@ var MAX_ISSUE_MESSAGE_LENGTH = 1024;
20
20
  var slugRegex = /^[a-z\d]+(?:-[a-z\d]+)*$/;
21
21
  var filenameRegex = /^(?!.*[ \\/:*?"<>|]).+$/;
22
22
  function hasDuplicateStrings(strings) {
23
- const sortedStrings = [...strings].sort();
23
+ const sortedStrings = strings.toSorted();
24
24
  const duplStrings = sortedStrings.filter(
25
25
  (item, index) => index !== 0 && item === sortedStrings[index - 1]
26
26
  );
@@ -114,7 +114,6 @@ var fileNameSchema = z.string().trim().regex(filenameRegex, {
114
114
  message: `The filename has to be valid`
115
115
  }).min(1, { message: "file name is invalid" });
116
116
  var positiveIntSchema = z.number().int().positive();
117
- var nonnegativeIntSchema = z.number().int().nonnegative();
118
117
  var nonnegativeNumberSchema = z.number().nonnegative();
119
118
  function packageVersionSchema(options) {
120
119
  const { versionDescription = "NPM version of the package", required } = options ?? {};
@@ -661,7 +660,7 @@ var auditDiffSchema = scorableWithPluginDiffSchema.merge(
661
660
  z16.object({
662
661
  values: makeComparisonSchema(auditValueSchema).merge(
663
662
  z16.object({
664
- diff: z16.number().int().describe("Value change (`values.after - values.before`)")
663
+ diff: z16.number().describe("Value change (`values.after - values.before`)")
665
664
  })
666
665
  ).describe("Audit `value` comparison"),
667
666
  displayValues: makeComparisonSchema(auditDisplayValueSchema).describe(
package/package.json CHANGED
@@ -1,29 +1,48 @@
1
1
  {
2
2
  "name": "@code-pushup/lighthouse-plugin",
3
- "version": "0.53.0",
3
+ "version": "0.54.0",
4
4
  "license": "MIT",
5
5
  "description": "Code PushUp plugin for measuring web performance and quality with Lighthouse 🔥",
6
- "dependencies": {
7
- "@code-pushup/models": "0.53.0",
8
- "@code-pushup/utils": "0.53.0",
9
- "ansis": "^3.3.0",
10
- "chrome-launcher": "^1.1.1",
11
- "lighthouse": "^12.0.0",
12
- "lighthouse-logger": "2.0.1"
13
- },
14
6
  "homepage": "https://github.com/code-pushup/cli/tree/main/packages/plugin-lighthouse#readme",
15
7
  "bugs": {
16
- "url": "https://github.com/code-pushup/cli/issues"
8
+ "url": "https://github.com/code-pushup/cli/issues?q=is%3Aissue%20state%3Aopen%20type%3ABug%20label%3A\"🧩%20lighthouse-plugin\""
17
9
  },
18
10
  "repository": {
19
11
  "type": "git",
20
12
  "url": "git+https://github.com/code-pushup/cli.git",
21
13
  "directory": "packages/plugin-lighthouse"
22
14
  },
15
+ "keywords": [
16
+ "CLI",
17
+ "Code PushUp",
18
+ "plugin",
19
+ "lighthouse",
20
+ "automation",
21
+ "actionable feedback",
22
+ "runtime analysis",
23
+ "audit",
24
+ "accessibility",
25
+ "performance",
26
+ "score monitoring",
27
+ "developer tools",
28
+ "conformance",
29
+ "KPI tracking",
30
+ "tech debt",
31
+ "automated feedback",
32
+ "regression guard"
33
+ ],
23
34
  "publishConfig": {
24
35
  "access": "public"
25
36
  },
26
37
  "type": "module",
27
38
  "main": "./index.js",
28
- "types": "./src/index.d.ts"
29
- }
39
+ "types": "./src/index.d.ts",
40
+ "dependencies": {
41
+ "@code-pushup/models": "0.54.0",
42
+ "@code-pushup/utils": "0.54.0",
43
+ "ansis": "^3.3.0",
44
+ "chrome-launcher": "^1.1.1",
45
+ "lighthouse": "^12.0.0",
46
+ "lighthouse-logger": "2.0.1"
47
+ }
48
+ }
@@ -1,4 +0,0 @@
1
- export type DOM = {
2
- append: (v: string) => string;
3
- createComponent: (type: 'crcChain', opt: Record<string, unknown>) => string;
4
- };