title | layout | section |
---|---|---|
Changelog |
default |
main |
- No public changes, but a number of testing dependencies have been updated.
- Tested browsers are now: Internet Explorer 11, Chrome (most recent) and Firefox (most recent). Other browsers (specifically Safari) are still supported however testing them on Saucelabs is broken and so they were removed from the test matrix.
- Corrected built dist files
- Update dependencies to reduce bundle size (see #532).
- Fix deprecated Buffer constructor usage and add safeguards (see #506).
- Fix IE11 memory leak (see #429).
- Handle 2 nodejs deprecations (see #459).
- Improve the "unsupported format" error message (see #461).
- Improve webworker compatibility (see #468).
- Fix nodejs 0.10 compatibility (see #480).
- Improve the error without type in async() (see #481).
- consistently use our own utils object for inheritance (see #395).
- lower the memory consumption in
generate*
with a lot of files (see #449).
- instanceof failing in window / iframe contexts (see #350).
- remove a copy with blob output (see #357).
- fix crc32 check for empty entries (see #358).
- fix the base64 error message with data uri (see #359).
- fix support of nodejs
process.platform
ingenerate*
methods (see #335). - improve browserify/webpack support (see #333).
- partial support of a promise of text (see #337).
- fix streamed zip files containing folders (see #342).
- Use a hard-coded JSZip.version, fix an issue with webpack (see #328).
- utils.delay: use macro tasks instead of micro tasks (see #288).
- Harden base64 decode (see #316).
- Add JSZip.version and the version in the header (see #317).
- Support Promise(Blob) (see #318).
- Change JSZip.external.Promise implementation (see #321).
- Update pako to v1.0.2 to fix a DEFLATE bug (see #322).
This release changes a lot of methods, please see the upgrade guide.
- replace sync getters and
generate()
with async methods (see #195). - support nodejs streams (in
file()
andgenerateAsync()
). - support Blob and Promise in
file()
andloadAsync()
(see #275). - add
support.nodestream
. - zip.filter: remove the defensive copy.
- remove the deprecated API (see #253).
type
is now mandatory ingenerateAsync()
.- change the createFolders default value (now
true
). - Dates: use UTC instead of the local timezone.
- Add
base64
andarray
as possible output type. - Add a forEach method.
- Drop node 0.8 support (see #270).
- update pako to v1.0.2 to fix a DEFLATE bug (see #322).
- publish
dist/
files in the npm package (see #225). - update pako to v1.0.0 (see #261).
- add support of Array in JSZip#load (see #252).
- improve file name / comment encoding support (see #211).
- handle prepended data (see #266).
- improve platform coverage in tests (see #233 and #269).
- add support for custom mime-types (see #199).
- add an option to set the DEFLATE level (see #201).
- improve the error message with corrupted zip (see #202).
- add support for UNIX / DOS permissions (see #200 and #205).
- update pako to 0.2.5 (see #156).
- make JSZip work in a Firefox addon context (see #151).
- add an option (
createFolders
) to control the subfolder generation (see #154). - allow
Buffer
polyfill in the browser (see #139).
- don't generate subfolders (see #130).
- add comment support (see #134).
- on
ZipObject#options
, the attributesdate
anddir
have been deprecated and are now onZipObject
(see the upgrade guide). - on
ZipObject#options
, the attributesbase64
andbinary
have been deprecated (see the upgrade guide). - deprecate internal functions exposed in the public API (see #123).
- improve UTF-8 support (see #142).
- update pako to v0.2.1, fix an error when decompressing some files (see #126).
- fix unreadable generated file on Windows 8 (see #112).
- replace zlibjs with pako.
- make the
new
operator optional before theJSZip
constructor (see #93). - update zlibjs to v0.2.0.
- use the npm package for zlib.js instead of the github url.
- split the files and use Browserify to generate the final file (see #74)
- 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
- add component/bower support
- rename variable: 'byte' is a reserved word (see #76)
- add support for the unicode path extra field (see #82)
- ensure that the generated files have a header with the licenses (see #80)
-
JSZipBase64
has been renamed toJSZip.base64
. -
The
data
attribute on the object returned byzip.file(name)
has been removed. UseasText()
,asBinary()
,asUint8Array()
,asArrayBuffer()
orasNodeBuffer()
. -
The compression/decompression methods now give their input type with the
compressInputType
anduncompressInputType
attributes. -
Lazily decompress data when needed and improve performance in general
-
Package for CommonJS/npm.
- Fixed an issue when generating a compressed zip file with empty files or folders, see #33.
- With bad data (null or undefined), asText/asBinary/asUint8Array/asArrayBuffer methods now return an empty string, see #36.
- First release after a long period without version.