Skip to content

chore(deps-dev): Bump web-vitals from 4.2.4 to 5.1.0 - #91

Open
dependabot[bot] wants to merge 2 commits into
mainfrom
dependabot/npm_and_yarn/web-vitals-5.1.0
Open

dependabot[bot] wants to merge 2 commits into
mainfrom
dependabot/npm_and_yarn/web-vitals-5.1.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 17, 2025 •

Copy link
Copy Markdown
Contributor

Bumps web-vitals from 4.2.4 to 5.1.0.

Changelog

Sourced from web-vitals's changelog.

v5.1.0 (2025-07-31)

  • Register visibility-change early (#637)
  • Only finalize LCP on user events (isTrusted=true) (#635)
  • Fallback to default getSelector if custom function is null or undefined (#634)

v5.0.3 (2025-06-11)

  • Remove visibilitychange event listeners when no longer required (#627)

v5.0.2 (2025-05-29)

  • Handle layout shifts with no sources (#623)

v5.0.1 (2025-05-13)

  • Fix missing FCP and LCP for prerendered pages (#621)

v5.0.0 (2025-05-07)

[!NOTE] See the upgrading to v5 guide for a complete list of all API changes in version 5.

  • [BREAKING] Remove the deprecated onFID() function (#519)
  • [BREAKING] Change browser support policy to Baseline Widely available (#525)
  • [BREAKING] Sort the classes that appear in attribution selectors to reduce cardinality (#518)
  • Extend INP attribution with extra LoAF information: longest script and buckets (#592)
  • Add support for generating custom targets in the attribution build (#585)
  • Support multiple calls to onINP() with different config options (#583)
  • Use visibility-state performance entries (#612)
  • Ensure idle callbacks don't run twice (#541) and (#548)
  • Cap nextPaintTime at processingStart (#540) and (#546)
  • Cap INP breakdowns to INP duration (#528)
  • Cap LCP load duration to LCP time (#527)
Commits
  • 1b872cf Release v5.1.0
  • f6cb466 Update CHANGELOG for 5.1.0
  • e5f6e2d Register visibility-change early (#637)
  • 1852851 Only finalize LCP on user events (isTrusted=true) (#635)
  • f16c4b4 Fallback to default getSelector if custom function is null or undefined (#634)
  • 8a54167 Release v5.0.3
  • 61f7c36 Update CHANGELOG for 5.0.3
  • e22d23b Remove visibiliytchange event listeners when no longer required (#627)
  • 1509d64 Upgrade examples in README to v5 (#626)
  • 463abbd Release v5.0.2
  • Additional commits viewable in compare view

Dependabot compatibility score

You can trigger a rebase of this PR by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

Summary by CodeRabbit

  • New Features
    • Performance monitoring now tracks Interaction to Next Paint (INP) instead of First Input Delay (FID), while continuing to track the other supported metrics.
  • Tests
    • Added coverage confirming that performance monitoring registers callbacks for all five supported metrics, including INP.

Bumps [web-vitals](https://github.com/GoogleChrome/web-vitals) from 4.2.4 to 5.1.0.
- [Changelog](https://github.com/GoogleChrome/web-vitals/blob/main/CHANGELOG.md)
- [Commits](GoogleChrome/web-vitals@v4.2.4...v5.1.0)

---
updated-dependencies:
- dependency-name: web-vitals
  dependency-version: 5.1.0
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot @github

dependabot Bot commented on behalf of github Nov 17, 2025

Copy link
Copy Markdown
Contributor Author

Assignees

The following users could not be added as assignees: GerdsenAI. Either the username does not exist or it does not have the correct permissions to be added as an assignee.

Please fix the above issues or remove invalid values from dependabot.yml.

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Nov 17, 2025

Copy link
Copy Markdown
Contributor

Blocking API migration: src/utils/performance.ts:1 still imports onFID and line 18 calls it. web-vitals 5 removed that export (also listed in this PR's breaking-change notes), so the application source is incompatible with the proposed dependency. Replace FID monitoring with onINP and update any metric handling/tests in the same PR, then type-check and build locally before merging.

Replace the removed onFID export and cover supported metric registration.
Validated locally: clean dependency installation, production build, and focused test.
Existing ChatInterface test failures remain unchanged; no Actions requested.
@coderabbitai

coderabbitai Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The web-vitals dependency range changes to ^5.1.0. Performance monitoring registers INP instead of FID. A test verifies that each supported metric registration function receives a callback.

Changes: Performance Monitoring

Layer / File(s) Summary
Update Web Vitals metric registration
package.json, src/utils/performance.ts, src/utils/__tests__/performance.test.ts
The dependency range changes to ^5.1.0, and initPerformanceMonitoring() registers INP instead of FID. The test checks that each supported metric registration function is called once with a callback.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Other

Suggested reviewers: claude

Merge Risk: Minimal · up to 5cd69

The performance monitoring migration is compatible with web-vitals 5.1.0 and is ready to merge.

Pre-merge checks: Passed 5

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title accurately identifies the web-vitals dependency update, which is a primary change in the pull request. It does not mention the related FID-to-INP migration, but the title remains clear and s…
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title accurately identifies the web-vitals dependency update, which is a primary change in the pull request. It does not mention the related FID-to-INP migration, but the title remains clear and sufficiently specific.

Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 2 files. (1 skipped: 1 unsupported.)

Finishing Touches

Generate docstrings

  • Commit to this branch
  • Create a new PR
Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 49392dd1-082e-4de6-bbbb-67e53196858f
Commits

Reviewing files that changed from the base of the PR and between 487731a and 5cd6981.

Files ignored due to path filters: 1

  • package-lock.json is excluded by !**/package-lock.json
Files selected for processing: 3

  • package.json
  • src/utils/__tests__/performance.test.ts
  • src/utils/performance.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

Copy link
Copy Markdown
Contributor

Fixed the removed onFID API in commit 5cd6981 by registering onINP, and added a regression test for all five supported metrics. Local validation on Node 24.22.1: clean npm ci --ignore-scripts passed; production npm run build passed; the new focused Vitest test passed. The original branch failed the build with TS2305 before the fix.

Holding merge: the full existing frontend suite has 13 failures, 29 passes, and 17 unhandled errors both before and after the fix, centered on ChatInterface/useMultiAI (models.filter on undefined). Those failures need resolution before this can be called fully validated. The commit uses [skip ci]; no GitHub Actions run was requested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant