Skip to content

v5.0.0

Compare
Choose a tag to compare
@Zizzamia Zizzamia released this 09 May 23:03
· 202 commits to master since this release
  • feat: simplified the analyticsTracker by having all duration value inside the data property
  • feat: enabled PerformanceObserver for all browser, before was only for Chrome
  • feat: added Total Blocking Time #112
  • feat: added Total Blocking Time Final for when the page's lifecycle state changes to hidden
  • feat: added secondary log for LCP and CLS called LCP Final & CLS Final for when the page's lifecycle state changes to hidden
  • feat: added storageEstimateQuota and storageEstimateUsage to the navigatorInfo results
  • fix: added feature detection for clearMarks
  • fix: solved issue with storageEstimate and created his own event
  • refactor: reduced library size to 2Kb gzipped

Breaking Changes

Until now, we allowed only Chrome to run the PerformanceObserver interface because of possible cross-browser issues. One in particular related to Firefox 58: https://bugzilla.mozilla.org/show_bug.cgi?id=1403027. Starting from Perfume.js v5, we are going to remove this limitation.

Having both duration and data inside the analyticsTracker, it started causing some confusion. Starting from v5, we will keep only data and have any information from duration contained inside data. Please make sure to change the code inside your analyticsTracker.

More changes:

  • Removed the development logging options, in favor of focusing more on the analyticsTracker method.
  • Removed warning logs for start() and end() methods, because the code already handles those edge cases.
  • Renamed most of metric names, please read README Quickstart to see the latest name version we have. We made most of metric with short names, to allow the library to be even smaller.
  • Simplified EstimateStorage values, to help reduce library size.