Skip to content

Commit ae0b127

Browse files
committed
Updates for 3.9.0
1 parent 983c4d5 commit ae0b127

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed

CHANGES.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ layout: default
44
section: main
55
---
66

7+
### v3.9.0 2022-04-04
8+
9+
- Update types JSZip#loadAsync to accept a promise for data, and remove arguments from `new JSZip()` (see [#752](https://github.com/Stuk/jszip/pull/752))
10+
- Update types for `compressionOptions` to JSZipFileOptions and JSZipGeneratorOptions (see [#722](https://github.com/Stuk/jszip/pull/722))
11+
- Add types for `generateInternalStream` (see [#774](https://github.com/Stuk/jszip/pull/774))
12+
713
### v3.8.0 2022-03-30
814

915
- Santize filenames when files are loaded with `loadAsync`, to avoid ["zip slip" attacks](https://snyk.io/research/zip-slip-vulnerability). The original filename is available on each zip entry as `unsafeOriginalName`. See the [documentation](https://stuk.github.io/jszip/documentation/api_jszip/load_async.html). Many thanks to McCaulay Hudson for reporting.

dist/jszip.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*!
22
3-
JSZip v3.8.0 - A JavaScript class for generating and reading zip files
3+
JSZip v3.9.0 - A JavaScript class for generating and reading zip files
44
<http://stuartk.com/jszip>
55
66
(c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
@@ -1059,7 +1059,7 @@ JSZip.defaults = require('./defaults');
10591059

10601060
// TODO find a better way to handle this version,
10611061
// a require('package.json').version doesn't work with webpack, see #327
1062-
JSZip.version = "3.8.0";
1062+
JSZip.version = "3.9.0";
10631063

10641064
JSZip.loadAsync = function (content, options) {
10651065
return new JSZip().loadAsync(content, options);

dist/jszip.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ JSZip.defaults = require('./defaults');
4545

4646
// TODO find a better way to handle this version,
4747
// a require('package.json').version doesn't work with webpack, see #327
48-
JSZip.version = "3.8.0";
48+
JSZip.version = "3.9.0";
4949

5050
JSZip.loadAsync = function (content, options) {
5151
return new JSZip().loadAsync(content, options);

0 commit comments

Comments
 (0)