---
title: "web-vitals 6.1.0 Breaking Changes on npm | Since.dev"
description: "What each web-vitals release removed, renamed or changed: 189 breaking changes in 13 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/web-vitals
last_updated: 2026-12-04
---

# web-vitals breaking changes

web-vitals 6.1.0 (August 5, 2026) is its newest release with breaking changes. The first: Signature changed attribution:onLCP. Every breaking API change we have recorded in web-vitals on npm: 189 breaking changes in 13 versions. Below, its 13 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `6.2.3`, released October 5, 2026. [Source repository](https://github.com/GoogleChrome/web-vitals)

Packages on npm run on Node.js. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

- From [5.3.0](#v-5-3-0) to [6.1.0](#v-6-1-0): 13 breaking changes in 2 versions.
- From [3.0.0](#v-3-0-0) to [6.1.0](#v-6-1-0): 171 breaking changes in 12 versions.

## web-vitals 6.1.0 breaking changes

web-vitals 6.1.0, released August 5, 2026: 1 breaking change.

- **Signature changed** `attribution:onLCP`  

Was const onLCP: (onReport: (metric: LCPMetricWithAttribution) => void, opts?: AttributionReportOpts) => void; now const onLCP: (onReport: (metric: LCPMetricWithAttribution) => void, opts?: LCPAttributionReportOpts) => void. [npmjs.com](https://www.npmjs.com/package/web-vitals/v/6.1.0)

## web-vitals 6.0.0 breaking changes

web-vitals 6.0.0, released July 21, 2026: 12 breaking changes.

- **Removed**  

Modules that were not needed under tsconfig verbatimModuleSyntax were removed. Code that imports them must stop doing so. [github.com](https://github.com/GoogleChrome/web-vitals/blob/v6.0.0/CHANGELOG.md)
- **Behavior changed**  

The RequestIdleCallback wait is now capped at 1 second so metrics report even when the page is busy. [github.com](https://github.com/GoogleChrome/web-vitals/blob/v6.0.0/CHANGELOG.md)
- **Default changed** `includeProcessedEventEntries`  

The includeProcessedEventEntries option now defaults to false. Code that relied on the old true default must set it explicitly. [github.com](https://github.com/GoogleChrome/web-vitals/blob/v6.0.0/CHANGELOG.md)
- **Signature changed** `FCPAttribution.navigationEntry`  

Was navigationEntry?: PerformanceNavigationTiming; now navigationEntry?: PerformanceNavigationTiming | PerformanceSoftNavigation. [npmjs.com](https://www.npmjs.com/package/web-vitals/v/6.0.0)
- **Signature changed** `INPAttribution.interactionTarget`  

Was interactionTarget: string; now interactionTarget?: string. [npmjs.com](https://www.npmjs.com/package/web-vitals/v/6.0.0)
- **Signature changed** `INPAttribution.interactionTime`  

Was interactionTime: DOMHighResTimeStamp; now interactionTime?: DOMHighResTimeStamp. [npmjs.com](https://www.npmjs.com/package/web-vitals/v/6.0.0)
- **Signature changed** `INPAttribution.interactionType`  

Was interactionType: 'pointer' | 'keyboard'; now interactionType?: 'pointer' | 'keyboard'. [npmjs.com](https://www.npmjs.com/package/web-vitals/v/6.0.0)
- **Signature changed** `INPAttribution.nextPaintTime`  

Was nextPaintTime: DOMHighResTimeStamp; now nextPaintTime?: DOMHighResTimeStamp. [npmjs.com](https://www.npmjs.com/package/web-vitals/v/6.0.0)
- **Signature changed** `LCPAttribution.navigationEntry`  

Was navigationEntry?: PerformanceNavigationTiming; now navigationEntry?: PerformanceNavigationTiming | PerformanceSoftNavigation. [npmjs.com](https://www.npmjs.com/package/web-vitals/v/6.0.0)
- **Signature changed** `Metric.navigationType`  

Was navigationType: 'navigate' | 'reload' | 'back-forward' | 'back-forward-cache' | 'prerender' | 'restore'; now navigationType: 'navigate' | 'reload' | 'back-forward' | 'back-forward-cache' | 'prerender' | 'restore' | 'soft-navigation'. [npmjs.com](https://www.npmjs.com/package/web-vitals/v/6.0.0)

And 2 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## web-vitals 5.3.0 breaking changes

web-vitals 5.3.0, released May 28, 2026: 1 breaking change.

- **Removed** `getFirstHiddenTimePolyfill`  

The getFirstHiddenTimePolyfill export is removed in this release, so code that imports or calls it must be updated. [github.com](https://github.com/GoogleChrome/web-vitals/blob/v5.3.0/CHANGELOG.md)

## web-vitals 5.2.0 breaking changes

web-vitals 5.2.0, released March 25, 2026: 2 breaking changes.

- **Removed** `FirstInputPolyfillCallback`  

FirstInputPolyfillCallback was removed in web-vitals 5.2.0 [npmjs.com](https://www.npmjs.com/package/web-vitals/v/5.2.0)
- **Removed** `FirstInputPolyfillEntry`  

FirstInputPolyfillEntry was removed in web-vitals 5.2.0 [npmjs.com](https://www.npmjs.com/package/web-vitals/v/5.2.0)

## web-vitals 5.1.0 breaking changes

web-vitals 5.1.0, released July 31, 2025: 2 breaking changes.

- **Behavior changed**  

Largest Contentful Paint is now finalized only on user events (isTrusted=true). Untrusted synthetic events no longer finalize it, so code relying on those events must change. [github.com](https://github.com/GoogleChrome/web-vitals/blob/v5.1.0/CHANGELOG.md)
- **Signature changed** `AttributionReportOpts.generateTarget`  

Was generateTarget?: (el: Node | null) => string; now generateTarget?: (el: Node | null) => string | undefined. [npmjs.com](https://www.npmjs.com/package/web-vitals/v/5.1.0)

## web-vitals 5.0.0 breaking changes

web-vitals 5.0.0, released May 7, 2025: 21 breaking changes.

- **Removed** `attribution:onFID`  

onFID was removed in web-vitals 5.0.0 [npmjs.com](https://www.npmjs.com/package/web-vitals/v/5.0.0)
- **Removed** `attribution/onINP.js:interactionTargetMap`  

interactionTargetMap was removed in web-vitals 5.0.0 [npmjs.com](https://www.npmjs.com/package/web-vitals/v/5.0.0)
- **Removed** `FIDAttribution`  

FIDAttribution was removed in web-vitals 5.0.0 [npmjs.com](https://www.npmjs.com/package/web-vitals/v/5.0.0)
- **Removed** `FIDMetric`  

FIDMetric was removed in web-vitals 5.0.0 [npmjs.com](https://www.npmjs.com/package/web-vitals/v/5.0.0)
- **Removed** `FIDMetricWithAttribution`  

FIDMetricWithAttribution was removed in web-vitals 5.0.0 [npmjs.com](https://www.npmjs.com/package/web-vitals/v/5.0.0)
- **Removed** `FIDThresholds`  

FIDThresholds was removed in web-vitals 5.0.0 [npmjs.com](https://www.npmjs.com/package/web-vitals/v/5.0.0)
- **Removed** `INPAttribution.interactionTargetElement`  

INPAttribution.interactionTargetElement was removed in web-vitals 5.0.0 [npmjs.com](https://www.npmjs.com/package/web-vitals/v/5.0.0)
- **Removed** `LCPAttribution.element`  

LCPAttribution.element was removed in web-vitals 5.0.0 [npmjs.com](https://www.npmjs.com/package/web-vitals/v/5.0.0)
- **Removed** `onFID`  

The deprecated onFID() function is removed in v5.0.0. Code that calls it will break and must stop using it. [npmjs.com](https://www.npmjs.com/package/web-vitals/v/5.0.0)
- **Removed** `ReportOpts.durationThreshold`  

ReportOpts.durationThreshold was removed in web-vitals 5.0.0 [npmjs.com](https://www.npmjs.com/package/web-vitals/v/5.0.0)

And 11 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## Older versions

7 older versions, each with its first changes. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

### web-vitals 4.0.0 breaking changes

web-vitals 4.0.0, released May 13, 2024: 98 breaking changes.

- **Removed**  

APIs that were deprecated in earlier releases have been removed. Code still calling them will no longer work. [github.com](https://github.com/GoogleChrome/web-vitals/blob/v4.0.0/CHANGELOG.md)
- **Removed** `base:CLSAttribution`  

CLSAttribution was removed in web-vitals 4.0.0 [npmjs.com](https://www.npmjs.com/package/web-vitals/v/4.0.0)

And 96 more in this version.

### web-vitals 3.5.0 breaking changes

web-vitals 3.5.0, released September 28, 2023: 1 breaking change.

- **Behavior changed** `onLCP`  

The onLCP callback is now run in a separate task, so when it fires relative to other code changes. Check any code that depends on its timing. [github.com](https://github.com/GoogleChrome/web-vitals/blob/v3.5.0/CHANGELOG.md)

### web-vitals 3.4.0 breaking changes

web-vitals 3.4.0, released July 10, 2023: 22 breaking changes.

- **Removed** `ReportCallbackWithAttribution`  

ReportCallbackWithAttribution was removed in web-vitals 3.4.0 [npmjs.com](https://www.npmjs.com/package/web-vitals/v/3.4.0)
- **Signature changed** `CLSReportCallback`  

Was interface CLSReportCallback extends ReportCallback; now interface CLSReportCallback. [npmjs.com](https://www.npmjs.com/package/web-vitals/v/3.4.0)

And 20 more in this version.

### web-vitals 3.3.2 breaking changes

web-vitals 3.3.2, released May 29, 2023: 6 breaking changes.

- **Signature changed** `CLSReportCallbackWithAttribution`  

Was interface CLSReportCallbackWithAttribution extends CLSReportCallback; now interface CLSReportCallbackWithAttribution extends ReportCallbackWithAttribution. [npmjs.com](https://www.npmjs.com/package/web-vitals/v/3.3.2)
- **Signature changed** `FCPReportCallbackWithAttribution`  

Was interface FCPReportCallbackWithAttribution extends FCPReportCallback; now interface FCPReportCallbackWithAttribution extends ReportCallbackWithAttribution. [npmjs.com](https://www.npmjs.com/package/web-vitals/v/3.3.2)

And 4 more in this version.

### web-vitals 3.1.0 breaking changes

web-vitals 3.1.0, released November 16, 2022: 4 breaking changes.

- **Behavior changed**  

Performance observers are now set up after page activation rather than immediately, so metric callbacks may fire at a different time. [github.com](https://github.com/GoogleChrome/web-vitals/blob/v3.1.0/CHANGELOG.md)
- **Behavior changed**  

Observer callbacks now run later than before, so code that depends on their exact timing may behave differently. [github.com](https://github.com/GoogleChrome/web-vitals/blob/v3.1.0/CHANGELOG.md)

And 2 more in this version.

### web-vitals 3.0.4 breaking changes

web-vitals 3.0.4, released October 19, 2022: 1 breaking change.

- **Behavior changed**  

Largest Contentful Paint and First Contentful Paint are now reported as 0 for prerendered pages, so code that reads these values will see different numbers for those pages. [github.com](https://github.com/GoogleChrome/web-vitals/blob/v3.0.4/CHANGELOG.md)

### web-vitals 3.0.0 breaking changes

web-vitals 3.0.0, released August 24, 2022: 18 breaking changes.

- **Removed** `FirstInputPolyfillEntry.cancelable`  

FirstInputPolyfillEntry.cancelable was removed in web-vitals 3.0.0 [npmjs.com](https://www.npmjs.com/package/web-vitals/v/3.0.0)
- **Removed** `FirstInputPolyfillEntry.processingStart`  

FirstInputPolyfillEntry.processingStart was removed in web-vitals 3.0.0 [npmjs.com](https://www.npmjs.com/package/web-vitals/v/3.0.0)

And 16 more in this version.

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
