1 | ---
|
2 | title: Changelog
|
3 | layout: default
|
4 | section: main
|
5 | ---
|
6 |
|
7 | ### v3.1.5 2017-11-09
|
8 | - Fix IE11 memory leak (see [#429](https://github.com/Stuk/jszip/pull/429)).
|
9 | - Handle 2 nodejs deprecations (see [#459](https://github.com/Stuk/jszip/pull/459)).
|
10 | - Improve the "unsupported format" error message (see [#461](https://github.com/Stuk/jszip/pull/461)).
|
11 | - Improve webworker compatibility (see [#468](https://github.com/Stuk/jszip/pull/468)).
|
12 | - Fix nodejs 0.10 compatibility (see [#480](https://github.com/Stuk/jszip/pull/480)).
|
13 | - Improve the error without type in async() (see [#481](https://github.com/Stuk/jszip/pull/481)).
|
14 |
|
15 | ### v3.1.4 2017-08-24
|
16 | - consistently use our own utils object for inheritance (see [#395](https://github.com/Stuk/jszip/pull/395)).
|
17 | - lower the memory consumption in `generate*` with a lot of files (see [#449](https://github.com/Stuk/jszip/pull/449)).
|
18 |
|
19 | ### v3.1.3 2016-10-06
|
20 | - instanceof failing in window / iframe contexts (see [#350](https://github.com/Stuk/jszip/pull/350)).
|
21 | - remove a copy with blob output (see [#357](https://github.com/Stuk/jszip/pull/357)).
|
22 | - fix crc32 check for empty entries (see [#358](https://github.com/Stuk/jszip/pull/358)).
|
23 | - fix the base64 error message with data uri (see [#359](https://github.com/Stuk/jszip/pull/359)).
|
24 |
|
25 | ### v3.1.2 2016-08-23
|
26 | - fix support of nodejs `process.platform` in `generate*` methods (see [#335](https://github.com/Stuk/jszip/pull/335)).
|
27 | - improve browserify/webpack support (see [#333](https://github.com/Stuk/jszip/pull/333)).
|
28 | - partial support of a promise of text (see [#337](https://github.com/Stuk/jszip/pull/337)).
|
29 | - fix streamed zip files containing folders (see [#342](https://github.com/Stuk/jszip/pull/342)).
|
30 |
|
31 | ### v3.1.1 2016-08-08
|
32 | - Use a hard-coded JSZip.version, fix an issue with webpack (see [#328](https://github.com/Stuk/jszip/pull/328)).
|
33 |
|
34 | ### v3.1.0 2016-08-03
|
35 | - utils.delay: use macro tasks instead of micro tasks (see [#288](https://github.com/Stuk/jszip/pull/288)).
|
36 | - Harden base64 decode (see [#316](https://github.com/Stuk/jszip/pull/316)).
|
37 | - Add JSZip.version and the version in the header (see [#317](https://github.com/Stuk/jszip/pull/317)).
|
38 | - Support Promise(Blob) (see [#318](https://github.com/Stuk/jszip/pull/318)).
|
39 | - Change JSZip.external.Promise implementation (see [#321](https://github.com/Stuk/jszip/pull/321)).
|
40 | - Update pako to v1.0.2 to fix a DEFLATE bug (see [#322](https://github.com/Stuk/jszip/pull/322)).
|
41 |
|
42 | ### v3.0.0 2016-04-13
|
43 | This release changes a lot of methods, please see [the upgrade guide](http://stuk.github.io/jszip/documentation/upgrade_guide.html).
|
44 |
|
45 | - replace sync getters and `generate()` with async methods (see [#195](https://github.com/Stuk/jszip/pull/195)).
|
46 | - support nodejs streams (in `file()` and `generateAsync()`).
|
47 | - support Blob and Promise in `file()` and `loadAsync()` (see [#275](https://github.com/Stuk/jszip/pull/275)).
|
48 | - add `support.nodestream`.
|
49 | - zip.filter: remove the defensive copy.
|
50 | - remove the deprecated API (see [#253](https://github.com/Stuk/jszip/pull/253)).
|
51 | - `type` is now mandatory in `generateAsync()`.
|
52 | - change the createFolders default value (now `true`).
|
53 | - Dates: use UTC instead of the local timezone.
|
54 | - Add `base64` and `array` as possible output type.
|
55 | - Add a forEach method.
|
56 | - Drop node 0.8 support (see [#270](https://github.com/Stuk/jszip/pull/270)).
|
57 |
|
58 | ### v2.6.1 2016-07-28
|
59 | - update pako to v1.0.2 to fix a DEFLATE bug (see [#322](https://github.com/Stuk/jszip/pull/322)).
|
60 |
|
61 | ### v2.6.0 2016-03-23
|
62 | - publish `dist/` files in the npm package (see [#225](https://github.com/Stuk/jszip/pull/225)).
|
63 | - update pako to v1.0.0 (see [#261](https://github.com/Stuk/jszip/pull/261)).
|
64 | - add support of Array in JSZip#load (see [#252](https://github.com/Stuk/jszip/pull/252)).
|
65 | - improve file name / comment encoding support (see [#211](https://github.com/Stuk/jszip/pull/211)).
|
66 | - handle prepended data (see [#266](https://github.com/Stuk/jszip/pull/266)).
|
67 | - improve platform coverage in tests (see [#233](https://github.com/Stuk/jszip/pull/233) and [#269](https://github.com/Stuk/jszip/pull/269)).
|
68 |
|
69 | ### v2.5.0 2015-03-10
|
70 | - add support for custom mime-types (see [#199](https://github.com/Stuk/jszip/issues/199)).
|
71 | - add an option to set the DEFLATE level (see [#201](https://github.com/Stuk/jszip/issues/201)).
|
72 | - improve the error message with corrupted zip (see [#202](https://github.com/Stuk/jszip/issues/202)).
|
73 | - add support for UNIX / DOS permissions (see [#200](https://github.com/Stuk/jszip/issues/200) and [#205](https://github.com/Stuk/jszip/issues/205)).
|
74 |
|
75 | ### v2.4.0 2014-07-24
|
76 | - update pako to 0.2.5 (see [#156](https://github.com/Stuk/jszip/issues/156)).
|
77 | - make JSZip work in a Firefox addon context (see [#151](https://github.com/Stuk/jszip/issues/151)).
|
78 | - add an option (`createFolders`) to control the subfolder generation (see [#154](https://github.com/Stuk/jszip/issues/154)).
|
79 | - allow `Buffer` polyfill in the browser (see [#139](https://github.com/Stuk/jszip/issues/139)).
|
80 |
|
81 | ### v2.3.0 2014-06-18
|
82 | - don't generate subfolders (see [#130](https://github.com/Stuk/jszip/issues/130)).
|
83 | - add comment support (see [#134](https://github.com/Stuk/jszip/issues/134)).
|
84 | - on `ZipObject#options`, the attributes `date` and `dir` have been deprecated and are now on `ZipObject` (see [the upgrade guide](http://stuk.github.io/jszip/documentation/upgrade_guide.html)).
|
85 | - on `ZipObject#options`, the attributes `base64` and `binary` have been deprecated (see [the upgrade guide](http://stuk.github.io/jszip/documentation/upgrade_guide.html)).
|
86 | - deprecate internal functions exposed in the public API (see [#123](https://github.com/Stuk/jszip/issues/123)).
|
87 | - improve UTF-8 support (see [#142](https://github.com/Stuk/jszip/issues/142)).
|
88 |
|
89 | ### v2.2.2, 2014-05-01
|
90 | - update pako to v0.2.1, fix an error when decompressing some files (see [#126](https://github.com/Stuk/jszip/issues/126)).
|
91 |
|
92 | ### v2.2.1, 2014-04-23
|
93 | - fix unreadable generated file on Windows 8 (see [#112](https://github.com/Stuk/jszip/issues/112)).
|
94 | - replace zlibjs with pako.
|
95 |
|
96 | ### v2.2.0, 2014-02-25
|
97 | - make the `new` operator optional before the `JSZip` constructor (see [#93](https://github.com/Stuk/jszip/pull/93)).
|
98 | - update zlibjs to v0.2.0.
|
99 |
|
100 | ### v2.1.1, 2014-02-13
|
101 | - use the npm package for zlib.js instead of the github url.
|
102 |
|
103 | ### v2.1.0, 2014-02-06
|
104 | - split the files and use Browserify to generate the final file (see [#74](https://github.com/Stuk/jszip/pull/74))
|
105 | - packaging change : instead of 4 files (jszip.js, jszip-load.js, jszip-inflate.js, jszip-deflate.js) we now have 2 files : dist/jszip.js and dist/jszip.min.js
|
106 | - add component/bower support
|
107 | - rename variable: 'byte' is a reserved word (see [#76](https://github.com/Stuk/jszip/pull/76))
|
108 | - add support for the unicode path extra field (see [#82](https://github.com/Stuk/jszip/pull/82))
|
109 | - ensure that the generated files have a header with the licenses (see [#80](https://github.com/Stuk/jszip/pull/80))
|
110 |
|
111 | # v2.0.0, 2013-10-20
|
112 |
|
113 | - `JSZipBase64` has been renamed to `JSZip.base64`.
|
114 | - The `data` attribute on the object returned by `zip.file(name)` has been removed. Use `asText()`, `asBinary()`, `asUint8Array()`, `asArrayBuffer()` or `asNodeBuffer()`.
|
115 |
|
116 | - [Fix issue with Android browser](https://github.com/Stuk/jszip/pull/60)
|
117 |
|
118 | - The compression/decompression methods now give their input type with the `compressInputType` and `uncompressInputType` attributes.
|
119 | - Lazily decompress data when needed and [improve performance in general](https://github.com/Stuk/jszip/pull/56)
|
120 | - [Add support for `Buffer` in Node.js](https://github.com/Stuk/jszip/pull/57).
|
121 | - Package for CommonJS/npm.
|
122 |
|
123 | ### v1.0.1, 2013-03-04
|
124 |
|
125 | - Fixed an issue when generating a compressed zip file with empty files or folders, see #33.
|
126 | - With bad data (null or undefined), asText/asBinary/asUint8Array/asArrayBuffer methods now return an empty string, see #36.
|
127 |
|
128 | # v1.0.0, 2013-02-14
|
129 |
|
130 | - First release after a long period without version.
|
131 |
|