Skip to content

Commit

Permalink
chore: release v5.2.2 ⚡️
Browse files Browse the repository at this point in the history
  • Loading branch information
Zizzamia committed Aug 28, 2020
1 parent e5c40f7 commit 2cb74ad
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 8 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 5.2.2 (2020-8-27)

* **fix:** added processingStart in minified file

## 5.2.1 (2020-8-27)

* **fix:** added fidVitals to vitalsScore
Expand Down
2 changes: 1 addition & 1 deletion README-it.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 v5.2.1](http://perfumejs.com)
# [Perfume.js v5.2.2](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
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 v5.2.1](http://perfumejs.com)
# [Perfume.js v5.2.2](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
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "docs",
"version": "5.2.1",
"version": "5.2.2",
"scripts": {
"ng": "ng",
"start": "ng serve",
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": "5.2.1",
"version": "5.2.2",
"description": "Web performance library for measuring all User-centric performance metrics.",
"keywords": [
"performance",
Expand Down
1 change: 1 addition & 0 deletions rollup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ const createConfig = ({ output, min = false }) => {
'tbt5S',
'tbt10S',
'tbtFinal',
'processingStart'
]
}
},
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 v5.2.1 (http://zizzamia.github.io/perfume)
* Perfume.js v5.2.2 (http://zizzamia.github.io/perfume)
* Copyright 2020 Leonardo Zizzamia (https://github.com/Zizzamia/perfume.js/graphs/contributors)
* Licensed under MIT (https://github.com/Zizzamia/perfume.js/blob/master/LICENSE)
* @license
Expand All @@ -22,7 +22,7 @@ import { IPerfumeOptions } from './types';
import { roundByTwo } from './utils';

export default class Perfume {
v = '5.2.1';
v = '5.2.2';

constructor(options: IPerfumeOptions = {}) {
// Extend default config with external options
Expand Down
5 changes: 3 additions & 2 deletions src/vitalsScore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { IPerfumeData, IVitalsScore } from './types';

const fcpScore = [1000, 2500];
const lcpScore = [2500, 4000];
const fidcore = [100, 300];
const clsScore = [0.1, 0.25];
const tbtScore = [300, 600];

Expand All @@ -10,8 +11,8 @@ export const webVitalsScore: Record<string, number[]> = {
fcp: fcpScore,
lcp: lcpScore,
lcpFinal: lcpScore,
fid: [100, 300],
fidVitals: [100, 300],
fid: fidcore,
fidVitals: fidcore,
cls: clsScore,
clsFinal: clsScore,
tbt: tbtScore,
Expand Down

0 comments on commit 2cb74ad

Please sign in to comment.