Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

perfume.js

Package Overview
Dependencies
Maintainers
1
Versions
157
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

perfume.js - npm Package Versions

13
16

8.2.0

Diff

Changelog

Source

8.2.0 (2022-12-30)

  • feat: added ability to provide web-vitals report options
zizzamia
published 8.1.6 •

Changelog

Source

8.1.6 (2022-12-30)

  • 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.

zizzamia
published 8.1.5 •

zizzamia
published 8.1.4 •

zizzamia
published 8.1.3 •

zizzamia
published 8.1.2 •

zizzamia
published 8.1.1 •

zizzamia
published 8.1.0 •

zizzamia
published 8.0.0 •

Changelog

Source

8.0.0 (2022-11-6)

  • 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...
zizzamia
published 8.0.0-alpha.2 •

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc