CoolFace
Apppublic

TrinetraLabs/Placebo_AI

sourceHugging Faceupdated 2mo agoView on Hugging Face
0likes
CHANGES.md205 linesDownload Raw Back to jszip
1---2title: Changelog3layout: default4section: main5---6 7### v3.10.1 2022-08-028 9- Add sponsorship files.10    + If you appreciate the time spent maintaining JSZip then I would really appreciate [your sponsorship](https://github.com/sponsors/Stuk).11- Consolidate metadata types and expose OnUpdateCallback [#851](https://github.com/Stuk/jszip/pull/851) and [#852](https://github.com/Stuk/jszip/pull/852)12- use `const` instead `var` in example from README.markdown [#828](https://github.com/Stuk/jszip/pull/828)13- Switch manual download link to HTTPS [#839](https://github.com/Stuk/jszip/pull/839)14 15Internals:16 17- Replace jshint with eslint [#842](https://github.com/Stuk/jszip/pull/842)18- Add performance tests [#834](https://github.com/Stuk/jszip/pull/834)19 20### v3.10.0 2022-05-2021 22- Change setimmediate dependency to more efficient one. Fixes https://github.com/Stuk/jszip/issues/617 (see [#829](https://github.com/Stuk/jszip/pull/829))23- Update types of `currentFile` metadata to include `null` (see [#826](https://github.com/Stuk/jszip/pull/826))24 25### v3.9.1 2022-04-0626 27- Fix recursive definition of `InputFileFormat` introduced in 3.9.0.28 29### v3.9.0 2022-04-0430 31- 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))32- Update types for `compressionOptions` to JSZipFileOptions and JSZipGeneratorOptions (see [#722](https://github.com/Stuk/jszip/pull/722))33- Add types for `generateInternalStream` (see [#774](https://github.com/Stuk/jszip/pull/774))34 35### v3.8.0 2022-03-3036 37- 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.38 39### v3.7.1 2021-08-0540 41- Fix build of `dist` files.42    + Note: this version ensures the changes from 3.7.0 are actually included in the `dist` files. Thanks to Evan W for reporting.43 44### v3.7.0 2021-07-2345 46- Fix: Use a null prototype object for this.files  (see [#766](https://github.com/Stuk/jszip/pull/766))47    + This change might break existing code if it uses prototype methods on the `.files` property of a zip object, for example `zip.files.toString()`. This approach is taken to prevent files in the zip overriding object methods that would exist on a normal object.48 49### v3.6.0 2021-02-0950 51- Fix: redirect main to dist on browsers (see [#742](https://github.com/Stuk/jszip/pull/742))52- Fix duplicate require DataLengthProbe, utils (see [#734](https://github.com/Stuk/jszip/pull/734))53- Fix small error in read_zip.md (see [#703](https://github.com/Stuk/jszip/pull/703))54 55### v3.5.0 2020-05-3156 57- Fix 'End of data reached' error when file extra field is invalid (see [#544](https://github.com/Stuk/jszip/pull/544)).58- Typescript definitions: Add null to return types of functions that may return null (see [#669](https://github.com/Stuk/jszip/pull/669)).59- Typescript definitions: Correct nodeStream's type (see [#682](https://github.com/Stuk/jszip/pull/682))60- Typescript definitions: Add string output type (see [#666](https://github.com/Stuk/jszip/pull/666))61 62### v3.4.0 2020-04-1963 64- Add Typescript type definitions (see [#601](https://github.com/Stuk/jszip/pull/601)).65 66### v3.3.0 2020-04-167 68- Change browser module resolution to support Angular packager (see [#614](https://github.com/Stuk/jszip/pull/614)).69 70### v3.2.2 2019-07-0471- No public changes, but a number of testing dependencies have been updated.72- 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.73 74### v3.2.1 2019-03-2275- Corrected built dist files76 77### v3.2.0 2019-02-2178- Update dependencies to reduce bundle size (see [#532](https://github.com/Stuk/jszip/pull/532)).79- Fix deprecated Buffer constructor usage and add safeguards (see [#506](https://github.com/Stuk/jszip/pull/506)).80 81### v3.1.5 2017-11-0982- Fix IE11 memory leak (see [#429](https://github.com/Stuk/jszip/pull/429)).83- Handle 2 nodejs deprecations (see [#459](https://github.com/Stuk/jszip/pull/459)).84- Improve the "unsupported format" error message (see [#461](https://github.com/Stuk/jszip/pull/461)).85- Improve webworker compatibility (see [#468](https://github.com/Stuk/jszip/pull/468)).86- Fix nodejs 0.10 compatibility (see [#480](https://github.com/Stuk/jszip/pull/480)).87- Improve the error without type in async() (see [#481](https://github.com/Stuk/jszip/pull/481)).88 89### v3.1.4 2017-08-2490- consistently use our own utils object for inheritance (see [#395](https://github.com/Stuk/jszip/pull/395)).91- lower the memory consumption in `generate*` with a lot of files (see [#449](https://github.com/Stuk/jszip/pull/449)).92 93### v3.1.3 2016-10-0694- instanceof failing in window / iframe contexts (see [#350](https://github.com/Stuk/jszip/pull/350)).95- remove a copy with blob output (see [#357](https://github.com/Stuk/jszip/pull/357)).96- fix crc32 check for empty entries (see [#358](https://github.com/Stuk/jszip/pull/358)).97- fix the base64 error message with data uri (see [#359](https://github.com/Stuk/jszip/pull/359)).98 99### v3.1.2 2016-08-23100- fix support of nodejs `process.platform` in `generate*` methods (see [#335](https://github.com/Stuk/jszip/pull/335)).101- improve browserify/webpack support (see [#333](https://github.com/Stuk/jszip/pull/333)).102- partial support of a promise of text (see [#337](https://github.com/Stuk/jszip/pull/337)).103- fix streamed zip files containing folders (see [#342](https://github.com/Stuk/jszip/pull/342)).104 105### v3.1.1 2016-08-08106- Use a hard-coded JSZip.version, fix an issue with webpack (see [#328](https://github.com/Stuk/jszip/pull/328)).107 108### v3.1.0 2016-08-03109- utils.delay: use macro tasks instead of micro tasks (see [#288](https://github.com/Stuk/jszip/pull/288)).110- Harden base64 decode (see [#316](https://github.com/Stuk/jszip/pull/316)).111- Add JSZip.version and the version in the header (see [#317](https://github.com/Stuk/jszip/pull/317)).112- Support Promise(Blob) (see [#318](https://github.com/Stuk/jszip/pull/318)).113- Change JSZip.external.Promise implementation (see [#321](https://github.com/Stuk/jszip/pull/321)).114- Update pako to v1.0.2 to fix a DEFLATE bug (see [#322](https://github.com/Stuk/jszip/pull/322)).115 116### v3.0.0 2016-04-13117This release changes a lot of methods, please see [the upgrade guide](http://stuk.github.io/jszip/documentation/upgrade_guide.html).118 119- replace sync getters and `generate()` with async methods (see [#195](https://github.com/Stuk/jszip/pull/195)).120- support nodejs streams (in `file()` and `generateAsync()`).121- support Blob and Promise in `file()` and `loadAsync()` (see [#275](https://github.com/Stuk/jszip/pull/275)).122- add `support.nodestream`.123- zip.filter: remove the defensive copy.124- remove the deprecated API (see [#253](https://github.com/Stuk/jszip/pull/253)).125- `type` is now mandatory in `generateAsync()`.126- change the createFolders default value (now `true`).127- Dates: use UTC instead of the local timezone.128- Add `base64` and `array` as possible output type.129- Add a forEach method.130- Drop node 0.8 support (see [#270](https://github.com/Stuk/jszip/pull/270)).131 132### v2.6.1 2016-07-28133- update pako to v1.0.2 to fix a DEFLATE bug (see [#322](https://github.com/Stuk/jszip/pull/322)).134 135### v2.6.0 2016-03-23136- publish `dist/` files in the npm package (see [#225](https://github.com/Stuk/jszip/pull/225)).137- update pako to v1.0.0 (see [#261](https://github.com/Stuk/jszip/pull/261)).138- add support of Array in JSZip#load (see [#252](https://github.com/Stuk/jszip/pull/252)).139- improve file name / comment encoding support (see [#211](https://github.com/Stuk/jszip/pull/211)).140- handle prepended data (see [#266](https://github.com/Stuk/jszip/pull/266)).141- improve platform coverage in tests (see [#233](https://github.com/Stuk/jszip/pull/233) and [#269](https://github.com/Stuk/jszip/pull/269)).142 143### v2.5.0 2015-03-10144- add support for custom mime-types (see [#199](https://github.com/Stuk/jszip/issues/199)).145- add an option to set the DEFLATE level (see [#201](https://github.com/Stuk/jszip/issues/201)).146- improve the error message with corrupted zip (see [#202](https://github.com/Stuk/jszip/issues/202)).147- add support for UNIX / DOS permissions (see [#200](https://github.com/Stuk/jszip/issues/200) and [#205](https://github.com/Stuk/jszip/issues/205)).148 149### v2.4.0 2014-07-24150- update pako to 0.2.5 (see [#156](https://github.com/Stuk/jszip/issues/156)).151- make JSZip work in a Firefox addon context (see [#151](https://github.com/Stuk/jszip/issues/151)).152- add an option (`createFolders`) to control the subfolder generation (see [#154](https://github.com/Stuk/jszip/issues/154)).153- allow `Buffer` polyfill in the browser (see [#139](https://github.com/Stuk/jszip/issues/139)).154 155### v2.3.0 2014-06-18156- don't generate subfolders (see [#130](https://github.com/Stuk/jszip/issues/130)).157- add comment support (see [#134](https://github.com/Stuk/jszip/issues/134)).158- 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)).159- on `ZipObject#options`, the attributes `base64` and `binary` have been deprecated (see [the upgrade guide](http://stuk.github.io/jszip/documentation/upgrade_guide.html)).160- deprecate internal functions exposed in the public API (see [#123](https://github.com/Stuk/jszip/issues/123)).161- improve UTF-8 support (see [#142](https://github.com/Stuk/jszip/issues/142)).162 163### v2.2.2, 2014-05-01164 - update pako to v0.2.1, fix an error when decompressing some files (see [#126](https://github.com/Stuk/jszip/issues/126)).165 166### v2.2.1, 2014-04-23167 - fix unreadable generated file on Windows 8 (see [#112](https://github.com/Stuk/jszip/issues/112)).168 - replace zlibjs with pako.169 170### v2.2.0, 2014-02-25171 - make the `new` operator optional before the `JSZip` constructor (see [#93](https://github.com/Stuk/jszip/pull/93)).172 - update zlibjs to v0.2.0.173 174### v2.1.1, 2014-02-13175 - use the npm package for zlib.js instead of the github url.176 177### v2.1.0, 2014-02-06178 - split the files and use Browserify to generate the final file (see [#74](https://github.com/Stuk/jszip/pull/74))179 - 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.js180 - add component/bower support181 - rename variable: 'byte' is a reserved word (see [#76](https://github.com/Stuk/jszip/pull/76))182 - add support for the unicode path extra field (see [#82](https://github.com/Stuk/jszip/pull/82))183 - ensure that the generated files have a header with the licenses (see [#80](https://github.com/Stuk/jszip/pull/80))184 185# v2.0.0, 2013-10-20186 187 - `JSZipBase64` has been renamed to `JSZip.base64`.188 - The `data` attribute on the object returned by `zip.file(name)` has been removed. Use `asText()`, `asBinary()`, `asUint8Array()`, `asArrayBuffer()` or `asNodeBuffer()`.189 190 - [Fix issue with Android browser](https://github.com/Stuk/jszip/pull/60)191 192 - The compression/decompression methods now give their input type with the `compressInputType` and `uncompressInputType` attributes.193 - Lazily decompress data when needed and [improve performance in general](https://github.com/Stuk/jszip/pull/56)194 - [Add support for `Buffer` in Node.js](https://github.com/Stuk/jszip/pull/57).195 - Package for CommonJS/npm.196 197### v1.0.1, 2013-03-04198 199 - Fixed an issue when generating a compressed zip file with empty files or folders, see #33.200 - With bad data (null or undefined), asText/asBinary/asUint8Array/asArrayBuffer methods now return an empty string, see #36.201 202# v1.0.0, 2013-02-14203 204- First release after a long period without version.205