This PR contains the following updates:
Release Notes
GoogleChrome/web-vitals (web-vitals)
Compare Source
- 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)
Compare Source
- Remove visibilitychange event listeners when no longer required (#627)
Compare Source
- Handle layout shifts with no sources (#623)
Compare Source
- Fix missing FCP and LCP for prerendered pages (#621)
Compare Source
[!NOTE]
See theupgrading 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 atprocessingStart (#540) and (#546) - Cap INP breakdowns to INP duration (#528)
- Cap LCP load duration to LCP time (#527)
Compare Source
- Fix memory leak in registering new event listeners on every keydown and click (#554)
Compare Source
- Fix missing LoAF entries in INP attribution (#512)
Compare Source
- Fix interaction count after bfcache restore (#505)
Compare Source
- Fix compatibility issues with TypeScript v5.5 (#497)
Compare Source
- Refactor INP attribution code to fix errors on Windows 10 (#495)
Compare Source
- Fix pending LoAF cleanup logic (#493)
Compare Source
- Move the support check to the top of the onINP() function (#490)
- Fix missing LoAF attribution when entries are dispatched before event entries (#487)
Compare Source
- Add the
ReportCallback type back but deprecate it (#483)
Compare Source
[!NOTE]
See theupgrading to v4 guide for a complete list of all API changes in version 4.
- [BREAKING] Update types to support more generic usage (#471)
- [BREAKING] Split
waitingDuration to make it easier to understand redirect delays (#458) - [BREAKING] Rename
TTFBAttribution fields from*Time to*Duration (#453) - [BREAKING] Rename
resourceLoadTime toresourceLoadDuration in LCP attribution (#450) - [BREAKING] Add INP breakdown timings and LoAF attribution (#442)
- [BREAKING] Deprecate
onFID() and remove previously deprecated APIs (#435) - Expose the target element in INP attribution (#479)
- Save INP target after interactions to reduce null values when removed from the DOM (#477)
- Cap TTFB in attribution (#440)
- Fix
reportAllChanges behavior for LCP when library is loaded late (#468)
Compare Source
- Pick the first non-null
target for INP attribution (#421)
Compare Source
- Add extra guard for
PerformanceEventTiming not existing (#403)
Compare Source
- Run
onLCP callback in separate task (#386) - Fix INP durationThreshold bug when set to 0 (#372)
- Prevent FID entries being emitted as INP for non-supporting browsers (#368)
Compare Source
- Make
bindReporter generic over metric type (#359) - Update INP status in README (#362)
- Fix Metric types for better TypeScript support (#356)
- Fix selector for SVGs for attribution build (#354)
Compare Source
- Fix attribution types (#348)
- Safe access navigation entry type (#290)
Compare Source
- Export metric rating thresholds in attribution build as well.
Compare Source
- Export metric rating thresholds, add explicit
MetricRatingThresholds type (#323) - Trim classname selector (#328)
- Add link to CrUX versus RUM blog post (#327)
- Prevent LCP being reported for hidden prerendered pages (#326)
- Add Server Timing information to docs (#324)
- Fix link in
onINP() thresholds comment (#318) - Update web.dev link for
onINP() (#307) - Add a note about when to load the library (#305)
Compare Source
- Defer CLS logic until after
onFCP() callback (#297)
Compare Source
- Add support for
'restore' as anavigationType (#284) - Report initial CLS value when
reportAllChanges is true (#283) - Defer all observers until after activation (#282)
- Ignore TTFB for loads where responseStart is zero (#281)
- Defer execution of observer callbacks (#278)
Compare Source
- Clamp LCP and FCP to 0 for prerendered pages (#270)
Compare Source
- Ensure
attribution object is always present in attribution build (#265)
Compare Source
- Set an explicit unpkg dist file (#261)
Compare Source
- Use the cjs extension for all UMD builds (#257)
Compare Source
- [BREAKING] Add a config object param to all metric functions (#225)
- [BREAKING] Report TTFB after a bfcache restore (#220)
- [BREAKING] Only include last LCP entry in metric entries (#218)
- Update the metric ID prefix for v3 (#251)
- Move the Navigation Timing API polyfill to the base+polyfill build (#248)
- Add a metric rating property (#246)
- Add deprecation notices for base+polyfill builds (#242)
- Add a new attribution build for debugging issues in the field (#237,#244)
- Add support for prerendered pages (#233)
- Rename the
ReportHandler type toReportCallback, with alias for back-compat (#225,#227) - Add support for the new INP metric (#221,#232)
- Rename
getXXX() functions toonXXX() (#222) - Add a
navigationType property to the Metric object (#219)
Configuration
📅Schedule: Branch creation - Between 12:00 AM and 03:59 AM, only on Monday ( * 0-3 * * 1 ) (UTC), Automerge - At any time (no schedule defined).
🚦Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated byMend Renovate. View therepository job log.
Uh oh!
There was an error while loading.Please reload this page.
This PR contains the following updates:
^2.1.4->^5.1.0Release Notes
GoogleChrome/web-vitals (web-vitals)
v5.1.0Compare Source
visibility-changeearly (#637)isTrusted=true) (#635)getSelectorif custom function is null or undefined (#634)v5.0.3Compare Source
v5.0.2Compare Source
v5.0.1Compare Source
v5.0.0Compare Source
[!NOTE]
See theupgrading to v5 guide for a complete list of all API changes in version 5.
onFID()function (#519)onINP()with different config options (#583)nextPaintTimeatprocessingStart(#540) and (#546)v4.2.4Compare Source
v4.2.3Compare Source
v4.2.2Compare Source
v4.2.1Compare Source
v4.2.0Compare Source
v4.1.1Compare Source
v4.1.0Compare Source
v4.0.1Compare Source
ReportCallbacktype back but deprecate it (#483)v4.0.0Compare Source
[!NOTE]
See theupgrading to v4 guide for a complete list of all API changes in version 4.
waitingDurationto make it easier to understand redirect delays (#458)TTFBAttributionfields from*Timeto*Duration(#453)resourceLoadTimetoresourceLoadDurationin LCP attribution (#450)onFID()and remove previously deprecated APIs (#435)reportAllChangesbehavior for LCP when library is loaded late (#468)v3.5.2Compare Source
targetfor INP attribution (#421)v3.5.1Compare Source
PerformanceEventTimingnot existing (#403)v3.5.0Compare Source
onLCPcallback in separate task (#386)v3.4.0Compare Source
bindReportergeneric over metric type (#359)v3.3.2Compare Source
v3.3.1Compare Source
v3.3.0Compare Source
MetricRatingThresholdstype (#323)onINP()thresholds comment (#318)onINP()(#307)v3.1.1Compare Source
onFCP()callback (#297)v3.1.0Compare Source
'restore'as anavigationType(#284)reportAllChangesis true (#283)v3.0.4Compare Source
v3.0.3Compare Source
attributionobject is always present in attribution build (#265)v3.0.2Compare Source
v3.0.1Compare Source
v3.0.0Compare Source
ReportHandlertype toReportCallback, with alias for back-compat (#225,#227)getXXX()functions toonXXX()(#222)navigationTypeproperty to the Metric object (#219)Configuration
📅Schedule: Branch creation - Between 12:00 AM and 03:59 AM, only on Monday ( * 0-3 * * 1 ) (UTC), Automerge - At any time (no schedule defined).
🚦Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated byMend Renovate. View therepository job log.