diff --git a/CHANGELOG.md b/CHANGELOG.md
index 1b761fd..27a7807 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,9 @@
# Changelog
+## 4.8.0 (2020-2-23)
+
+* **feat:** added support for Cumulative Layout Shift score #80
+
## 4.7.5 (2020-2-22)
* **fix:** missed new property as reserved words
diff --git a/README-zh_CN.md b/README-zh_CN.md
index 63b87b2..45cd636 100644
--- a/README-zh_CN.md
+++ b/README-zh_CN.md
@@ -2,7 +2,7 @@
-# [Perfume.js v4.7.5](http://perfumejs.com)
+# [Perfume.js v4.8.0](http://perfumejs.com)
[![NPM version](https://badge.fury.io/js/perfume.js.svg)](https://www.npmjs.org/package/perfume.js) [![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) [![Test Coverage](https://api.codeclimate.com/v1/badges/f813d2f45b274d93b8c5/test_coverage)](https://codeclimate.com/github/Zizzamia/perfume.js/test_coverage) [![JS gzip size](https://img.badgesize.io/https://unpkg.com/perfume.js?compression=gzip&label=JS+gzip+size)](https://unpkg.com/perfume.js)
diff --git a/README.md b/README.md
index 20920b7..a1fc20d 100644
--- a/README.md
+++ b/README.md
@@ -2,7 +2,7 @@
-# [Perfume.js v4.7.5](http://perfumejs.com)
+# [Perfume.js v4.8.0](http://perfumejs.com)
[![NPM version](https://badge.fury.io/js/perfume.js.svg)](https://www.npmjs.org/package/perfume.js) [![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) [![Test Coverage](https://api.codeclimate.com/v1/badges/f813d2f45b274d93b8c5/test_coverage)](https://codeclimate.com/github/Zizzamia/perfume.js/test_coverage) [![JS gzip size](https://img.badgesize.io/https://unpkg.com/perfume.js?compression=gzip&label=JS+gzip+size)](https://unpkg.com/perfume.js)
diff --git a/docs/package.json b/docs/package.json
index b9ef715..d286549 100644
--- a/docs/package.json
+++ b/docs/package.json
@@ -1,6 +1,6 @@
{
"name": "docs",
- "version": "4.7.5",
+ "version": "4.8.0",
"scripts": {
"ng": "ng",
"start": "ng serve",
diff --git a/docs/projects/perfume/package.json b/docs/projects/perfume/package.json
index 421fd4f..476b423 100644
--- a/docs/projects/perfume/package.json
+++ b/docs/projects/perfume/package.json
@@ -1,9 +1,9 @@
{
"name": "perfume.js/angular",
- "version": "4.7.5",
+ "version": "4.8.0",
"peerDependencies": {
"@angular/common": "^6.0.0",
"@angular/core": "^6.0.0",
- "perfume.js": "4.7.4"
+ "perfume.js": "4.7.5"
}
}
\ No newline at end of file
diff --git a/docs/projects/perfume/src/lib/perfume.module.ts b/docs/projects/perfume/src/lib/perfume.module.ts
index 6f5337d..6ec7368 100644
--- a/docs/projects/perfume/src/lib/perfume.module.ts
+++ b/docs/projects/perfume/src/lib/perfume.module.ts
@@ -6,11 +6,11 @@ import {
ModuleWithProviders,
NgModule,
} from '@angular/core';
-// import Perfume, { IPerfumeConfig } from 'perfume.js';
-type ILogOptions = any;
-type IPerfumeConfig = any;
-type ISendTimingOptions = any;
-import Perfume from '../../../../../dist/perfume.min'
+import Perfume, { IPerfumeConfig } from 'perfume.js';
+// type ILogOptions = any;
+// type IPerfumeConfig = any;
+// type ISendTimingOptions = any;
+// import Perfume from '../../../../../dist/perfume.min'
export let perfume;
diff --git a/docs/src/app/app.component.ts b/docs/src/app/app.component.ts
index c25d438..e4d7a21 100644
--- a/docs/src/app/app.component.ts
+++ b/docs/src/app/app.component.ts
@@ -5,8 +5,8 @@ import {
ViewChild,
} from '@angular/core';
-// import { NgPerfume } from 'perfume.js/angular';
-import { NgPerfume } from '../../projects/perfume/src/lib/perfume.module';
+import { NgPerfume } from 'perfume.js/angular';
+// import { NgPerfume } from '../../projects/perfume/src/lib/perfume.module';
import {
navigationTiming,
diff --git a/docs/src/app/app.module.ts b/docs/src/app/app.module.ts
index d072bcd..18f2d3c 100644
--- a/docs/src/app/app.module.ts
+++ b/docs/src/app/app.module.ts
@@ -10,8 +10,8 @@ import { IntroComponent } from './intro/intro.component';
import { CfpComponent } from './cfp/cfp.component';
import { PerfumeConfig } from './perfume.config';
-// import { PerfumeModule } from 'perfume.js/angular';
-import { PerfumeModule } from '../../projects/perfume/src/lib/perfume.module';
+import { PerfumeModule } from 'perfume.js/angular';
+// import { PerfumeModule } from '../../projects/perfume/src/lib/perfume.module';
@NgModule({
declarations: [
diff --git a/docs/src/app/cfp/cfp.component.ts b/docs/src/app/cfp/cfp.component.ts
index eefaa37..8664188 100644
--- a/docs/src/app/cfp/cfp.component.ts
+++ b/docs/src/app/cfp/cfp.component.ts
@@ -7,8 +7,8 @@ import {
import { MatDialog } from '@angular/material/dialog';
import { DialogComponent } from '../dialog/dialog.component';
-// import { NgPerfume } from 'perfume.js/angular';
-import { NgPerfume } from '../../../projects/perfume/src/lib/perfume.module';
+import { NgPerfume } from 'perfume.js/angular';
+// import { NgPerfume } from '../../../projects/perfume/src/lib/perfume.module';
import { openDialog$ } from '../perfume.config';
diff --git a/package.json b/package.json
index 00aa108..be2137b 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "perfume.js",
- "version": "4.7.5",
+ "version": "4.8.0",
"description": "JavaScript library that measures Navigation Timing, First (Contentful) Paint (FP/FCP), First Input Delay (FID) and components lifecycle performance. Report real user measurements to your favorite analytics tool.",
"keywords": [
"performance-metrics",
diff --git a/rollup.config.ts b/rollup.config.ts
index ffdf4e4..738642a 100644
--- a/rollup.config.ts
+++ b/rollup.config.ts
@@ -68,7 +68,7 @@ const createConfig = ({ output, min = false }) => {
'navigatorInformation',
'isLowEndDevice',
'isLowEndExperience',
- 'cumulativeLayoutShiftScore',
+ 'cumulativeLayoutShift',
]
}
},
diff --git a/src/perfume.ts b/src/perfume.ts
index a6f7369..5e0da33 100644
--- a/src/perfume.ts
+++ b/src/perfume.ts
@@ -1,5 +1,5 @@
/*!
- * Perfume.js v4.7.5 (http://zizzamia.github.io/perfume)
+ * Perfume.js v4.8.0 (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
@@ -169,7 +169,7 @@ export default class Perfume {
maxMeasureTime: 15000,
};
copyright = '© 2020 Leonardo Zizzamia';
- version = '4.7.5';
+ version = '4.8.0';
private c = window.console;
private cumulativeLayoutShiftScore = 0;
private d = document;