Skip to content

Commit

Permalink
Changelog and version changes for 3.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Stuk committed Jun 14, 2020
1 parent 9591294 commit ff65ad3
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 6 deletions.
7 changes: 7 additions & 0 deletions CHANGES.md
Expand Up @@ -4,6 +4,13 @@ layout: default
section: main
---

### v3.5.0 2020 2020-05-31

- Fix 'End of data reached' error when file extra field is invalid (see [#544](https://github.com/Stuk/jszip/pull/544)).
- Typescript definitions: Add null to return types of functions that may return null (see [#669](https://github.com/Stuk/jszip/pull/669)).
- Typescript definitions: Correct nodeStream's type (see [#682](https://github.com/Stuk/jszip/pull/682))
- Typescript definitions: Add string output type (see [#666](https://github.com/Stuk/jszip/pull/666))

### v3.4.0 2020 2020-04-19

- Add Typescript type definitions (see [#601](https://github.com/Stuk/jszip/pull/601)).
Expand Down
8 changes: 5 additions & 3 deletions dist/jszip.js
@@ -1,6 +1,6 @@
/*!
JSZip v3.3.0 - A JavaScript class for generating and reading zip files
JSZip v3.5.0 - A JavaScript class for generating and reading zip files
<http://stuartk.com/jszip>
(c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
Expand Down Expand Up @@ -1057,7 +1057,7 @@ JSZip.defaults = require('./defaults');

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

JSZip.loadAsync = function (content, options) {
return new JSZip().loadAsync(content, options);
Expand Down Expand Up @@ -3976,7 +3976,7 @@ ZipEntry.prototype = {
this.extraFields = {};
}

while (reader.index < end) {
while (reader.index + 4 < end) {
extraFieldId = reader.readInt(2);
extraFieldLength = reader.readInt(2);
extraFieldValue = reader.readData(extraFieldLength);
Expand All @@ -3987,6 +3987,8 @@ ZipEntry.prototype = {
value: extraFieldValue
};
}

reader.setIndex(end);
},
/**
* Apply an UTF8 transformation if needed.
Expand Down
4 changes: 2 additions & 2 deletions dist/jszip.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/index.js
Expand Up @@ -42,7 +42,7 @@ JSZip.defaults = require('./defaults');

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

JSZip.loadAsync = function (content, options) {
return new JSZip().loadAsync(content, options);
Expand Down

0 comments on commit ff65ad3

Please sign in to comment.