lighthouse 13.6.0-dev.20261111 → 13.6.0-dev.20261116
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/.agents/skills/update-ard-port/SKILL.md +1 -1
- package/cli/bin.js +8 -3
- package/cli/open-file.d.ts +7 -0
- package/cli/open-file.js +48 -0
- package/cli/printer.js +1 -1
- package/cli/run.js +6 -4
- package/cli/sentry-prompt.js +2 -1
- package/cli/test/smokehouse/frontends/smokehouse-bin.js +1 -1
- package/cli/test/smokehouse/lighthouse-runners/cli.js +1 -2
- package/cli/test/smokehouse/report-assert.js +1 -2
- package/cli/test/smokehouse/smokehouse.js +1 -2
- package/core/audits/autocomplete.js +1 -2
- package/core/audits/bootup-time.js +1 -2
- package/core/audits/errors-in-console.js +1 -2
- package/core/audits/mainthread-work-breakdown.js +1 -2
- package/core/audits/metrics.d.ts +2 -2
- package/core/audits/metrics.js +1 -1
- package/core/computed/computed-artifact.js +1 -2
- package/core/computed/entity-classification.d.ts +3 -3
- package/core/computed/entity-classification.js +5 -3
- package/core/computed/js-bundles.js +1 -2
- package/core/computed/load-simulator.d.ts +5 -3
- package/core/computed/load-simulator.js +9 -2
- package/core/computed/metrics/responsiveness.d.ts +5 -3
- package/core/computed/metrics/responsiveness.js +1 -1
- package/core/computed/metrics/time-to-first-byte.js +3 -1
- package/core/computed/metrics/timing-summary.d.ts +7 -5
- package/core/computed/metrics/timing-summary.js +3 -4
- package/core/computed/navigation-insights.d.ts +5 -3
- package/core/computed/navigation-insights.js +1 -1
- package/core/computed/network-analysis.js +1 -2
- package/core/computed/page-dependency-graph.d.ts +5 -3
- package/core/computed/page-dependency-graph.js +1 -1
- package/core/computed/trace-engine-result.d.ts +7 -5
- package/core/computed/trace-engine-result.js +9 -5
- package/core/computed/unused-css.d.ts +2 -2
- package/core/computed/unused-css.js +1 -1
- package/core/config/config.js +1 -2
- package/core/gather/base-artifacts.js +1 -2
- package/core/gather/driver/environment.js +1 -2
- package/core/gather/driver/execution-context.js +2 -0
- package/core/gather/driver/navigation.js +1 -2
- package/core/gather/driver/network-monitor.js +1 -2
- package/core/gather/driver/prepare.js +1 -2
- package/core/gather/driver/storage.js +1 -2
- package/core/gather/driver/target-manager.js +1 -2
- package/core/gather/driver/wait-for-condition.js +6 -5
- package/core/gather/driver.js +1 -2
- package/core/gather/gatherers/agentic/ard.js +1 -1
- package/core/gather/gatherers/agentic/llms-txt.js +1 -2
- package/core/gather/gatherers/css-usage.js +5 -1
- package/core/gather/gatherers/image-elements.js +1 -2
- package/core/gather/gatherers/seo/robots-txt.js +1 -2
- package/core/gather/gatherers/stacks.js +1 -2
- package/core/gather/gatherers/stylesheets.js +10 -3
- package/core/gather/navigation-runner.js +1 -1
- package/core/gather/runner-helpers.js +1 -2
- package/core/gather/session.js +1 -2
- package/core/gather/snapshot-runner.js +1 -2
- package/core/gather/timespan-runner.js +1 -2
- package/core/lib/asset-saver.js +1 -2
- package/core/lib/csp-evaluator.js +1 -1
- package/core/lib/i18n/i18n.js +1 -2
- package/core/lib/lantern-trace-saver.js +19 -13
- package/core/lib/lighthouse-logger.d.ts +127 -0
- package/core/lib/lighthouse-logger.js +319 -0
- package/core/lib/median-run.d.ts +16 -6
- package/core/lib/median-run.js +13 -6
- package/core/lib/network-recorder.js +1 -2
- package/core/lib/network-request.d.ts +2 -2
- package/core/lib/network-request.js +1 -1
- package/core/lib/page-functions.js +4 -3
- package/core/lib/script-helpers.d.ts +23 -8
- package/core/lib/script-helpers.js +7 -6
- package/core/lib/sentry-reporter.d.ts +59 -0
- package/core/lib/sentry-reporter.js +281 -0
- package/core/lib/sentry.d.ts +7 -7
- package/core/lib/sentry.js +31 -39
- package/core/lib/stack-packs.js +1 -1
- package/core/lib/timing-trace-saver.d.ts +2 -2
- package/core/lib/timing-trace-saver.js +1 -1
- package/core/lib/tracehouse/main-thread-tasks.d.ts +7 -0
- package/core/lib/tracehouse/main-thread-tasks.js +18 -6
- package/core/lib/tracehouse/task-summary.d.ts +16 -4
- package/core/lib/tracehouse/task-summary.js +6 -5
- package/core/lib/tracehouse/trace-processor.d.ts +6 -6
- package/core/lib/tracehouse/trace-processor.js +1 -1
- package/core/lib/traces/metric-trace-events.js +1 -2
- package/core/lib/url-utils.d.ts +4 -4
- package/core/lib/url-utils.js +1 -1
- package/core/runner.js +1 -2
- package/dist/report/bundle.esm.js +10 -10
- package/dist/report/flow.js +13 -13
- package/dist/report/standalone.js +11 -11
- package/package.json +9 -12
- package/report/renderer/text-encoding.d.ts +3 -5
- package/report/renderer/text-encoding.js +19 -33
- package/report/types/augment-dom.d.ts +0 -4
- package/shared/util.js +10 -2
- package/third-party/ard/README.md +2 -2
- package/third-party/ard/ard.js +1 -1
- package/third-party/ard/schema-validator.js +42 -2
- package/tsconfig.json +2 -42
- package/types/artifacts.d.ts +7 -1
- package/types/internal/node.d.ts +1 -0
- package/types/internal/test.d.ts +5 -0
- package/report/types/buffer.d.ts +0 -19
|
@@ -91,7 +91,7 @@ export class TraceProcessor {
|
|
|
91
91
|
* @param {LH.TraceEvent[]} traceEvents
|
|
92
92
|
* @param {(e: LH.TraceEvent) => boolean} filter
|
|
93
93
|
*/
|
|
94
|
-
static filteredTraceSort(traceEvents: LH.TraceEvent[], filter: (e: LH.TraceEvent) => boolean): import("
|
|
94
|
+
static filteredTraceSort(traceEvents: LH.TraceEvent[], filter: (e: LH.TraceEvent) => boolean): import("../../index.js").TraceEvent[];
|
|
95
95
|
/**
|
|
96
96
|
* There should *always* be at least one top level event, having 0 typically means something is
|
|
97
97
|
* drastically wrong with the trace and we should just give up early and loudly.
|
|
@@ -283,12 +283,12 @@ export class TraceProcessor {
|
|
|
283
283
|
}): {
|
|
284
284
|
timings: TraceNavigationTimesForFrame;
|
|
285
285
|
timestamps: TraceNavigationTimesForFrame;
|
|
286
|
-
timeOriginEvt: import("
|
|
287
|
-
firstPaintEvt: import("
|
|
288
|
-
firstContentfulPaintEvt: import("
|
|
286
|
+
timeOriginEvt: import("../../index.js").TraceEvent;
|
|
287
|
+
firstPaintEvt: import("../../index.js").TraceEvent | undefined;
|
|
288
|
+
firstContentfulPaintEvt: import("../../index.js").TraceEvent;
|
|
289
289
|
largestContentfulPaintEvt: LCPEvent | undefined;
|
|
290
|
-
loadEvt: import("
|
|
291
|
-
domContentLoadedEvt: import("
|
|
290
|
+
loadEvt: import("../../index.js").TraceEvent | undefined;
|
|
291
|
+
domContentLoadedEvt: import("../../index.js").TraceEvent | undefined;
|
|
292
292
|
lcpInvalidated: boolean;
|
|
293
293
|
lcpImageUrl: string | undefined;
|
|
294
294
|
};
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
/** @typedef {Omit<LH.TraceEvent, 'name'|'args'> & {name: 'largestContentfulPaint::Invalidate'|'largestContentfulPaint::Candidate', args: {data?: {size?: number, nodeId?: number, type?: string}, frame: string}}} LCPEvent */
|
|
22
22
|
/** @typedef {Omit<LH.TraceEvent, 'name'|'args'> & {name: 'largestContentfulPaint::Candidate', args: {data: {size: number, nodeId?: number, type?: string}, frame: string}}} LCPCandidateEvent */
|
|
23
23
|
|
|
24
|
-
import log from 'lighthouse-logger';
|
|
24
|
+
import log from '../lighthouse-logger.js';
|
|
25
25
|
|
|
26
26
|
const ACCEPTABLE_NAVIGATION_URL_REGEX = /^(chrome|https?):/;
|
|
27
27
|
|
package/core/lib/url-utils.d.ts
CHANGED
|
@@ -38,13 +38,13 @@ declare class UrlUtils {
|
|
|
38
38
|
static rootDomainsMatch(urlA: string | URL, urlB: string | URL): boolean;
|
|
39
39
|
/**
|
|
40
40
|
* @param {string} url
|
|
41
|
-
* @param {{numPathParts
|
|
41
|
+
* @param {{numPathParts?: number, preserveQuery?: boolean, preserveHost?: boolean}=} options
|
|
42
42
|
* @return {string}
|
|
43
43
|
*/
|
|
44
44
|
static getURLDisplayName(url: string, options?: {
|
|
45
|
-
numPathParts
|
|
46
|
-
preserveQuery
|
|
47
|
-
preserveHost
|
|
45
|
+
numPathParts?: number;
|
|
46
|
+
preserveQuery?: boolean;
|
|
47
|
+
preserveHost?: boolean;
|
|
48
48
|
} | undefined): string;
|
|
49
49
|
/**
|
|
50
50
|
* Limits data URIs to 100 characters, returns all other strings untouched.
|
package/core/lib/url-utils.js
CHANGED
|
@@ -140,7 +140,7 @@ class UrlUtils {
|
|
|
140
140
|
|
|
141
141
|
/**
|
|
142
142
|
* @param {string} url
|
|
143
|
-
* @param {{numPathParts
|
|
143
|
+
* @param {{numPathParts?: number, preserveQuery?: boolean, preserveHost?: boolean}=} options
|
|
144
144
|
* @return {string}
|
|
145
145
|
*/
|
|
146
146
|
static getURLDisplayName(url, options) {
|
package/core/runner.js
CHANGED
|
@@ -8,8 +8,7 @@ import fs from 'fs';
|
|
|
8
8
|
import path from 'path';
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
import log from 'lighthouse-logger';
|
|
12
|
-
|
|
11
|
+
import log from './lib/lighthouse-logger.js';
|
|
13
12
|
import {ReportScoring} from './scoring.js';
|
|
14
13
|
import {Audit} from './audits/audit.js';
|
|
15
14
|
import * as format from '../shared/localization/format.js';
|