Skip to content

Commit

Permalink
chore: release v4.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Zizzamia committed Feb 23, 2020
1 parent 0f6e939 commit f3a030d
Show file tree
Hide file tree
Showing 12 changed files with 24 additions and 20 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion README-zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<img src="https://github.com/Zizzamia/perfume.js/blob/master/docs/src/assets/perfume-logo-v4-5-0.png" align="left" width="200" />
</a>

# [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)

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<img src="https://github.com/Zizzamia/perfume.js/blob/master/docs/src/assets/perfume-logo-v4-5-0.png" align="left" width="200" />
</a>

# [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)

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": "4.7.5",
"version": "4.8.0",
"scripts": {
"ng": "ng",
"start": "ng serve",
Expand Down
4 changes: 2 additions & 2 deletions docs/projects/perfume/package.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
10 changes: 5 additions & 5 deletions docs/projects/perfume/src/lib/perfume.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
4 changes: 2 additions & 2 deletions docs/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions docs/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
Expand Down
4 changes: 2 additions & 2 deletions docs/src/app/cfp/cfp.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';

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": "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",
Expand Down
2 changes: 1 addition & 1 deletion rollup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const createConfig = ({ output, min = false }) => {
'navigatorInformation',
'isLowEndDevice',
'isLowEndExperience',
'cumulativeLayoutShiftScore',
'cumulativeLayoutShift',
]
}
},
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 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
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit f3a030d

Please sign in to comment.