Skip to content

Releases: Zizzamia/perfume.js

v9.4.0

22 Mar 01:18
Compare
Choose a tag to compare
  • fix: Fix import crash under node.js

v9.2.0

04 Dec 22:41
Compare
Choose a tag to compare
  • feat added export for markNTBT function.

v9.1.0

01 Dec 07:09
Compare
Choose a tag to compare

A long time coming, but we are back :)
We did some internal cleanup, making the library more accessible for tracking Critical User Journeys.

The most significant change is that we moved away from being Object-oriented and everything is Functional-oriented, which means to start Perfume, you can do.

import { initPerfume } from 'perfume.js';

initPerfume({
  analyticsTracker: ({ metricName, data }) => {
    myAnalyticsTool.track(metricName, data);
  })
});

Breaking Changes

  • feat remove enableNavigationTracking and have the behavior as the default.
  • feat getRating has been consolidated into getVitalsScore.
  • chore rename incrementUjNavigation to trackUJNavigation.
  • chore deprecate endPaint.

v9.0.0

01 Dec 01:05
ba31b87
Compare
Choose a tag to compare

A long time coming, but we are back :)
We did some internal cleanup, making the library more accessible for tracking Critical User Journeys.

Breaking Changes

  • feat remove enableNavigationTracking and have the behavior as the default.
  • feat getRating has been consolidated into getVitalsScore.
  • chore rename incrementUjNavigation to trackUJNavigation.
  • chore deprecate startPaint and endPaint.

v8.4.0

04 Feb 03:44
Compare
Choose a tag to compare
  • fix: disable requestIdleCallback for CLS and INP reports (#212)

v8.3.0

29 Jan 23:22
Compare
Choose a tag to compare
  • feat: added navigationType support (#210)
  • fix: run po for longtask only once (#215)

v8.2.0

31 Dec 07:16
Compare
Choose a tag to compare
  • feat: added ability to provide web-vitals report options

v8.1.6

31 Dec 07:06
Compare
Choose a tag to compare
  • fix: added back the visibility.isHidden check when reporting metrics. Apparently, without this check, we end up over-reporting metrics that risk being inaccurate because the page suddenly becomes hidden.

Currently, the only initial metrics that will be reported after visibility changes are CLS and INP.

v8.0.0

06 Nov 23:18
Compare
Choose a tag to compare
  • 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...

v7.0.0

22 Feb 01:22
Compare
Choose a tag to compare
  • feat: changed both TBT and NTBT Vitals to be less than 200 milliseconds for Good Score.