web-vitals breaking changes
Updated December 4, 2026
On this page
Latest version 6.2.3, released October 5, 2026. Source repository
Packages on npm run on Node.js. Node.js end of life dates.
- From 5.3.0 to 6.1.0: 13 breaking changes in 2 versions.
- From 3.0.0 to 6.1.0: 171 breaking changes in 12 versions.
web-vitals 6.1.0 breaking changes
- 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
web-vitals 6.0.0 breaking changes
- Removed
Modules that were not needed under tsconfig verbatimModuleSyntax were removed. Code that imports them must stop doing so. github.com - Behavior changed
The RequestIdleCallback wait is now capped at 1 second so metrics report even when the page is busy. github.com - Default changed
includeProcessedEventEntries
The includeProcessedEventEntries option now defaults to false. Code that relied on the old true default must set it explicitly. github.com - Signature changed
FCPAttribution.navigationEntry
Was navigationEntry?: PerformanceNavigationTiming; now navigationEntry?: PerformanceNavigationTiming | PerformanceSoftNavigation. npmjs.com - Signature changed
INPAttribution.interactionTarget
Was interactionTarget: string; now interactionTarget?: string. npmjs.com - Signature changed
INPAttribution.interactionTime
Was interactionTime: DOMHighResTimeStamp; now interactionTime?: DOMHighResTimeStamp. npmjs.com - Signature changed
INPAttribution.interactionType
Was interactionType: 'pointer' | 'keyboard'; now interactionType?: 'pointer' | 'keyboard'. npmjs.com - Signature changed
INPAttribution.nextPaintTime
Was nextPaintTime: DOMHighResTimeStamp; now nextPaintTime?: DOMHighResTimeStamp. npmjs.com - Signature changed
LCPAttribution.navigationEntry
Was navigationEntry?: PerformanceNavigationTiming; now navigationEntry?: PerformanceNavigationTiming | PerformanceSoftNavigation. npmjs.com - 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
And 2 more in this version. Sign up to see every change
web-vitals 5.3.0 breaking changes
- Removed
getFirstHiddenTimePolyfill
The getFirstHiddenTimePolyfill export is removed in this release, so code that imports or calls it must be updated. github.com
web-vitals 5.2.0 breaking changes
- Removed
FirstInputPolyfillCallback
FirstInputPolyfillCallback was removed in web-vitals 5.2.0 npmjs.com - Removed
FirstInputPolyfillEntry
FirstInputPolyfillEntry was removed in web-vitals 5.2.0 npmjs.com
web-vitals 5.1.0 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 - Signature changed
AttributionReportOpts.generateTarget
Was generateTarget?: (el: Node | null) => string; now generateTarget?: (el: Node | null) => string | undefined. npmjs.com
web-vitals 5.0.0 breaking changes
- Removed
attribution:onFID
onFID was removed in web-vitals 5.0.0 npmjs.com - Removed
attribution/onINP.js:interactionTargetMap
interactionTargetMap was removed in web-vitals 5.0.0 npmjs.com - Removed
FIDAttribution
FIDAttribution was removed in web-vitals 5.0.0 npmjs.com - Removed
FIDMetric
FIDMetric was removed in web-vitals 5.0.0 npmjs.com - Removed
FIDMetricWithAttribution
FIDMetricWithAttribution was removed in web-vitals 5.0.0 npmjs.com - Removed
FIDThresholds
FIDThresholds was removed in web-vitals 5.0.0 npmjs.com - Removed
INPAttribution.interactionTargetElement
INPAttribution.interactionTargetElement was removed in web-vitals 5.0.0 npmjs.com - Removed
LCPAttribution.element
LCPAttribution.element was removed in web-vitals 5.0.0 npmjs.com - 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 - Removed
ReportOpts.durationThreshold
ReportOpts.durationThreshold was removed in web-vitals 5.0.0 npmjs.com
And 11 more in this version. Sign up to see every change
Older versions
7 older versions, each with its first changes. Sign up to see every change
Show 7 older versions
web-vitals 4.0.0 breaking changes
- Removed
APIs that were deprecated in earlier releases have been removed. Code still calling them will no longer work. github.com - Removed
base:CLSAttribution
CLSAttribution was removed in web-vitals 4.0.0 npmjs.com
And 96 more in this version.
web-vitals 3.5.0 breaking changes
- 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
web-vitals 3.4.0 breaking changes
- Removed
ReportCallbackWithAttribution
ReportCallbackWithAttribution was removed in web-vitals 3.4.0 npmjs.com - Signature changed
CLSReportCallback
Was interface CLSReportCallback extends ReportCallback; now interface CLSReportCallback. npmjs.com
And 20 more in this version.
web-vitals 3.3.2 breaking changes
- Signature changed
CLSReportCallbackWithAttribution
Was interface CLSReportCallbackWithAttribution extends CLSReportCallback; now interface CLSReportCallbackWithAttribution extends ReportCallbackWithAttribution. npmjs.com - Signature changed
FCPReportCallbackWithAttribution
Was interface FCPReportCallbackWithAttribution extends FCPReportCallback; now interface FCPReportCallbackWithAttribution extends ReportCallbackWithAttribution. npmjs.com
And 4 more in this version.
web-vitals 3.1.0 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 - Behavior changed
Observer callbacks now run later than before, so code that depends on their exact timing may behave differently. github.com
And 2 more in this version.
web-vitals 3.0.4 breaking changes
- 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
web-vitals 3.0.0 breaking changes
- Removed
FirstInputPolyfillEntry.cancelable
FirstInputPolyfillEntry.cancelable was removed in web-vitals 3.0.0 npmjs.com - Removed
FirstInputPolyfillEntry.processingStart
FirstInputPolyfillEntry.processingStart was removed in web-vitals 3.0.0 npmjs.com
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, or have your coding agent call check_code with your manifest or lockfile over MCP. The 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.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.