Skip to content

v8.0.0

Compare
Choose a tag to compare
@Zizzamia Zizzamia released this 06 Nov 23:18
· 75 commits to master since this release
  • feat: made Perfume.js a superset of the Web Vitals library. This means you will get access to all the latest metrics from Google and plus all the extra features you learn to love from Perfume.
  • feat: with Web Vitals now we get for free also the INP metric.

Breaking Changes

As now we are a superset of Web Vitals, here a quick overview on what changed:

  • Metrics like TTFB, CLS might have a slight change in value as the Web Vitals lib covers more edge cases.
  • The CLS metric will fire when the page changes visibility and not anymore after FID.
  • The analyticsTracker options will use the word attribution for all custom data of each metric, and vitalsScore will change to rating.
new Perfume({
    ...
    analyticsTracker: ({ attribution, metricName, data, navigatorInformation, rating }) => {
        // Report the metric with your favorite analytics tool
    }
});
  • The name for all Vital metric will be in uppercase, such as FID, LPC, etc...