Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependency web-vitals to v3.0.0 #309

Merged
merged 18 commits into from Feb 2, 2023
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/tasty-mayflies-flash.md
@@ -0,0 +1,5 @@
---
'@guardian/core-web-vitals': major
---

Update to use web-vitals v3
joecowton1 marked this conversation as resolved.
Show resolved Hide resolved
4 changes: 2 additions & 2 deletions libs/@guardian/core-web-vitals/package.json
Expand Up @@ -8,13 +8,13 @@
"@guardian/libs": "12.0.0",
"tslib": "2.4.1",
"typescript": "4.3.2",
"web-vitals": "2.0.0"
"web-vitals": "3.1.1"
joecowton1 marked this conversation as resolved.
Show resolved Hide resolved
},
"peerDependencies": {
"@guardian/libs": "^12.0.0",
"tslib": "^2.4.1",
"typescript": "^4.3.2",
"web-vitals": "^2.0.0"
"web-vitals": "^2.0.0 || ^3.0.0"
joecowton1 marked this conversation as resolved.
Show resolved Hide resolved
joecowton1 marked this conversation as resolved.
Show resolved Hide resolved
},
"peerDependenciesMeta": {
"typescript": {
Expand Down
2 changes: 1 addition & 1 deletion libs/@guardian/core-web-vitals/src/index.ts
Expand Up @@ -89,7 +89,7 @@ const getCoreWebVitals = async (): Promise<void> => {
const webVitals = await import('web-vitals');
const { getCLS, getFCP, getFID, getLCP, getTTFB } = webVitals;
joecowton1 marked this conversation as resolved.
Show resolved Hide resolved

getCLS(onReport, false);
getCLS(onReport, { reportAllChanges: false });
getFID(onReport);
getLCP(onReport);
getFCP(onReport);
Expand Down
Expand Up @@ -15,7 +15,7 @@
"eslint": "8.0.0",
"tslib": "2.4.1",
"typescript": "4.3.2",
"web-vitals": "2.0.0"
"web-vitals": "3.1.1"
joecowton1 marked this conversation as resolved.
Show resolved Hide resolved
},
"peerDependencies": {
"@guardian/libs": "^12.0.0",
Expand Down
Expand Up @@ -17,7 +17,7 @@
"react": "17.0.1",
"tslib": "2.4.1",
"typescript": "4.3.2",
"web-vitals": "2.0.0"
"web-vitals": "3.1.1"
joecowton1 marked this conversation as resolved.
Show resolved Hide resolved
},
"peerDependencies": {
"@guardian/libs": "^12.0.0",
Expand Down
Expand Up @@ -12,7 +12,7 @@
"react": "17.0.1",
"tslib": "2.4.1",
"typescript": "4.3.2",
"web-vitals": "2.0.0"
"web-vitals": "3.1.1"
joecowton1 marked this conversation as resolved.
Show resolved Hide resolved
},
"peerDependencies": {
"@emotion/react": "^11.0.0",
Expand Down
23 changes: 13 additions & 10 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.