Skip to content

Release/4.4.0#1415

Merged
Greg Leonard (greg-el) merged 4 commits intomasterfrom
release/4.4.0
Mar 20, 2025
Merged

Release/4.4.0#1415
Greg Leonard (greg-el) merged 4 commits intomasterfrom
release/4.4.0

Conversation

@greg-el
Copy link
Copy Markdown
Contributor

  • Bump web-vitals version
  • Allow for usage of snowplow callback without this
  • Add react-native-get-random-values as a peer dependency in the React Native tracker

From ~3 to ~4. Also make the metric interfaces optional in preparation for v5, which will remove the (deprecated in v4) `onFID` method.

The FID metric is already optional in the [schema](https://iglucentral.com/?q=web_vitals), so there should be no breaking change here when this metric becomes unavailable.

We assume if the user is using the library themselves they would be
manually loading it and telling us not to via:

- `loadVitalsScript: false`
- `webVitalsSource` override

So we don't consider this a breaking change unless a user is relying on us
to load v3 and with this update we start loading v4 (which has some
[breaking
changes](https://github.com/GoogleChrome/web-vitals/blob/main/docs/upgrading-to-v4.md)).
Users in this situation can set `webVitalsSource` to continue loading
v3.

When v5 is released, users can opt-in to using it by specifying
 a v5 source for `webVitalsSource`, which should work as expected with
 these changes until we update the plugin's default source to be v5.

Closes #1411
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@greg-el Greg Leonard (greg-el) merged commit 88b81cd into master Mar 20, 2025
0 of 2 checks passed
@greg-el Greg Leonard (greg-el) deleted the release/4.4.0 branch March 20, 2025 12:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants