Skip to content

Commit ff65ad3

Browse files
committed
Changelog and version changes for 3.5.0
1 parent 9591294 commit ff65ad3

File tree

4 files changed

+15
-6
lines changed

4 files changed

+15
-6
lines changed

CHANGES.md

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

7+
### v3.5.0 2020 2020-05-31
8+
9+
- Fix 'End of data reached' error when file extra field is invalid (see [#544](https://github.com/Stuk/jszip/pull/544)).
10+
- Typescript definitions: Add null to return types of functions that may return null (see [#669](https://github.com/Stuk/jszip/pull/669)).
11+
- Typescript definitions: Correct nodeStream's type (see [#682](https://github.com/Stuk/jszip/pull/682))
12+
- Typescript definitions: Add string output type (see [#666](https://github.com/Stuk/jszip/pull/666))
13+
714
### v3.4.0 2020 2020-04-19
815

916
- Add Typescript type definitions (see [#601](https://github.com/Stuk/jszip/pull/601)).

dist/jszip.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*!
22
3-
JSZip v3.3.0 - A JavaScript class for generating and reading zip files
3+
JSZip v3.5.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>
@@ -1057,7 +1057,7 @@ JSZip.defaults = require('./defaults');
10571057

10581058
// TODO find a better way to handle this version,
10591059
// a require('package.json').version doesn't work with webpack, see #327
1060-
JSZip.version = "3.4.0";
1060+
JSZip.version = "3.5.0";
10611061

10621062
JSZip.loadAsync = function (content, options) {
10631063
return new JSZip().loadAsync(content, options);
@@ -3976,7 +3976,7 @@ ZipEntry.prototype = {
39763976
this.extraFields = {};
39773977
}
39783978

3979-
while (reader.index < end) {
3979+
while (reader.index + 4 < end) {
39803980
extraFieldId = reader.readInt(2);
39813981
extraFieldLength = reader.readInt(2);
39823982
extraFieldValue = reader.readData(extraFieldLength);
@@ -3987,6 +3987,8 @@ ZipEntry.prototype = {
39873987
value: extraFieldValue
39883988
};
39893989
}
3990+
3991+
reader.setIndex(end);
39903992
},
39913993
/**
39923994
* Apply an UTF8 transformation if needed.

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
@@ -42,7 +42,7 @@ JSZip.defaults = require('./defaults');
4242

4343
// TODO find a better way to handle this version,
4444
// a require('package.json').version doesn't work with webpack, see #327
45-
JSZip.version = "3.4.0";
45+
JSZip.version = "3.5.0";
4646

4747
JSZip.loadAsync = function (content, options) {
4848
return new JSZip().loadAsync(content, options);

0 commit comments

Comments
 (0)