Releases: Zizzamia/perfume.js
Releases · Zizzamia/perfume.js
v9.4.0
v9.2.0
v9.1.0
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 intogetVitalsScore
. - chore rename
incrementUjNavigation
totrackUJNavigation
. - chore deprecate
endPaint
.
v9.0.0
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 intogetVitalsScore
. - chore rename
incrementUjNavigation
totrackUJNavigation
. - chore deprecate
startPaint
andendPaint
.
v8.4.0
v8.3.0
v8.2.0
v8.1.6
- 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
- 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 wordattribution
for all custom data of each metric, andvitalsScore
will change torating
.
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...