Skip to content

Commit

Permalink
release 1.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Donaldcwl committed May 31, 2019
1 parent 08509f4 commit 8af3373
Show file tree
Hide file tree
Showing 17 changed files with 22 additions and 19 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## v1.0.4 (1 June 2019)
## v1.0.5 (1 June 2019)
* added: support for cordova project that uses cordova-plugin-file
* optimized: follow image exif orientation even though image do not required to compress or resize
* fixed: error may throw on iPhone Safari because of OffscreenCanvas cannot get 2d context
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ yarn add browser-image-compression
```
or use a CDN like [delivrjs]:
```
https://cdn.jsdelivr.net/npm/[email protected].4/dist/browser-image-compression.js
https://cdn.jsdelivr.net/npm/[email protected].5/dist/browser-image-compression.js
or
https://cdn.jsdelivr.net/npm/browser-image-compression@latest/dist/browser-image-compression.js
```
Expand Down
2 changes: 1 addition & 1 deletion coverage/image-compression.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ <h1>
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
Code coverage
generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Sat Jun 01 2019 03:08:31 GMT+0800 (Hong Kong Standard Time)
generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Sat Jun 01 2019 03:26:08 GMT+0800 (Hong Kong Standard Time)
</div>
</div>
<script src="prettify.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ <h1>
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
Code coverage
generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Sat Jun 01 2019 03:08:31 GMT+0800 (Hong Kong Standard Time)
generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Sat Jun 01 2019 03:26:08 GMT+0800 (Hong Kong Standard Time)
</div>
</div>
<script src="prettify.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/index.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ <h1>
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
Code coverage
generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Sat Jun 01 2019 03:08:31 GMT+0800 (Hong Kong Standard Time)
generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Sat Jun 01 2019 03:26:08 GMT+0800 (Hong Kong Standard Time)
</div>
</div>
<script src="prettify.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/image-compression.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ <h1>
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
Code coverage
generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Sat Jun 01 2019 03:08:31 GMT+0800 (Hong Kong Standard Time)
generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Sat Jun 01 2019 03:26:08 GMT+0800 (Hong Kong Standard Time)
</div>
</div>
<script src="prettify.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ <h1>
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
Code coverage
generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Sat Jun 01 2019 03:08:31 GMT+0800 (Hong Kong Standard Time)
generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Sat Jun 01 2019 03:26:08 GMT+0800 (Hong Kong Standard Time)
</div>
</div>
<script src="prettify.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/index.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ <h1>
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
Code coverage
generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Sat Jun 01 2019 03:08:31 GMT+0800 (Hong Kong Standard Time)
generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Sat Jun 01 2019 03:26:08 GMT+0800 (Hong Kong Standard Time)
</div>
</div>
<script src="prettify.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/utils.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -844,7 +844,7 @@ <h1>
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
Code coverage
generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Sat Jun 01 2019 03:08:31 GMT+0800 (Hong Kong Standard Time)
generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Sat Jun 01 2019 03:26:08 GMT+0800 (Hong Kong Standard Time)
</div>
</div>
<script src="prettify.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/utils.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -844,7 +844,7 @@ <h1>
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
Code coverage
generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Sat Jun 01 2019 03:08:31 GMT+0800 (Hong Kong Standard Time)
generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Sat Jun 01 2019 03:26:08 GMT+0800 (Hong Kong Standard Time)
</div>
</div>
<script src="prettify.js"></script>
Expand Down
4 changes: 2 additions & 2 deletions dist/browser-image-compression.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/browser-image-compression.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/browser-image-compression.mjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/browser-image-compression.mjs.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion example/basic.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,6 @@
})
}
</script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/[email protected].4/dist/browser-image-compression.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/[email protected].5/dist/browser-image-compression.js"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "browser-image-compression",
"version": "1.0.4",
"version": "1.0.5",
"description": "Compress images in the browser",
"main": "dist/browser-image-compression.js",
"module": "dist/browser-image-compression.mjs",
Expand Down
5 changes: 4 additions & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ let external = Object.keys(pkg.dependencies)
let plugins = [
nodent({ noRuntime: true, promises: true }),
babel(),
terser({ keep_fnames: true }),
terser({
keep_fnames: true,
mangle: { reserved: ['CustomFile', 'CustomFileReader'] }
}),
license({
sourcemap: true,
banner: '<%= _.startCase(pkg.name) %>\nv<%= pkg.version %>\nby <%= pkg.author %>\n<%= pkg.repository.url %>',
Expand Down

0 comments on commit 8af3373

Please sign in to comment.