Skip to content

Conversation

@tunetheweb
Copy link
Member

Fixes #633

@tunetheweb tunetheweb merged commit f16c4b4 into main Jul 15, 2025
9 checks passed
@tunetheweb tunetheweb deleted the generate-target-fallback branch July 15, 2025 07:14
logaretm added a commit to getsentry/sentry-javascript that referenced this pull request Nov 18, 2025
Bumps the vendored-in web vitals library to include the changes between
`5.0.2` <-> `5.1.0` from upstream

#### Changes from upstream

- Remove `visibilitychange` event listeners when no longer required
[#627](GoogleChrome/web-vitals#627)
- Register visibility-change early
[#637](GoogleChrome/web-vitals#637)
- Only finalize LCP on user events (isTrusted=true)
[#635](GoogleChrome/web-vitals#635)
- Fallback to default getSelector if custom function is null or
undefined [#634](GoogleChrome/web-vitals#634)

#### Our own Changes

- Added `addPageListener` and `removePageListener` utilities because the
upstream package changed the listeners to be added on `window` instead
of `document`, so I added those utilities to avoid having to check for
window every time we try to add a listener.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

generateTarget is not ergnomic to use

2 participants