Skip to content

Commit

Permalink
chore: release v8.1.6 ⚡
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardo zizzamia committed Dec 31, 2022
1 parent 3192036 commit 4b53d24
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Changelog

## 8.1.5 (2022-12-30)
## 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.

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
align="left" width="200" alt="Perfume.js logo" />
</a>

# [Perfume.js v8.1.5](http://perfumejs.com)
# [Perfume.js v8.1.6](http://perfumejs.com)

[![Current version](https://img.shields.io/github/tag/zizzamia/perfume.js?color=3498DB&label=version)](https://www.npmjs.org/package/perfume.js) [![Test Coverage](https://api.codeclimate.com/v1/badges/f813d2f45b274d93b8c5/test_coverage)](https://codeclimate.com/github/Zizzamia/perfume.js/test_coverage) <img alt="No dependencies" src="https://img.shields.io/badge/dependencies-none-27ae60.svg"> [![Build Status](https://travis-ci.org/Zizzamia/perfume.js.svg?branch=master)](https://travis-ci.org/Zizzamia/perfume.js) [![NPM Downloads](http://img.shields.io/npm/dm/perfume.js.svg)](https://www.npmjs.org/package/perfume.js) [![gzip size](https://img.badgesize.io/https://unpkg.com/perfume.js?compression=gzip&label=JS+gzip+size)](https://unpkg.com/perfume.js) [![brotli size](https://img.badgesize.io/https://unpkg.com/perfume.js?compression=brotli&label=JS+brotli+size)](https://unpkg.com/perfume.js)

Expand Down
14 changes: 7 additions & 7 deletions docs/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"core-js": "3.26.0",
"idb": "5.0.3",
"ng-packagr": "^14.2.2",
"perfume.js": "8.1.4",
"perfume.js": "8.1.5",
"rxjs": "7.5.7",
"tslib": "^2.4.1",
"typescript": "4.8.4",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "perfume.js",
"version": "8.1.5",
"version": "8.1.6",
"description": "Web performance library for measuring all User-centric performance metrics, including the latest Web Vitals.",
"keywords": [
"performance",
Expand Down
2 changes: 1 addition & 1 deletion src/log.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const logMetric = ({attribution, name, rating, value}: Metric): void => {
// TODO Add docs
if ('FID' === name) {
setTimeout(() => {
if (!visibility.didChange) {
if (visibility.didChange) {
return;
}
logMetric({
Expand Down
4 changes: 2 additions & 2 deletions src/perfume.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Perfume.js v8.1.5 (http://zizzamia.github.io/perfume)
* Perfume.js v8.1.6 (http://zizzamia.github.io/perfume)
* Copyright 2022 Leonardo Zizzamia (https://github.com/Zizzamia/perfume.js/graphs/contributors)
* Licensed under MIT (https://github.com/Zizzamia/perfume.js/blob/master/LICENSE)
*
Expand All @@ -23,7 +23,7 @@ import { getVitalsScore } from './vitalsScore';
let ntbtTimeoutID = 0;

export default class Perfume {
v = '8.1.5';
v = '8.1.6';

constructor(options: IPerfumeOptions = {}) {
// Extend default config with external options
Expand Down

0 comments on commit 4b53d24

Please sign in to comment.