Skip to content

Commit

Permalink
build: release 1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
fengyuanchen committed Dec 10, 2018
1 parent bac26eb commit f949d3b
Show file tree
Hide file tree
Showing 10 changed files with 5,861 additions and 3,034 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## 1.0.2 (Dec 10, 2018)

- Upgrade `is-blob` to v2.
- Move `examples` folder to `docs` folder.

## 1.0.1 (Oct 24, 2018)

- Simplify the state of canvas for the `beforeDraw` option.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Compressor.js

[![Build Status](https://travis-ci.org/fengyuanchen/compressorjs.svg)](https://travis-ci.org/fengyuanchen/compressorjs) [![Coverage Status](https://img.shields.io/codecov/c/github/fengyuanchen/compressorjs.svg)](https://codecov.io/gh/fengyuanchen/compressorjs) [![Downloads](https://img.shields.io/npm/dm/compressorjs.svg)](https://www.npmjs.com/package/compressorjs) [![Version](https://img.shields.io/npm/v/compressorjs.svg)](https://www.npmjs.com/package/compressorjs)
[![Build Status](https://img.shields.io/travis/fengyuanchen/compressorjs.svg)](https://travis-ci.org/fengyuanchen/compressorjs) [![Coverage Status](https://img.shields.io/codecov/c/github/fengyuanchen/compressorjs.svg)](https://codecov.io/gh/fengyuanchen/compressorjs) [![Downloads](https://img.shields.io/npm/dm/compressorjs.svg)](https://www.npmjs.com/package/compressorjs) [![Version](https://img.shields.io/npm/v/compressorjs.svg)](https://www.npmjs.com/package/compressorjs) [![Dependencies](https://img.shields.io/david/fengyuanchen/compressorjs.svg)](https://www.npmjs.com/package/compressorjs)

> JavaScript image compressor. Uses the Browser's native [canvas.toBlob](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toBlob) API to do the compression work, which means it is lossy compression. General use this to precompress a client image file before upload it.
Expand Down
14 changes: 7 additions & 7 deletions dist/compressor.common.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*!
* Compressor.js v1.0.1
* Compressor.js v1.0.2
* https://fengyuanchen.github.io/compressorjs
*
* Copyright 2018-present Chen Fengyuan
* Released under the MIT license
*
* Date: 2018-10-24T12:55:20.512Z
* Date: 2018-12-10T13:23:38.356Z
*/

'use strict';
Expand Down Expand Up @@ -208,12 +208,12 @@ var canvasToBlob = createCommonjsModule(function (module) {
})(window);
});

/* globals Blob */

var toString = Object.prototype.toString;
var isBlob = function isBlob(input) {
if (typeof Blob === 'undefined') {
return false;
}

var isBlob = function (x) {
return x instanceof Blob || toString.call(x) === '[object Blob]';
return input instanceof Blob || Object.prototype.toString.call(input) === '[object Blob]';
};

var DEFAULTS = {
Expand Down
14 changes: 7 additions & 7 deletions dist/compressor.esm.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*!
* Compressor.js v1.0.1
* Compressor.js v1.0.2
* https://fengyuanchen.github.io/compressorjs
*
* Copyright 2018-present Chen Fengyuan
* Released under the MIT license
*
* Date: 2018-10-24T12:55:20.512Z
* Date: 2018-12-10T13:23:38.356Z
*/

function _classCallCheck(instance, Constructor) {
Expand Down Expand Up @@ -206,12 +206,12 @@ var canvasToBlob = createCommonjsModule(function (module) {
})(window);
});

/* globals Blob */

var toString = Object.prototype.toString;
var isBlob = function isBlob(input) {
if (typeof Blob === 'undefined') {
return false;
}

var isBlob = function (x) {
return x instanceof Blob || toString.call(x) === '[object Blob]';
return input instanceof Blob || Object.prototype.toString.call(input) === '[object Blob]';
};

var DEFAULTS = {
Expand Down
14 changes: 7 additions & 7 deletions dist/compressor.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*!
* Compressor.js v1.0.1
* Compressor.js v1.0.2
* https://fengyuanchen.github.io/compressorjs
*
* Copyright 2018-present Chen Fengyuan
* Released under the MIT license
*
* Date: 2018-10-24T12:55:20.512Z
* Date: 2018-12-10T13:23:38.356Z
*/

(function (global, factory) {
Expand Down Expand Up @@ -212,12 +212,12 @@
})(window);
});

/* globals Blob */

var toString = Object.prototype.toString;
var isBlob = function isBlob(input) {
if (typeof Blob === 'undefined') {
return false;
}

var isBlob = function (x) {
return x instanceof Blob || toString.call(x) === '[object Blob]';
return input instanceof Blob || Object.prototype.toString.call(input) === '[object Blob]';
};

var DEFAULTS = {
Expand Down
6 changes: 3 additions & 3 deletions dist/compressor.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
<div class="container">
<div class="row">
<div class="col-md">
<h1>Compressor.js <small class="h6">v1.0.1</small></h1>
<h1>Compressor.js <small class="h6">v1.0.2</small></h1>
<p class="lead">JavaScript image compressor.</p>
</div>
<div class="col-md">
Expand Down Expand Up @@ -240,7 +240,7 @@ <h3 class="card-title">Output (compressed)</h3>

<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.bundle.min.js"></script>
<script src="https://unpkg.com/[email protected].18/dist/vue.min.js"></script>
<script src="https://unpkg.com/[email protected].19/dist/vue.min.js"></script>
<script src="https://fengyuanchen.github.io/js/common.js"></script>
<script src="js/compressor.js"></script>
<script src="js/main.js"></script>
Expand Down
14 changes: 7 additions & 7 deletions docs/js/compressor.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*!
* Compressor.js v1.0.1
* Compressor.js v1.0.2
* https://fengyuanchen.github.io/compressorjs
*
* Copyright 2018-present Chen Fengyuan
* Released under the MIT license
*
* Date: 2018-10-24T12:55:20.512Z
* Date: 2018-12-10T13:23:38.356Z
*/

(function (global, factory) {
Expand Down Expand Up @@ -212,12 +212,12 @@
})(window);
});

/* globals Blob */

var toString = Object.prototype.toString;
var isBlob = function isBlob(input) {
if (typeof Blob === 'undefined') {
return false;
}

var isBlob = function (x) {
return x instanceof Blob || toString.call(x) === '[object Blob]';
return input instanceof Blob || Object.prototype.toString.call(input) === '[object Blob]';
};

var DEFAULTS = {
Expand Down
Loading

0 comments on commit f949d3b

Please sign in to comment.